You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Mikko Ravimo <ra...@gmail.com> on 2008/05/21 19:58:26 UTC

Unable to create project based on spring-rpc arhectype

Hi,

**** First dowloading the spring richclient project and running install for
it: *****
[INFO]
------------------------------------------------------------------------
[INFO] Building Spring richclient archetype
[INFO]    task-segment: [install]
[INFO]
------------------------------------------------------------------------
[INFO] [jar:jar]
[INFO] Preparing source:jar
[WARNING] Removing: jar from forked lifecycle, to prevent recursive
invocation.
[INFO] No goals needed for project - skipping
[INFO] [source:jar {execution: default}]
[INFO] Building jar:
/home/mikko/temp/spring-richclient/spring-richclient-archetype/target/spring-richclient-archetype-1.0.0-sources.jar
INFO] [install:install]
[INFO] Installing
/home/mikko/temp/spring-richclient/spring-richclient-archetype/target/spring-richclient-archetype-1.0.0.jar
to
/home/mikko/.m2/repository/org/springframework/richclient/spring-richclient-archetype/1.0.0/spring-richclient-archetype-1.0.0.jar
[INFO] Installing
/home/mikko/temp/spring-richclient/spring-richclient-archetype/target/spring-richclient-archetype-1.0.0-sources.jar
to
/home/mikko/.m2/repository/org/springframework/richclient/spring-richclient-archetype/1.0.0/spring-richclient-archetype-1.0.0-sources.jar
[INFO]
------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
------------------------------------------------------------------------
[INFO] Spring richclient archetype ........................... SUCCESS
[0.146s]
[INFO]
------------------------------------------------------------------------
[INFO]
------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO]
------------------------------------------------------------------------


**** Then trying to create project based on the archetype: *****
mikko@aurinko:~/temp$ mvn -e archetype:create
-DarchetypeGroupId=org.springframework.richclient
-DarchetypeArtifactId=spring-richclient-archetype -DarchetypeVersion=1.0.0
-DgroupId=nakoradio -DartifactId=jticks

[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Error creating from archetype
Embedded error: OldArchetype does not exist.
http://repo1.maven.org/maven2/org/springframework/richclient/spring-richclient-archetype/1.0.0/spring-richclient-archetype-1.0.0.jar
Try downloading the file manually from the project website.
Then, install it using the command:
    mvn install:install-file -DgroupId=org.springframework.richclient
-DartifactId=spring-richclient-archetype -Dversion=1.0.0 -Dpackaging=jar
-Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file
there:
    mvn deploy:deploy-file -DgroupId=org.springframework.richclient
-DartifactId=spring-richclient-archetype -Dversion=1.0.0 -Dpackaging=jar
-Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

***** Ok. So off to install it: *****
mikko@aurinko:~/temp$ mvn install:install-file
-DgroupId=org.springframework.richclient
-DartifactId=spring-richclient-archetype -Dversion=1.0.0 -Dpackaging=jar
-Dfile=/home/mikko/.m2/repository/org/springframework/richclient/spring-richclient-archetype/1.0.0/spring-richclient-archetype-1.0.0.jar
[ERROR] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Cannot install artifact. Artifact is already in the local repository.


So I tried to create a new project based on the archetype. Failed because
the archetype was not found. Tried to install the archetype, but it fails
because it is already there.

What is the problem here?