Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-6433

Can't build Hudson with Maven 3

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • core
    • 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.

            Unassigned Unassigned
            abayer Andrew Bayer
            Votes:
            2 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: