mvn archetype:generate -DarchetypeCatalog=http://citrusframework.org

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

mvn archetype:generate -DarchetypeCatalog=http://citrusframework.org

Laura
Hello,

we try to convert an existing project to a citrus project. We always did it by using maven archetype, but now it doesn't work anymore.

command:
mvn archetype:generate -DarchetypeCatalog=http://citrusframework.org

log output:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:3.0.1:generate (default-cli) on project MFTService: archetypeCatalog 'http://citrusframework.org' is not supported anymore. Please read the plugin documentation for details. -> [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

Does anyone know the reason? Or do you have another solution for converting old projects?

Thanks in advance,
Laura
Reply | Threaded
Open this post in threaded view
|

Re: mvn archetype:generate -DarchetypeCatalog=http://citrusframework.org

Christoph Deppisch
Administrator
You can use the official Maven central repo as archetypeCatalog as follows

    mvn archetype:generate -Dfilter=com.consol.citrus.mvn:citrus
Reply | Threaded
Open this post in threaded view
|

Re: mvn archetype:generate -DarchetypeCatalog=http://citrusframework.org

mavo
Thank you Christoph,

we tried out this command

mvn archetype:generate -Dfilter=com.consol.citrus.mvn:citrus

and got this this answer:

[INFO]                                                                        
[INFO] ------------------------------------------------------------------------
[INFO] Building MFTService 3.0.1.RELEASE
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] >>> maven-archetype-plugin:3.0.1:generate (default-cli) > generate-sources @ MFTService >>>
[INFO]
[INFO] --- version-without-snapshot-plugin:0.0.1:extractVersion (default) @ MFTService ---
[INFO]
[INFO] <<< maven-archetype-plugin:3.0.1:generate (default-cli) < generate-sources @ MFTService <<<
[INFO]
[INFO] --- maven-archetype-plugin:3.0.1:generate (default-cli) @ MFTService ---
[INFO] Generating project in Interactive mode
[WARNING] No archetype found in remote catalog. Defaulting to internal catalog
[INFO] Your filter doesn't match any archetype, so try again with another value.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 19.197 s
[INFO] Finished at: 2017-11-07T16:58:41+01:00
[INFO] Final Memory: 21M/341M
[INFO] ------------------------

What did we wrong ?

Thank you in advance
mavo
Reply | Threaded
Open this post in threaded view
|

Re: mvn archetype:generate -DarchetypeCatalog=http://citrusframework.org

Christoph Deppisch
Administrator
Uhm, I get follwoing output:

[INFO] Scanning for projects...
[INFO] 
[INFO] ------------------------------------------------------------------------
[INFO] Building Maven Stub Project (No POM) 1
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] >>> maven-archetype-plugin:3.0.0:generate (default-cli) > generate-sources @ standalone-pom >>>
[INFO] 
[INFO] <<< maven-archetype-plugin:3.0.0:generate (default-cli) < generate-sources @ standalone-pom <<<
[INFO] 
[INFO] 
[INFO] --- maven-archetype-plugin:3.0.0:generate (default-cli) @ standalone-pom ---
[INFO] Generating project in Interactive mode
[INFO] No archetype defined. Using maven-archetype-quickstart (org.apache.maven.archetypes:maven-archetype-quickstart:1.0)
Choose archetype:
1: remote -> com.consol.citrus.mvn:citrus-quickstart (Citrus quickstart project)
2: remote -> com.consol.citrus.mvn:citrus-quickstart-jms (Citrus quickstart project with JMS consumer and producer)
3: remote -> com.consol.citrus.mvn:citrus-quickstart-soap (Citrus quickstart project with SOAP client and server)
Choose a number or apply filter (format: [groupId:]artifactId, case sensitive contains): :

Maybe a proxy issue with your Maven installation. You need internet access for this to be happy.