Thanks Stephen,
This is the resulting error message when I do as you suggested:

Error building POM (may not be this project's POM).

Project ID: org.apache.maven.plugins:maven-archetype-plugin

Reason: POM 'org.apache.maven.plugins:maven-archetype-plugin' not found in
repository: System is offline.

  org.apache.maven.plugins:maven-archetype-plugin:pom:2.0-alpha-3

 for project org.apache.maven.plugins:maven-archetype-plugin


On Tue, Sep 23, 2008 at 10:03 AM, Stephen Connolly <
[EMAIL PROTECTED]> wrote:

> 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 <[EMAIL PROTECTED]>
>
> > 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:
> > *
> > [EMAIL PROTECTED]:~> 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.
> >
>

Reply via email to