-
Bug
-
Resolution: Fixed
-
Major
-
None
-
Maven 3 beta 1
When attempting to build Hudson with Maven 3, you get the following error:
Warning: JAVA_HOME environment variable is not set.
[INFO] Scanning for projects...
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR] The project org.jvnet.hudson.main:pom:1.356-SNAPSHOT (/home/abayer/src/hudson/main/pom.xml) has 1 error
[ERROR] 'distributionManagement.snapshotRepository.id' must not be 'local', this identifier is reserved.
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
This is because hudson/pom.xml has this in its <distributionManagement> section:
<snapshotRepository>
<!-- prevent accidental deployment of SNAPSHOTS to repository -->
<id>local</id>
<url>file:.</url>
</snapshotRepository>
That <id> needs to be changed to something other than "local" to work with Maven 3.
- depends on
-
JENKINS-6052 hpi:run takes org.apache.maven.embedder.MavenEmbedderException building m2 project
- Closed
-
JENKINS-7275 lock down plugin versions to shut up m3
- Resolved