We're updating the issue view to help you get more done. 

Issues with the archetypes

Description

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]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[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>http://maven.apache.org</url>) - suggest removing this!

When trying "mvn clean install" it doesn't work:
[INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE
[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 (http://repository.sonatype.org/content/groups/forge)
[ERROR]
[ERROR] Try downloading the file manually from the project website.
[ERROR]
[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]
[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]
[ERROR]
[ERROR] org.mortbay.jetty:servlet-api-2.5:jar:6.1.25
[ERROR]
[ERROR] from the specified remote repositories:
[ERROR] sonatype-forge (http://repository.sonatype.org/content/groups/forge, releases=true, snapshots=true),
[ERROR] central (http://repo1.maven.org/maven2, releases=true, snapshots=false)
[ERROR] -> [Help 1]
[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/MojoExecutionException

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

Status

Assignee

Anders Hammar

Reporter

Anders Hammar

Components

Fix versions

Priority

Major