maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stephen Connolly" <stephen.alan.conno...@gmail.com>
Subject Re: how to get maven 2.0.9 to use local repository
Date Tue, 23 Sep 2008 07:03:27 GMT
It sounds like the issue is that you have something else forcing the
archetype version on you.

can you check and see if

mvn -o org.apache.maven.plugins:maven-archetype-plugin:2.0-alpha-3:create

works for you?

If that works for you then what's happening is that a pom is locking down
the version to a version that you have not downloaded yet.

2008/9/23 Eric Njogu <kunadawa@gmail.com>

> Hallo!
>
> I am using maven on openSUSE 11 to create an appfuse project with the
> following command:
>
> *mvn* archetype:create -DarchetypeGroupId=org.appfuse.archetypes
> -DarchetypeArtifactId=appfuse-basic-struts -DarchetypeVersion=2.0.2
> -DgroupId=*com.oci.sample* -DartifactId=*timeEntry
>
> *The command works ok and retrieves the dependencies. Checking in
> ~/.m2/repository, I can find the files that have been downloaded.
>
> On creating a similar project with a different name but in offline mode, I
> get the following error:
>
>  The plugin 'org.apache.maven.plugins:maven-archetype-plugin' does not
> exist
> or no valid version could be found
>
> Yet searching the repository shows the following:
> *
> enjogu@kinangop:~> find .m2/ -name 'maven-archetype-plugin*'*
> .m2/repository/org/apache/maven/plugins/maven-archetype-plugin
>
> .m2/repository/org/apache/maven/plugins/maven-archetype-plugin/2.0-alpha-3/maven-archetype-plugin-2.0-alpha-3.pom
>
> .m2/repository/org/apache/maven/plugins/maven-archetype-plugin/2.0-alpha-3/maven-archetype-plugin-2.0-alpha-3.jar
>
> .m2/repository/org/apache/maven/plugins/maven-archetype-plugin/2.0-alpha-3/maven-archetype-plugin-2.0-alpha-3.pom.sha1
>
> .m2/repository/org/apache/maven/plugins/maven-archetype-plugin/2.0-alpha-3/maven-archetype-plugin-2.0-alpha-3.jar.sha1
>
> Please tell me how I can use the local repository and avoid going online.
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message