Hi Youngho, to get an instance of an archetype you should change into an empty folder, because it seems, that an already existing pom.xml is rejected by the plugin, if not type pom ..
Then run (as you probably did, but now from this clean folder or at least
a folder with no pom.xml in the root)
mvn archetype:generate -DarchetypeCatalog=local
and select
local -> org.apache.turbine:turbine-webapp-5.1 (This archetype sets up a
web application project based on Apache Turbine 5.x and Torque 5.x)
This installs the archetype instance into a folder named <artifactId>,
that is in your case helloQuark.
If you want to play around with an already generated archetype instance
you may check after mvn install (in the turbine-archetypes repo)
target/test-classes/projects/project/first/integrationtest.
But be aware, that this will get deleted again (running mvn clean in the
repo workspace root)!
Have fun!
Best regards, Georg
BTW dev@turbine: We have to update the docs in
https://github.com/apache/turbine-archetypes/tree/master/src/main/resources/archetype-resources/docs
and of course should release this archetype after the next turbine core
release...
Von: 조영호 <[email protected]>
An: [email protected]
Datum: 27.10.2021 14:21
Betreff: a test webapp build using turbine-archetype problem
I installed turbine-5.1-SNAPSHOT successfully.
Thanks Georg!
By the way, I tried to build a webapp using turbine-archetype.
But I got the following error message.
[INFO]
----------------------------------------------------------------------------
[INFO] Using following parameters for creating project from Archetype:
turbine-webapp-5.1:2.0.0-SNAPSHOT
[INFO]
----------------------------------------------------------------------------
[INFO] Parameter: groupId, Value: com.easydesk.quark
[INFO] Parameter: artifactId, Value: helloQuark
[INFO] Parameter: version, Value: 1.0
[INFO] Parameter: package, Value: com.easydesk.quark
[INFO] Parameter: packageInPathFormat, Value: com/easydesk/quark
[INFO] Parameter: turbine_database_jndipath, Value: jdbc/turbine
[INFO] Parameter: turbine_database_driver, Value: com.mysql.cj.jdbc.Driver
[INFO] Parameter: app_volume_local_repo, Value:
${settings.localRepository}
[INFO] Parameter: turbine_database_timezone, Value: UTC
[INFO] Parameter: docker, Value: false
[INFO] Parameter: groupId, Value: com.easydesk.quark
[INFO] Parameter: turbine_database_url, Value:
jdbc:mysql://localhost:3306/
[INFO] Parameter: turbine_app_name, Value: HelloWorld
[INFO] Parameter: turbine_database_name, Value: helloWorld
[INFO] Parameter: turbine_database_password, Value:
[INFO] Parameter: version, Value: 1.0
[INFO] Parameter: turbine_intake_file, Value: intake.xml
[INFO] Parameter: turbine_database_adapter, Value: mysql
[INFO] Parameter: package, Value: com.easydesk.quark
[INFO] Parameter: turbine_database_user, Value: youngho
[INFO] Parameter: artifactId, Value: helloQuark
[INFO]
------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 29.678 s
[INFO] Finished at: 2021-10-27T20:19:03+09:00
[INFO] Final Memory: 24M/177M
[INFO]
------------------------------------------------------------------------
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-archetype-plugin:3.2.0:generate
(default-cli) on project turbine-webapp-5.1: Unable to add module to the
current project as it is not of packaging type 'pom' -> [Help 1]
I don't know the problem here.
How can I go one step further ?
Thanks,
Youngho
smime.p7s
Description: S/MIME Cryptographic Signature
