Hello,
you've a typo in the command.
Please take a look at "DarchetypeRepository=
https://repository.apache.org/content/repositories/snapshots \", this line
must be "-DarchetypeRepository=
https://repository.apache.org/content/repositories/snapshots \" so you're
missing the "-" before "D".

Trying with this correction all works as expected.

HTH
Best Regards,
Lorenzo

Il giorno mar 2 set 2025 alle ore 09:50 Sanjeev Bali <
[email protected]> ha scritto:

> Hi
>
> I am trying to build a project using the Following Command
>
> mvn org.apache.maven.plugins:maven-archetype-plugin:2.4:generate \
>     -DarchetypeGroupId=org.apache.syncope \
>     -DarchetypeArtifactId=syncope-archetype \
>    DarchetypeRepository=
> https://repository.apache.org/content/repositories/snapshots \
>     -DarchetypeVersion=4.0.2-SNAPSHOT
>
> As soon as it starts building, it gives the following Error
> [INFO]
> [INFO] --- archetype:2.4:generate (default-cli) @ standalone-pom ---
> [INFO] Generating project in Interactive mode
> [INFO] Archetype defined by properties
> Downloading from syncope-archetype-repo:
> https://repository.apache.org/content/repositories/snapshots/org/apache/syncope/syncope-archetype/4.0.2-SNAPSHOT/maven-metadata.xml
> [WARNING] Could not transfer metadata
> org.apache.syncope:syncope-archetype:4.0.2-SNAPSHOT/maven-metadata.xml
> from/to syncope-archetype-repo (
> https://repository.apache.org/content/repositories/snapshots): Connect to
> repository.apache.org:443 [repository.apache.org/37.27.138.133] failed:
> Connect timed out
> Downloading from syncope-archetype-repo:
> https://repository.apache.org/content/repositories/snapshots/org/apache/syncope/syncope-archetype/4.0.2-SNAPSHOT/syncope-archetype-4.0.2-SNAPSHOT.jar
> [INFO]
> ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time:  20.572 s
> [INFO] Finished at: 2025-09-02T07:44:52Z
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-archetype-plugin:2.4:generate (default-cli)
> on project standalone-pom: The desired archetype does not exist
> (org.apache.syncope:syncope-archetype:4.0.2-SNAPSHOT) -> [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
>
>
> Can you please help solve this issue? This has been happening for last 15
> Hrs.
>
>
>
> Regards
>
>
> ____________________________________________________________________________________
>
> Sanjeev Bali
> (CNA,CNE,CLDA,CLP,NCE,CNI)
> (Identity and Security Advanced Technical Specialist)
>
> Cell: +919212747810
>
>
>
> Planned Leave :
>
> Planned Vacation :
>
>
>
>
>
>
>
>

-- 

-- 
Lorenzo Di Cola

Software Engineer @ Tirasa S.r.l.
Viale Vittoria Colonna, 97 - 65127 Pescara
Tel +39 0859116307 / FAX +39 0859111173http://www.tirasa.net

Apache Syncope Committer

Syncope PMC Member at The Apache Software Foundation

http://people.apache.org/phonebook.html?uid=loredicola

Reply via email to