|
[
Permlink
| « Hide
]
Fabrizio Giustina added a comment - 15/Oct/05 09:24 AM
build.xml dill
Well, the jar file naming has been discussed numerous times over the past couple of years... We did decide against having the version number in the jar file names back then. For a further example, note that Hibernate still doesn't include the full version number in the default jar file name either; neither does Struts.
I know that Maven wants the version number in there. But on the other hand, that becomes a burden when updating jar files in CVS and/or in IDE classpath lists, given that the name changes all the time, even for point releases. So currently, people have to rename the jar files themselves when using them in Maven, which should be acceptable... Juergen Sorry, I didn't know that this argument was already discussed in the past and you explicitely decided to not to have the version number in the file...
you are correct, there are other examples of distributions which don't include the version number in the jar, but they are IHMO a few exceptions, probably 99% of the distributions now do that (btw, also Struts is moving to maven, so it will have version numbers in jar names, see: http://svn.apache.org/builds/struts/maven/trunk/site-test/ ) Anyway, what about committing the changes in build.xml as separate ant targets (let's say "modulejars-versioned", "modulesources-versioned" or anything else) so that at least maven users can build their jars without having to rename them manually every time? fabrizio This is related to
Per Juergen's comment, we're not going to version the JARs in the distributable. For Maven users, there is a `maveninstall` target that will properly install the JARs in a users local repository with the proper version numbers. As well, there will be a Maven nightly snapshot repository created for Spring.
Hi Ben,
what about the generation of source jars? AFAIK that is still missing in the 'maveninstall' target and source jars are not available in the maven repository. Ok for not versioning jars, but could you at least add the "modulesources" target to the build.xml? The sources are actually being created right now as part of the distributable for 2.5 and beyond. Check the 2.5-rc1-with-dependencies snapshots (http://static.springframework.org/downloads/nightly/snapshot-download.php?project=SPR). Note that this functionality isn't going to be backported.
Also, the maveninstall task does upload the sources as well. |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||