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

Add archetypeCatalog setting of local to prevent repository==null error in generation #10890

Merged
merged 1 commit into from
Jul 28, 2023

Conversation

cunningt
Copy link
Contributor

@cunningt cunningt commented Jul 28, 2023

I'm getting the following error in building RC2 locally :

[INFO] --- archetype:3.2.1:generate (generate-my-car-service) @ camel-olingo2 ---
[INFO] Generating project in Batch mode
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  10.036 s
[INFO] Finished at: 2023-07-28T11:08:52-04:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:3.2.1:generate (generate-my-car-service) on project camel-olingo2: Cannot invoke "org.apache.maven.artifact.repository.ArtifactRepository.getUrl()" because "repository" is null -> [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

Looking at the documentation for the maven-archetype-plugin generate goal, it looks like <archetypeCatalog/> controls the catalog search and local might be the most appropriate setting?

https://maven.apache.org/archetype/maven-archetype-plugin/generate-mojo.html#archetypeCatalog

This change fixed the build error locally for me.

@github-actions
Copy link
Contributor

🌟 Thank you for your contribution to the Apache Camel project! 🌟

🐫 Maintainers, please note that first-time contributors require manual approval for the GitHub Actions to run.

⚠️ Please note that the changes on this PR may be tested automatically if they change components.

🤖 Use the command /component-test (camel-)component-name1 (camel-)component-name2.. to request a test from the test bot.

If necessary Apache Camel Committers may access logs and test results in the job summaries!

@cunningt cunningt changed the title Add <archetypeCatalog/> local to prevent repository==null error in generation Add archetypeCatalog setting of local to prevent repository==null error in generation Jul 28, 2023
@davsclaus davsclaus merged commit 90242be into apache:main Jul 28, 2023
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants