What I did was just: "New" -> "Maven Project". From the menu displayed the, I selected "Create a simple project" and "Use default workspace location".
Then I specified the following fields:
Group-Id: com.day.cq5.myapp
Artifact: Id: ui
Name: CQ5 MyApp UI
Description: This is the UI module
That's it. Now the pom.xml is in error with message:
Multiple annotations found at this line:
- Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (execution: default-compile,
phase: compile)
- Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:maven-compiler-plugin:2.3.2:testCompile (execution: default-
testCompile, phase: test-compile)
- CoreException: Could not calculate build plan: Plugin org.apache.maven.plugins:maven-compiler-plugin:2.3.2 or one of its dependencies could not be
resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-compiler-plugin:jar:2.3.2: ArtifactResolutionException: Failure to transfer
org.apache.maven.plugins:maven-compiler-plugin:pom:2.3.2 from http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not
be reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer artifact org.apache.maven.plugins:maven-
compiler-plugin:pom:2.3.2 from/to central (http://repo.maven.apache.org/maven2): null to http://repo.maven.apache.org/maven2/org/apache/maven/plugins/
maven-compiler-plugin/2.3.2/maven-compiler-plugin-2.3.2.pom
And it is not possible to add a java source folder and/or a ja package to the project. I don't see how create a Maven Project with "packaging jar" - there is now selection provided to choose.
Adrien Rivard <adrien.rivard@xxxxxxxxx> hat am 8. Februar 2013 um 17:25 geschrieben:
|