Guten Morgen,
endlich habe ich Maven installiert bekommen. Bei der Archetype-Projekt bekomme ich folgende Fehlermeldung:
Apache Maven 3.8.6 (habe ich installiert, unter Linux)
Eingabe erfolgt über Bash: (Kommandozeile)
Da es über 1850 Maven-Projekte gibt habe ich die gefiltert.
1: remote -> org.apache.maven.archetypes:maven-archetype-archetype (An archetype which contains a sample archetype.)
2: remote -> org.apache.maven.archetypes:maven-archetype-j2ee-simple (An archetype which contains a simplified sample J2EE application.)
3: remote -> org.apache.maven.archetypes:maven-archetype-marmalade-mojo (-)
4: remote -> org.apache.maven.archetypes:maven-archetype-mojo (An archetype which contains a sample a sample Maven plugin.)
5: remote -> org.apache.maven.archetypes:maven-archetype-plugin (An archetype which contains a sample Maven plugin.)
6: remote -> org.apache.maven.archetypes:maven-archetype-plugin-site (An archetype which contains a sample Maven plugin site. This archetype can be layered upon an
existing Maven plugin project.)
7: remote -> org.apache.maven.archetypes:maven-archetype-portlet (An archetype which contains a sample JSR-268 Portlet.)
8: remote -> org.apache.maven.archetypes:maven-archetype-profiles (-)
9: remote -> org.apache.maven.archetypes:maven-archetype-quickstart (An archetype which contains a sample Maven project.)
10: remote -> org.apache.maven.archetypes:maven-archetype-simple (An archetype which contains a simple Maven project.)
11: remote -> org.apache.maven.archetypes:maven-archetype-site (An archetype which contains a sample Maven site which demonstrates some of the supported document types like
APT, XDoc, and FML and demonstrates how to i18n your site. This archetype can be layered
upon an existing Maven project.)
12: remote -> org.apache.maven.archetypes:maven-archetype-site-simple (An archetype which contains a sample Maven site.)
13: remote -> org.apache.maven.archetypes:maven-archetype-site-skin (An archetype which contains a sample Maven Site Skin.)
14: remote -> org.apache.maven.archetypes:maven-archetype-webapp (An archetype which contains a sample Maven Webapp project.)
Nummer 9: habe ich gewählt.
Choose org.apache.maven.archetypes:maven-archetype-quickstart version:
1: 1.0-alpha-1
2: 1.0-alpha-2
3: 1.0-alpha-3
4: 1.0-alpha-4
5: 1.0
6: 1.1
7: 1.3
8: 1.4
Jetzt wähle ich die Nummer 6: 6 ( 6 ausgewählt)
Define value for property 'groupId': com.xxx.training.demo (meine Auswahl)
Define value for property 'artifactId': myapp (meine Auswahl)
Define value for property 'version' 1.0-SNAPSHOT: : (jetzt weiß ich nicht was ich eintippen soll, deshalb habe ich ENTER gedrückt)
Define value for property 'package' com.zention.training.demo: : (auch ENTER gedrückt)
Jetzt kommt die Meldung:
Confirm properties configuration:
groupId: com.xxx.training.demo
artifactId: myapp
version: 1.0-SNAPSHOT
package: com.xxx.training.demo
Y: : Y (meine Auswahl Y, mit y habe ich auch versucht)
Jetzt kommt die Fehlermeldung!!!
[INFO] ----------------------------------------------------------------------------
[INFO] Using following parameters for creating project from Old (1.x) Archetype: maven-archetype-quickstart:1.1
[INFO] ----------------------------------------------------------------------------
[INFO] Parameter: basedir, Value: /home/xxx/xxx/apache-maven-3.8.6
[INFO] Parameter: package, Value: com.xxx.training.demo
[INFO] Parameter: groupId, Value: com.xxx.training.demo
[INFO] Parameter: artifactId, Value: myapp
[INFO] Parameter: packageName, Value: com.xxx.training.demo
[INFO] Parameter: version, Value: 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 10:38 min
[INFO] Finished at: 2022-10-28T03:47:55+02:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:3.2.1:generate (default-cli) on project standalone-pom: Unable to process template -> [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/MojoFailureException
Ich bedanke mich im Voraus.