Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-2771

mvn validate doesn't work if local Maven repo is empty

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Won't Fix
    • None
    • None
    • General
    • None
    • macosx with java version "1.6.0_37" and Apache Maven 3.0.5

    Description

      The workaround is to build launchpad/base first, and the cause seems to be https://jira.codehaus.org/browse/MNG-1911

      $ cd sling
      $ mv $HOME/.m2/repository/org/apache/sling /tmp/keep-it-somewhere
      $ mvn validate

      INFO] Scanning for projects...
      [WARNING] The POM for org.apache.sling:org.apache.sling.launchpad.base:jar:2.5.1-SNAPSHOT is missing, no dependency information available
      [WARNING] The POM for org.apache.sling:org.apache.sling.launchpad.base:jar:app:2.5.1-SNAPSHOT is missing, no dependency information available
      [ERROR] The build could not read 1 project -> [Help 1]
      [ERROR]
      [ERROR] The project org.apache.sling:org.apache.sling.launchpad.testing:7-SNAPSHOT (/Users/bert/workspace/apache/sling/launchpad/testing/pom.xml) has 1 error
      [ERROR] Unresolveable build extension: Plugin org.apache.sling:maven-launchpad-plugin:2.1.2 or one of its dependencies could not be resolved: The following artifacts could not be resolved: org.apache.sling:org.apache.sling.launchpad.base:jar:2.5.1-SNAPSHOT, org.apache.sling:org.apache.sling.launchpad.base:jar:app:2.5.1-SNAPSHOT...

      Attachments

        Issue Links

          Activity

            People

              bdelacretaz Bertrand Delacretaz
              bdelacretaz Bertrand Delacretaz
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: