[jboss-dev-forums] [JBoss AS 7 Development] - Jboss7 dependencies pratique : how to manage the version part of the a lib like {artifactId}-{version}.jar?
yunshi tan
do-not-reply at jboss.com
Tue Sep 25 06:02:06 EDT 2012
yunshi tan [https://community.jboss.org/people/yunshi] created the discussion
"Jboss7 dependencies pratique : how to manage the version part of the a lib like {artifactId}-{version}.jar?"
To view the discussion, visit: https://community.jboss.org/message/761317#761317
--------------------------------------------------------------
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
[https://community.jboss.org/message/761317#761317]
Start a new discussion in JBoss AS 7 Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2225]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20120925/62b3c656/attachment.html
More information about the jboss-dev-forums
mailing list