Hi

I'm trying to follow the Appfuse Quickstart installing on OpenSuse 11.0. I've 
got to stage 2 and I'm trying to execute the command to create a Struts 2 
modular project with the comand mvn 
archetype:create -DarchetypeGroupidId=org.appfuse.archetypes 
-DarchetypeArtifactId=appfuse-modular-struts 
-DremoteRepositories=http://static.appfuse.org/releases 
-DarchetypeVersion=2.0.2 -DgroupId=uk.co.vasilikon.appfuse 
-DartifactId=testproject

After a few minutes I get;
[INFO] We are using command line specified remote repositories: 
http://static.appfuse.org/releases
Downloading: 
http://static.appfuse.org/releases/org/apache/maven/archetypes/appfuse-modular-struts/2.0.2/appfuse-modular-struts-2.0.2.jar
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error creating from archetype

Embedded error: 
org.apache.maven.archetype.downloader.DownloadNotFoundException: Requested 
download does not exist.
Unable to download the artifact from any repository

I've re-run the command with the -e switch as recommended and get the dump 
listed below. I've seen the instructions to try manually downloading the 
file, but as a complete Appfuse/Maven newbie I have no idea 
where -DPath/To/File should be pointing.

Regards

[INFO] We are using command line specified remote repositories: 
http://static.appfuse.org/releases
Downloading: 
http://static.appfuse.org/releases/org/apache/maven/archetypes/appfuse-modular-struts/2.0.2/appfuse-modular-struts-2.0.2.jar
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error creating from archetype

Embedded error: 
org.apache.maven.archetype.downloader.DownloadNotFoundException: Requested 
download does not exist.
Unable to download the artifact from any repository
[INFO] ------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Error creating from 
archetype
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:583)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:512)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:482)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:330)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:227)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
        at 
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.MojoExecutionException: Error creating from 
archetype
        at 
org.apache.maven.archetype.mojos.MavenArchetypeMojo.execute(MavenArchetypeMojo.java:241)
        at 
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:451)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:558)
        ... 16 more
Caused by: org.apache.maven.archetype.exception.UnknownArchetype: 
org.apache.maven.archetype.downloader.DownloadNotFoundException: Requested 
download does not exist.
        at 
org.apache.maven.archetype.common.DefaultArchetypeArtifactManager.getArchetypeFile(DefaultArchetypeArtifactManager.java:117)
        at 
org.apache.maven.archetype.old.DefaultOldArchetype.createArchetype(DefaultOldArchetype.java:119)
        at 
org.apache.maven.archetype.mojos.MavenArchetypeMojo.execute(MavenArchetypeMojo.java:230)
        ... 18 more
Caused by: org.apache.maven.archetype.downloader.DownloadNotFoundException: 
Requested download does not exist.
        at 
org.apache.maven.archetype.downloader.DefaultDownloader.download(DefaultDownloader.java:63)
        at 
org.apache.maven.archetype.common.DefaultArchetypeArtifactManager.getArchetypeFile(DefaultArchetypeArtifactManager.java:98)
        ... 20 more
Caused by: org.apache.maven.artifact.resolver.ArtifactNotFoundException: 
Unable to download the artifact from any repository

Try downloading the file manually from the project website.

Then, install it using the command:
    mvn 
install:install-file -DgroupId=org.apache.maven.archetypes 
-DartifactId=appfuse-modular-struts -Dversion=2.0.2 -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.apache.maven.archetypes 
-DartifactId=appfuse-modular-struts -Dversion=2.0.2 -Dpackaging=jar 
-Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]


  org.apache.maven.archetypes:appfuse-modular-struts:jar:2.0.2

from the specified remote repositories:
  id0 (http://static.appfuse.org/releases)

        at 
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:212)
        at 
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:74)
        at 
org.apache.maven.archetype.downloader.DefaultDownloader.download(DefaultDownloader.java:55)
        ... 21 more
Caused by: org.apache.maven.wagon.ResourceDoesNotExistException: Unable to 
download the artifact from any repository
        at 
org.apache.maven.artifact.manager.DefaultWagonManager.getArtifact(DefaultWagonManager.java:331)
        at 
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:200)
        ... 23 more

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to