Reaching out for the incredible help here at JR, once again.
So, now that I have gotten over most of the humps and learning curve of Maven, I am spreading my (still wet) wings a bit, and trying to create an Archetype for our development team.
We use Spring, Struts, and Velocity, plus a couple of other systems such as JUnit, Cobertura, and PMD. I could not find a provided archetype that set things up like this (closest was one of the AppFuse archetypes), so I figured I'd roll it myself.
I have it all together, but when I go to compile/install it I am getting errors that I cannot resolve.
First question, is there a way to do this from within eclipse?
Next, I first tried to use:
which I ran from the command line within my project root.
I get the following error:
Unable to find resource 'org.apache.maven.plugins:maven-archetype-plugin:plugin:12-SNAPSHOT' in repository central (http://central)
I am using Nexus Repo Manager, and have my settings.xml pointed to our repo as the mirror for *
When I tried to research that I found an article saying that archetype was deprecated and to use archetypeng instead. So I tried:
and I get:
The plugin 'org.apache.maven.plugins:maven-archetypeng-plugin' does not exist or no valid version could be found.
I noticed that org.apache.maven.plugins was not the proper groupId, so I changed to:
and I get:
The plugin 'org.apache.maven.plugins:maven-org.codehaus.mevenide.archetypeng-plugin' does not exist or no valid version could be found.
What am I doing wrong??!?!
"It is our choices, much more than our abilities, that make us who we are."
- Albus Dumbledore
What version of Maven are you using? Remember from 2.0.9 onwards the versions of plugins (including archetype) are 'locked' in the super POM and you may need to override that if there is a newer version than what comes default with your version of Maven.
Another thing to fdo is to actually go to the maven central repo via your web browser and make sure that the plugin version that you're looking for actually exists (if it does then you've probably got a Nexus config issue).