Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to generate project structure #27

Closed
brettsaunders21 opened this issue Apr 4, 2019 · 2 comments
Closed

Unable to generate project structure #27

brettsaunders21 opened this issue Apr 4, 2019 · 2 comments

Comments

@brettsaunders21
Copy link

When I run the command:
mvn archetype:generate -DarchetypeRepository=local -DarchetypeRepository=$HOME/.m2/repository -DarchetypeGroupId=com.badlogic.gdx -DarchetypeArtifactId=gdx-archetype -DarchetypeVersion=1.2.0

I get this:

[INFO] Scanning for projects...
[INFO]
[INFO] -----------------------< com.bmj:BetweenWorlds >------------------------
[INFO] Building BetweenWorlds 0.0.1
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] >>> maven-archetype-plugin:3.0.1:generate (default-cli) > generate-sources @ BetweenWorlds >>>
[INFO]
[INFO] <<< maven-archetype-plugin:3.0.1:generate (default-cli) < generate-sources @ BetweenWorlds <<<
[INFO]
[INFO]
[INFO] --- maven-archetype-plugin:3.0.1:generate (default-cli) @ BetweenWorlds ---
[INFO] Generating project in Interactive mode
[WARNING] Archetype not found in any catalog. Falling back to central repository.
[WARNING] Add a repsoitory with id 'archetype' in your settings.xml if archetype's repository is elsewhere.
[WARNING] The POM for com:gdx-archetype:jar:1 is missing, no dependency information available
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Skipping BetweenWorlds

[INFO] This project has been banned from the build due to previous failures.
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  3.377 s
[INFO] Finished at: 2019-04-04T23:14:40+01:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:3.0.1:generate (default-cli) on project BetweenWorlds: The desired archetype does not exist (com:gdx-archetype:1) -> [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
@brettsaunders21
Copy link
Author

I have followed all steps before and also followed steps found in other issues, but no luck.

@Elvynia
Copy link

Elvynia commented Apr 6, 2019

Your maven output is weird. The error message mention not finding com:gdx-archetype:jar:1 but it should have been searching for com.badlogic.gdx:gdx-archetype:jar:1.2.0. The groupId and version seems to be cut of in the middle.
I copied & pasted your command and it worked for me though.

Hope this helps

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants