• Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.0.5
    • Component/s: Maven2
    • Labels:
    • Environment:
      Executed with Maven 3.0 and staged cargo 1.0.5 (per Nov 15 2010)
    • Complexity:
    • Number of attachments :


      A Maven project generated from the cargo-archetype-webapp-single-module archetype.

      Building with Maven 3.0 gives these warnings:
      [WARNING] Some problems were encountered while building the effective model for se.devoteam.maven.cargo.tests:cargo105:war:1.0-SNAPSHOT
      [WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-surefire-plugin is missing. @ line 22, column 15
      [WARNING] 'build.plugins.plugin.version' for org.codehaus.cargo:cargo-maven2-plugin is missing. @ line 56, column 15
      [WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
      [WARNING] For this reason, future Maven versions might no longer support building such malformed projects.

      The version of cargo isn't specified in the pom!

      Other things spotted:

      • No xml header
      • No encoding specified for the pom.xml file (in the header)
      • Incorrect url (<url></url>) - suggest removing this!

      When trying "mvn clean install" it doesn't work:
      [INFO] ------------------------------------------------------------------------
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 7.855s
      [INFO] Finished at: Mon Nov 15 08:44:32 CET 2010
      [INFO] Final Memory: 14M/265M
      [INFO] ------------------------------------------------------------------------
      [ERROR] Failed to execute goal org.codehaus.cargo:cargo-maven2-plugin:1.0.4:start (start) on project cargo105: Failed to resolve dependency: Could not find artifact org.mortbay.jetty:servlet-api-2.5:jar:6.1.25 in sonatype-forge (
      [ERROR] Try downloading the file manually from the project website.
      [ERROR] Then, install it using the command:
      [ERROR] mvn install:install-file -DgroupId=org.mortbay.jetty -DartifactId=servlet-api-2.5 -Dversion=6.1.25 -Dpackaging=jar -Dfile=/path/to/file
      [ERROR] Alternatively, if you host your own repository you can deploy the file there:
      [ERROR] mvn deploy:deploy-file -DgroupId=org.mortbay.jetty -DartifactId=servlet-api-2.5 -Dversion=6.1.25 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
      [ERROR] org.mortbay.jetty:servlet-api-2.5:jar:6.1.25
      [ERROR] from the specified remote repositories:
      [ERROR] sonatype-forge (, releases=true, snapshots=true),
      [ERROR] central (, releases=true, snapshots=false)
      [ERROR] -> [Help 1]
      [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] For more information about the errors and possible solutions, please read the following articles:
      [ERROR] [Help 1]

      org.mortbay.jetty:servlet-api-2.5:jar:6.1.25 does not exist in central!



          • Assignee:
            Anders Hammar
            Anders Hammar
          • Votes:
            0 Vote for this issue
            0 Start watching this issue


            • Created: