Issue Details (XML | Word | Printable)

Key: SPR-3230
Type: Task Task
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Ben Hale
Reporter: Kristoffer Moum
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Spring Framework

Ant-based Maven installation of Spring artifacts is broken

Created: 04/Mar/07 09:57 AM   Updated: 11/Jun/07 10:42 AM   Resolved: 11/Jun/07 10:42 AM
Component/s: None
Affects Version/s: 2.0.3
Fix Version/s: 2.1 M3

Time Tracking:
Not Specified

Issue Links:
Depends
 


 Description  « Hide

The provided Ant task for installing Spring in a local Maven2 repository is broken. Some artifacts are not installed in the repo when invoking the supplied Ant task, "mvn.install.jars".

The following artifacts are not installed: spring.jar, spring-mock.jar and spring-aspects.jar.

Also, the process of installing the artifacts in a local repository is pretty useless itself as no module poms are provided and thus installed. If I currently use Spring 2.0.2, which is available from public repositories, and do the manual installation of 2.0.3, then re-run my Maven2 project which relies on Spring, all the dependencies that are required for Spring is lost.

Effectively, this means that I have to copy the 2.0.2 module poms from my local repository, rename them to 2.0.3 and change all internal references to 2.0.2. Also (but this is highly theoretical) I will have to go through the dependency list provided with the build in order to verify that the version references of the dependencies are synchronized with that list.



Ben Hale added a comment - 31/May/07 01:05 PM

Is there a reason that you are not able to get the official POMs and releases from the main maven repo? I'd like to remove this functionality completely if possible.


Kristoffer Moum added a comment - 07/Jun/07 02:34 PM

No, there is no reason why I cannot get the official releases from the maven repo, but if I checkout the Spring source from subversion I cannot build and distribute artifacts for any of my maven based projects. Also, only the minor builds, i.e. 2.03 is distributed, but as far as I could find out I wasn´t able to get i.e. nightly snapshots from any official repo. Still, the provided scripts are buggy.


Ben Hale added a comment - 08/Jun/07 01:13 PM

OK, I'll get it fixed up and improved.


Ben Hale added a comment - 11/Jun/07 10:42 AM

A new maveninstall task has been added to the build system that will create all of the spring jars and then upload them and their sources to the local maven repo (equivalent to the mvn install).