fernanda-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=php5-zend-archetype -Dversion=1.0 -Dpackaging=jar -Dfile=/path/to/file1)find the artfact (php5-zend-archetype) http://nexus.php-maven.org/index.html#nexus-search;quick~php5-zend-archetype
2)install locally usually to ${env.HOME}/.m2/repository 3)use the -o on your next mvn invocation to say i have the artifact stored locally ..e.g. mvn -o Esto ayudará Martin ______________________________________________ Porfavor..no altere or disrupta esta communicacion..Gracias > From: fernanda.g.ara...@gmail.com > Date: Wed, 27 Jun 2012 00:34:49 -0300 > Subject: Problem with maven for php > To: users@maven.apache.org > > Hi, > > I'm trying to build a new project using mvn archetype:generate > -DarchetypeArtifactId=php5-zend-archetype -X > > It gives me the following error > > [DEBUG] Archetype org.apache.maven.archetypes:php5-zend-archetype:1.0 > doesn't exist > org.apache.maven.archetype.downloader.DownloadNotFoundException: Requested > org.apache.maven.archetypes:php5-zend-archetype:jar:1.0 download does not > exist. > at > org.apache.maven.archetype.downloader.DefaultDownloader.download(DefaultDownloader.java:78) > at > org.apache.maven.archetype.common.DefaultArchetypeArtifactManager.exists(DefaultArchetypeArtifactManager.java:272) > at > org.apache.maven.archetype.ui.generation.DefaultArchetypeGenerationConfigurator.configureArchetype(DefaultArchetypeGenerationConfigurator.java:114) > at > org.apache.maven.archetype.mojos.CreateProjectFromArchetypeMojo.execute(CreateProjectFromArchetypeMojo.java:205) > at > org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101) > at > org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209) > at > org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) > at > org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) > at > org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84) > at > org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59) > at > org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183) > at > org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161) > at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319) > at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156) > at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537) > at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196) > at org.apache.maven.cli.MavenCli.main(MavenCli.java:141) > 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.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290) > at > org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230) > at > org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409) > at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352) > Caused by: org.apache.maven.artifact.resolver.ArtifactNotFoundException: > Failure to find org.apache.maven.archetypes:php5-zend-archetype:jar:1.0 in > http://repo1.php-maven.org/release was cached in the local repository, > resolution will not be reattempted until the update interval of > release-repo1.php-maven.org has elapsed or updates are forced > > 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=php5-zend-archetype -Dversion=1.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.apache.maven.archetypes > -DartifactId=php5-zend-archetype -Dversion=1.0 -Dpackaging=jar > -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id] > > > org.apache.maven.archetypes:php5-zend-archetype:jar:1.0 > > from the specified remote repositories: > release-repo1.php-maven.org (http://repo1.php-maven.org/release, > releases=true, snapshots=true), > snapshot-repo1.php-maven.org (http://repo1.php-maven.org/snapshot, > releases=false, snapshots=true), > central (http://repo1.maven.org/maven2, releases=true, snapshots=false) > > at > org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:219) > at > org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:157) > at > org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:525) > at > org.apache.maven.archetype.downloader.DefaultDownloader.download(DefaultDownloader.java:70) > ... 24 more > Caused by: org.sonatype.aether.resolution.ArtifactResolutionException: > Failure to find org.apache.maven.archetypes:php5-zend-archetype:jar:1.0 in > http://repo1.php-maven.org/release was cached in the local repository, > resolution will not be reattempted until the update interval of > release-repo1.php-maven.org has elapsed or updates are forced > at > org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:541) > at > org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:220) > at > org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifact(DefaultArtifactResolver.java:197) > at > org.sonatype.aether.impl.internal.DefaultRepositorySystem.resolveArtifact(DefaultRepositorySystem.java:323) > at > org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:213) > ... 27 more > Caused by: org.sonatype.aether.transfer.ArtifactNotFoundException: Failure > to find org.apache.maven.archetypes:php5-zend-archetype:jar:1.0 in > http://repo1.php-maven.org/release was cached in the local repository, > resolution will not be reattempted until the update interval of > release-repo1.php-maven.org has elapsed or updates are forced > at > org.sonatype.aether.impl.internal.DefaultUpdateCheckManager.checkArtifact(DefaultUpdateCheckManager.java:190) > at > org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:430) > ... 31 more > [INFO] > ------------------------------------------------------------------------ > [INFO] BUILD FAILURE > [INFO] > ------------------------------------------------------------------------ > [INFO] Total time: 2.502s > [INFO] Finished at: Wed Jun 27 00:22:57 BRT 2012 > [INFO] Final Memory: 10M/115M > [INFO] > ------------------------------------------------------------------------ > [ERROR] Failed to execute goal > org.apache.maven.plugins:maven-archetype-plugin:2.2:generate (default-cli) > on project standalone-pom: The desired archetype does not exist > (org.apache.maven.archetypes:php5-zend-archetype:1.0) -> [Help 1] > org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute > goal org.apache.maven.plugins:maven-archetype-plugin:2.2:generate > (default-cli) on project standalone-pom: The desired archetype does not > exist (org.apache.maven.archetypes:php5-zend-archetype:1.0) > at > org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:213) > at > org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) > at > org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) > at > org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84) > at > org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59) > at > org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183) > at > org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161) > at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319) > at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156) > at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537) > at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196) > at org.apache.maven.cli.MavenCli.main(MavenCli.java:141) > 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.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290) > at > org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230) > at > org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409) > at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352) > Caused by: org.apache.maven.plugin.MojoFailureException: The desired > archetype does not exist > (org.apache.maven.archetypes:php5-zend-archetype:1.0) > at > org.apache.maven.archetype.mojos.CreateProjectFromArchetypeMojo.execute(CreateProjectFromArchetypeMojo.java:221) > at > org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101) > at > org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209) > ... 19 more > Caused by: org.apache.maven.archetype.exception.UnknownArchetype: The > desired archetype does not exist > (org.apache.maven.archetypes:php5-zend-archetype:1.0) > at > org.apache.maven.archetype.ui.generation.DefaultArchetypeGenerationConfigurator.configureArchetype(DefaultArchetypeGenerationConfigurator.java:117) > at > org.apache.maven.archetype.mojos.CreateProjectFromArchetypeMojo.execute(CreateProjectFromArchetypeMojo.java:205) > ... 21 more > [ERROR] > [ERROR] > [ERROR] For more information about the errors and possible solutions, > please read the following articles: > [ERROR] [Help 1] > http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException