[jboss-dev-forums] [Design of JBoss Build System] - Re: JDK 1.4 Compatibility for Microcontainer and other Proje

pgier do-not-reply at jboss.com
Thu Aug 9 17:57:28 EDT 2007


After messing with this stuff for a while.  I decided to use a single repository and just have different artifactIds for jdk14 artifacts (similar to what Ryan suggested).  I was hoping that having two separate repositories would make things simpler because I would be able to translate dependency jars from a jdk15 repository and put them into the jdk14 repository.  And that way a project could be easily built.

But I ran into problems trying to keep the jdk5 and jdk14 artifacts sorted out, especially in the local repository.  Because if the jdk14 artifacts have the same name, they overwrite the jdk5 artifacts, and the local repo gets messed up.  Also the maven ant tasks used to run the retro tests were having problems using the jdk14 repository.

So the current plan is to use profiles to have two different artifactIds.  A maven profile doesn't allow me to modify the artifactId directly, but I can use a property in the profile to change the artifactId.  The good thing is that this will allow projects to use transitive dependencies, but still be in a single repository.  The bad part is that I will have to go back to some of the released versions of dependency projects and create retro versions of these projects, so that part will take some effort.



View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4072745#4072745

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4072745



More information about the jboss-dev-forums mailing list