/[Apache-SVN]
ViewVC logotype

Revision 330392


Jump to revision: Previous Next
Author: jdcasey
Date: Thu Nov 3 00:17:26 2005 UTC (19 years ago)
Changed paths: 5
Log Message:
PR: MNG-1251
Submitted By: Jerome Lacoste
Reviewed By: John Casey

I did not apply this patch. A better solution was to initialize the artifact data a little more thoroughly, and only delegate those methods which must track changes to the main artifact (like version info, groupId, and artifactId...essentially, the things that determine how to locate metadata on the repository). For these delegating methods, I've disabled the corresponding setter methods with UnsupportedOperationException to indicate that these attributes must be managed via the main artifact, and why. The MavenProjectHelper will now lookup the proper ArtifactHandler for the given attachment type, and pass that on to the AttachedArtifact constructor also.

Jerome, thanks very much for the effort in exploring this issue. I appreciate the help.



Changed paths

Path Details
Directorymaven/components/trunk/maven-artifact/src/main/java/org/apache/maven/artifact/DefaultArtifact.java modified , text changed
Directorymaven/components/trunk/maven-project/src/main/java/org/apache/maven/project/DefaultMavenProjectHelper.java modified , text changed
Directorymaven/components/trunk/maven-project/src/main/java/org/apache/maven/project/MavenProject.java modified , text changed
Directorymaven/components/trunk/maven-project/src/main/java/org/apache/maven/project/artifact/AttachedArtifact.java modified , text changed
Directorymaven/components/trunk/maven-project/src/main/resources/META-INF/plexus/components.xml modified , text changed

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26