JBoss Community

Jboss7 dependencies pratique : how to manage the version part of the a lib like {artifactId}-{version}.jar?

created by yunshi tan in JBoss AS 7 Development - View the full discussion

Hi everyone,

 

In Jboss7, we need to point out explicit dependencies,  in META-INFO/MANIFEST.MF or in jboss-deployment-structure.xml.

 

My problem is, my applications are named as {artifactId}-{version}.jar.

 

As a result, in the jboss-deployment-structure.xml, I have to include the {version} part in the independency declaration. That's to say, each time I release a project who is depended by another projects, I have to update the {version} part manually in the jboss-deployment-structure.xml of those projects.I find it not very funny. :(

 

Another thing very annoying, I have some EJB jars having the version in their name, like ejb-1.0-SNAPSHOT.jar. Therefore, to search the ejb from JNDI, i have to call search the name as : "java:global/ejb-1.0-SNAPSHOT/someDAOImpl!com.xxx.dao.web.local.someDAOLocal". That means after each release, hte JNDI name changes ! :( :( :(

 

Does any body have some pratcical advices or experience pls ? That would be very nice. Many thx in advance.

Reply to this message by going to Community

Start a new discussion in JBoss AS 7 Development at Community