Fionn
JCHJava Community | Help. Code. Learn.
•Created by Fionn on 11/22/2024 in #java-help
Maven Archetype Catalog
thanks for walking through anyway, I'll take the defeat here 😄
43 replies
JCHJava Community | Help. Code. Learn.
•Created by Fionn on 11/22/2024 in #java-help
Maven Archetype Catalog
yepp tried that
43 replies
JCHJava Community | Help. Code. Learn.
•Created by Fionn on 11/22/2024 in #java-help
Maven Archetype Catalog
gonna give up and leave it there -- my team can local install the archetype when needed 😅
43 replies
JCHJava Community | Help. Code. Learn.
•Created by Fionn on 11/22/2024 in #java-help
Maven Archetype Catalog
exactly - you cant do that in CodeArtifact
43 replies
JCHJava Community | Help. Code. Learn.
•Created by Fionn on 11/22/2024 in #java-help
Maven Archetype Catalog
It wont go "up" out the folder and see all the actual archetypes
43 replies
JCHJava Community | Help. Code. Learn.
•Created by Fionn on 11/22/2024 in #java-help
Maven Archetype Catalog
wont it try to resolve all packages recursively from the root of that repo ?
43 replies
JCHJava Community | Help. Code. Learn.
•Created by Fionn on 11/22/2024 in #java-help
Maven Archetype Catalog
it must be that CodeArtifact is not compatible with this -- the archetype plugin expects the catalog.xml at the root, but CodeArtifact needs to put it inside a folder
43 replies
JCHJava Community | Help. Code. Learn.
•Created by Fionn on 11/22/2024 in #java-help
Maven Archetype Catalog
so It's looking like it may be a case of asking team members to install the archetype locally with a git clone + mvn install
43 replies
JCHJava Community | Help. Code. Learn.
•Created by Fionn on 11/22/2024 in #java-help
Maven Archetype Catalog
thankfully its only a single archetype I want to share right now
43 replies
JCHJava Community | Help. Code. Learn.
•Created by Fionn on 11/22/2024 in #java-help
Maven Archetype Catalog
still doesnt solve how to get the plugin to target the archetype
43 replies
JCHJava Community | Help. Code. Learn.
•Created by Fionn on 11/22/2024 in #java-help
Maven Archetype Catalog
yepp I was able to do that locally, but not sure how I would set that up on the remote
43 replies
JCHJava Community | Help. Code. Learn.
•Created by Fionn on 11/22/2024 in #java-help
Maven Archetype Catalog
hmm I'm using CodeArtifact, let me see do they have an equivelant
43 replies
JCHJava Community | Help. Code. Learn.
•Created by Fionn on 11/22/2024 in #java-help
Maven Archetype Catalog
right, so as part of CI/CD you would copy down that file, install the archetype and push it again -- seems wieldy
43 replies
JCHJava Community | Help. Code. Learn.
•Created by Fionn on 11/22/2024 in #java-help
Maven Archetype Catalog
Even once it's hosted, I dont understand how it would be maintained -- the local catalog (~/.m2/repository/archetype-catalog.xml) is update when you install an archetype locally, but in a remote setting, I dont see that getting updated
43 replies
JCHJava Community | Help. Code. Learn.
•Created by Fionn on 11/22/2024 in #java-help
Maven Archetype Catalog
but when I run
mvn archetype:generate (groupID/artifactId)
then I get "Could not find metadata /archetype-catalog.xml in central" (where Central is my "main" private repo)43 replies
JCHJava Community | Help. Code. Learn.
•Created by Fionn on 11/22/2024 in #java-help
Maven Archetype Catalog
accordingg to the docs here: https://maven.apache.org/archetype/maven-archetype-plugin/generate-mojo.html#archetypeCatalog
I should specify a repository in my settings.xml with id of "archetype"
43 replies
JCHJava Community | Help. Code. Learn.
•Created by Fionn on 11/22/2024 in #java-help
Maven Archetype Catalog
not even sure tbh, I'm having more trouble pointing the archetype plugin to the place I tell it
43 replies
JCHJava Community | Help. Code. Learn.
•Created by Fionn on 11/22/2024 in #java-help
Maven Archetype Catalog
yes that would be good info to include, one sec..
43 replies
JCHJava Community | Help. Code. Learn.
•Created by Fionn on 11/22/2024 in #java-help
Maven Archetype Catalog
the plugin always looks for
archetype-catalog.xml
in the root of the repo you tell it about -- but uploads to my repo are versioned, e.g. archetype-catalog-1.0.0.xml
inside a packae I created to host it43 replies
JCHJava Community | Help. Code. Learn.
•Created by Fionn on 11/22/2024 in #java-help
Maven Archetype Catalog
it's quite under-documented and not a lot of examples/walkthroughs online
43 replies