Thanks Drew. Good article.
I have moved on to the instructions at -
http://cernunnos.googlecode.com/svn/manual/index.html
(Cernunnos & Maven)
Since I'm not adding to an existing project, I skipped straight to the
"Creating a New Project from Scratch" section. It appears that you
have to have the archetype already installed in your local repository
for these instructions to work. I am getting more familiar with Maven
by the minute, but I am a bit stuck on how to reference the jasig
repository without having an existing project pom to update. I
believe the .m2/settings.xml needs to be updated, but I have not had
much luck with that.
Right now, running the command:
mvn archetype:create -DarchetypeGroupId=com.googlecode.cernunnos -
DarchetypeArtifactId=cernunnos-webapp -DarchetypeVersion=1.0.0 -
DgroupId=blah -DartifactId=blah
Results in:
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'archetype'.
[INFO]
------------------------------------------------------------------------
[INFO] Building Maven Default Project
[INFO] task-segment: [archetype:create] (aggregator-style)
[INFO]
------------------------------------------------------------------------
[INFO] Setting property: classpath.resource.loader.class =>
'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'.
[INFO] Setting property: velocimacro.messages.on => 'false'.
[INFO] Setting property: resource.loader => 'classpath'.
[INFO] Setting property: resource.manager.logwhenfound => 'false'.
[INFO] [archetype:create]
[WARNING] This goal is deprecated. Please use mvn archetype:generate
instead
[INFO] Defaulting package to group ID: blah
Downloading:
http://repo1.maven.org/maven2/com/googlecode/cernunnos/cernunnos-webapp/1.0.0/cernunnos-webapp-1.0.0.jar
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Failed to resolve artifact.
GroupId: com.googlecode.cernunnos
ArtifactId: cernunnos-webapp
Version: 1.0.0
Reason: Unable to download the artifact from any repository
So, it does not appear to be searching the jasig repository. Any
advice would be appreciated.
Thanks, Tim
> - Slides from "Servlets & Portlets" presentation in Dallas:
http://www.ja-sig.org/wiki/download/attachments/22940141/cernunnos-se...
>
> Ultimately, I need to get this info into the manual and perhaps also the
> project wiki.
>
> drew wills
>
> On Wed, Apr 1, 2009 at 9:28 AM,
logiclan...@gmail.com <
logiclan...@gmail.com