java - Error when creating a new maven project -


When I try to create a new Maven project (with many architectures, not only down), I is facing:

  unable to create a project originally [org.apache.maven.archetypes: maven-archetype-quickstart: RELEASE] the current package unable to add modules for packaging The type is not of POM.   

Does anyone know why this is happening, and how to solve it?

It seems that your directory is not empty This command line works for me: (empty directory In)

  mvn archetype: generated - dgroupId = fr.myGroupId -DartifactId = MyApplication -Dackacknameame = fr.myGroupId -DarchetypeArtifactId = maven-archetype-quickstart   

results:

  [INFO] using the property: groupId = fr.myGroupId [INFO] using the property: artifactId = MyApplication defined property value 'version': 1.0-SNAPSHOT :: [INFO] Property use: package = fr.myGroupId attributes configurations Tip: Group ID: fr.myGroupId artifactId: MyApplication2 Version: 1.0-SNAPSHOT Package: fr.myGroupId YY :: [INFO] ---------------------- ---------------------------- ---------------------- - Use the following parameters to create a project from [INFO] Old (1.x). Rhesippes: maven-archetype-quickstart: 1.0 [INFO] ------------------ ------------------------------------------------ -------- [INFO] parameter group ID, value: fr.myGroupId [INFO] parameters: package name, value: fr .myGroupId [INFO] parameter package, V Alue: fr.myGroupId [INFO] parameter : ArtifactId, Value: MyApplication2 [INFO] Parameter: Base, Value: /home/ABC-ObJECTIF/philippe.d emanget / workspace / pdemanget / tmp / mvn [INFO] parameter: version, value: 1.0-snapshot [INFO] is built in project old (1.x) arctipype: /home/ABC-OBJECTIF/philippe.demanget/workspace/ Pdemanget / tmp / mvn / MyApplication2 [INFO] ------- --------------------------------- ----------------- --------------- [INFO] Built-in success [INFO] ---------- ----------------- --------------------------------- ------------ [INFO] Total Time: 9 .764 [INFO] Expired: Tuesday April 22 13:35:17 CET 2014 [INFO] Last Memory: 14 M / 216 M [INFO] ------------------------------------------------ ---------------------- ---   

I created this command line inside the newly created directory I can reproduce your error:

  CDMIPN mvn archetype: create -DgroupId = fr .myGroupId - dartfact ID = MyApplication - Dakacanamem = fr.myGroupId - DarkTypeArtifyId = Maven-Art- Type-quick start [...] [INFO] Build failure    

Comments

Popular posts from this blog

Pass DB Connection parameters to a Kettle a.k.a PDI table Input step dynamically from Excel -

multithreading - PhantomJS-Node in a for Loop -

c++ - MATLAB .m file to .mex file using Matlab Compiler -