Ola Pessoal,
sou iniciante no maven, estou estudando esta ferramenta para buscar conhecimento etc… , poém estou com alguns problemas, cheguei a instalar a versão:
C:>mvn -version
Apache Maven 3.0.3 (r1075438; 2011-02-28 14:31:09-0300)
Maven home: C:\bin\apache-maven-3.0.3\bin…
Java version: 1.6.0_23, vendor: Sun Microsystems Inc.
Java home: C:\Program Files\Java\jdk1.6.0_23\jre
Default locale: pt_BR, platform encoding: Cp1252
OS name: “windows 7”, version: “6.1”, arch: “amd64”, family: “windows”
Porém quando crio um simples projeto apresenta o seguinte erro:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:2.0:create (default-cli) on project Sicad: Error creating from archetype: Unable
to add module to the current project as it is not of packaging type ‘pom’ -> [Help 1]
C:\des\Maven>mvn archetype:create \ -DgroupId=br.com.sicad -DartifactId=Sicad -DarchetypeArtifactId=maven-archetype-quickstart
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Sistema de Controle Administrativo 0.0.1
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-archetype-plugin:2.0:create (default-cli) @ Sicad ---
[WARNING] This goal is deprecated. Please use mvn archetype:generate instead
[INFO] Defaulting package to group ID: br.com.sicad
[INFO] ----------------------------------------------------------------------------
[INFO] Using following parameters for creating project from Old (1.x) Archetype: maven-archetype-quickstart:RELEASE
[INFO] ----------------------------------------------------------------------------
[INFO] Parameter: groupId, Value: br.com.sicad
[INFO] Parameter: packageName, Value: br.com.sicad
[INFO] Parameter: package, Value: br.com.sicad
[INFO] Parameter: artifactId, Value: Sicad
[INFO] Parameter: basedir, Value: C:\des\Maven
[INFO] Parameter: version, Value: 1.0-SNAPSHOT
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Skipping Sistema de Controle Administrativo
[INFO] This project has been banned from the build due to previous failures.
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.261s
[INFO] Finished at: Thu Apr 28 15:56:51 BRT 2011
[INFO] Final Memory: 8M/79M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:2.0:create (default-cli) on project Sicad: Error creating from archetype: Unable
to add module to the current project as it is not of packaging type 'pom' -> [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
Alguem pode me ajudar com esse problema? Por favor?
Agradeço!!!