/[Apache-SVN]
ViewVC logotype

Revision 618497


Jump to revision: Previous Next
Author: jdcasey
Date: Tue Feb 5 00:09:27 2008 UTC (16 years, 9 months ago)
Changed paths: 26
Log Message:
[MNG-3119] Modifying MavenProject.addAttachment(..) and MavenProjectHelper.attachArtifact(..) implementations to throw an unchecked exception when a project attachment will collide with existing attachments. This includes tests to verify the behavior. The unchecked exception allows Maven to deal with it as a real build failure, while avoiding the need to modify the MavenProjectHelper API, which is part of Maven's core and which would render many existing plugins incompatible with new Maven releases.

Changed paths

Path Details
Directorymaven/components/trunk/maven-core/src/main/aspect/org/apache/maven/errors/LifecycleErrorReporterAspect.aj modified , text changed
Directorymaven/components/trunk/maven-core/src/main/java/org/apache/maven/errors/CoreErrorReporter.java modified , text changed
Directorymaven/components/trunk/maven-core/src/main/java/org/apache/maven/errors/CoreErrorTips.java modified , text changed
Directorymaven/components/trunk/maven-core/src/main/java/org/apache/maven/errors/DefaultCoreErrorReporter.java modified , text changed
Directorymaven/components/trunk/maven-core/src/main/java/org/apache/maven/plugin/DefaultPluginManager.java modified , text changed
Directorymaven/components/trunk/maven-core/src/main/java/org/apache/maven/plugin/PluginExecutionException.java modified , text changed
Directorymaven/components/trunk/maven-embedder/src/test/error-reporting-projects/duplicated-attachments/ added
Directorymaven/components/trunk/maven-embedder/src/test/error-reporting-projects/duplicated-attachments/plugin/ added
Directorymaven/components/trunk/maven-embedder/src/test/error-reporting-projects/duplicated-attachments/plugin/pom.xml added
Directorymaven/components/trunk/maven-embedder/src/test/error-reporting-projects/duplicated-attachments/plugin/src/ added
Directorymaven/components/trunk/maven-embedder/src/test/error-reporting-projects/duplicated-attachments/plugin/src/main/ added
Directorymaven/components/trunk/maven-embedder/src/test/error-reporting-projects/duplicated-attachments/plugin/src/main/java/ added
Directorymaven/components/trunk/maven-embedder/src/test/error-reporting-projects/duplicated-attachments/plugin/src/main/java/org/ added
Directorymaven/components/trunk/maven-embedder/src/test/error-reporting-projects/duplicated-attachments/plugin/src/main/java/org/plugin/ added
Directorymaven/components/trunk/maven-embedder/src/test/error-reporting-projects/duplicated-attachments/plugin/src/main/java/org/plugin/TestPlugin.java added
Directorymaven/components/trunk/maven-embedder/src/test/error-reporting-projects/duplicated-attachments/plugin/target-eclipse/ added
Directorymaven/components/trunk/maven-embedder/src/test/error-reporting-projects/duplicated-attachments/plugin/target-eclipse/classes/ added
Directorymaven/components/trunk/maven-embedder/src/test/error-reporting-projects/duplicated-attachments/plugin/target-eclipse/classes/org/ added
Directorymaven/components/trunk/maven-embedder/src/test/error-reporting-projects/duplicated-attachments/plugin/target-eclipse/classes/org/plugin/ added
Directorymaven/components/trunk/maven-embedder/src/test/error-reporting-projects/duplicated-attachments/project/ added
Directorymaven/components/trunk/maven-embedder/src/test/error-reporting-projects/duplicated-attachments/project/pom.xml added
Directorymaven/components/trunk/maven-embedder/src/test/java/org/apache/maven/error/ErrorReporterPointcutTest.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/DuplicateArtifactAttachmentException.java added
Directorymaven/components/trunk/maven-project/src/main/java/org/apache/maven/project/MavenProject.java modified , text changed
Directorymaven/components/trunk/maven-project/src/test/java/org/apache/maven/project/DefaultMavenProjectHelperTest.java added

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26