You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "BABA,Yasuyuki (JIRA)" <ji...@codehaus.org> on 2008/03/03 13:49:29 UTC
[jira] Created: (ARCHETYPE-144) Fails "archetype:create" when
specify archetypeVersion
Fails "archetype:create" when specify archetypeVersion
------------------------------------------------------
Key: ARCHETYPE-144
URL: http://jira.codehaus.org/browse/ARCHETYPE-144
Project: Maven Archetype
Issue Type: Bug
Affects Versions: 2.0-alpha-2
Reporter: BABA,Yasuyuki
We uses custom archetype and remote repository.
http://maven.seasar.org/maven2/org/seasar/cubby/cubby-archetype/1.0.0/cubby-archetype-1.0.0.jar
no specify "archetypeVersion" -> build successful
{code}
mvn archetype:create -DremoteRepositories=http://maven.seasar.org/maven2/ \
-DgroupId=com.example.foo -DartifactId=barapp -DarchetypeGroupId=org.seasar.cubby \
-DarchetypeArtifactId=cubby-archetype
{code}
specify "archetypeVersion" -> build error
{code}
mvn archetype:create -DremoteRepositories=http://maven.seasar.org/maven2/ \
-DgroupId=com.example.foo -DartifactId=barapp -DarchetypeGroupId=org.seasar.cubby \
-DarchetypeArtifactId=cubby-archetype -DarchetypeVersion=1.0.0
{code}
and part of log
{code}
[INFO] [archetype:create]
[INFO] Defaulting package to group ID: com.example.foo
[INFO] We are using command line specified remote repositories: http://maven.seasar.org/maven2/
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error creating from archetype
Embedded error: OldArchetype does not exist.
http://repo1.maven.org/maven2/org/seasar/cubby/cubby-archetype/1.0.0/cubby-archetype-1.0.0.jar
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ expects "http://maven.seasar.org/maven2/" !
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2 seconds
[INFO] Finished at: Mon Mar 03 21:16:46 JST 2008
[INFO] Final Memory: 8M/79M
[INFO] ------------------------------------------------------------------------
{code}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (ARCHETYPE-144) Fails "archetype:create" when
specify archetypeVersion
Posted by "BABA,Yasuyuki (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/ARCHETYPE-144?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_125993 ]
BABA,Yasuyuki commented on ARCHETYPE-144:
-----------------------------------------
Thanks Raphael.
But, this case is the old "archetype:create".
Not "archetype:generate".
> Fails "archetype:create" when specify archetypeVersion
> ------------------------------------------------------
>
> Key: ARCHETYPE-144
> URL: http://jira.codehaus.org/browse/ARCHETYPE-144
> Project: Maven Archetype
> Issue Type: Bug
> Affects Versions: 2.0-alpha-2
> Reporter: BABA,Yasuyuki
>
> We uses custom archetype and remote repository.
> http://maven.seasar.org/maven2/org/seasar/cubby/cubby-archetype/1.0.0/cubby-archetype-1.0.0.jar
> no specify "archetypeVersion" -> build successful
> {code}
> mvn archetype:create -DremoteRepositories=http://maven.seasar.org/maven2/ \
> -DgroupId=com.example.foo -DartifactId=barapp -DarchetypeGroupId=org.seasar.cubby \
> -DarchetypeArtifactId=cubby-archetype
> {code}
> specify "archetypeVersion" -> build error
> {code}
> mvn archetype:create -DremoteRepositories=http://maven.seasar.org/maven2/ \
> -DgroupId=com.example.foo -DartifactId=barapp -DarchetypeGroupId=org.seasar.cubby \
> -DarchetypeArtifactId=cubby-archetype -DarchetypeVersion=1.0.0
> {code}
> and part of log
> {code}
> [INFO] [archetype:create]
> [INFO] Defaulting package to group ID: com.example.foo
> [INFO] We are using command line specified remote repositories: http://maven.seasar.org/maven2/
> [INFO] ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO] ------------------------------------------------------------------------
> [INFO] Error creating from archetype
> Embedded error: OldArchetype does not exist.
> http://repo1.maven.org/maven2/org/seasar/cubby/cubby-archetype/1.0.0/cubby-archetype-1.0.0.jar
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ expects "http://maven.seasar.org/maven2/" !
> [INFO] ------------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 2 seconds
> [INFO] Finished at: Mon Mar 03 21:16:46 JST 2008
> [INFO] Final Memory: 8M/79M
> [INFO] ------------------------------------------------------------------------
> {code}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (ARCHETYPE-144) Fails "archetype:create" when
specify archetypeVersion
Posted by "BABA,Yasuyuki (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/ARCHETYPE-144?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_127163 ]
BABA,Yasuyuki commented on ARCHETYPE-144:
-----------------------------------------
Thank you.
Archetype generation succeed when I had the archetype artifact on my local repository.
But, has no archetype artifact on my local repo, unable to download archetype artifact and fails generation.
[baba@x61-baba ~]$ mvn archetype:generate -DarchetypeRepository=http://maven.seasar.org/maven2/ -DgroupId=com.example.foo -DartifactId=barapp -DarchetypeGroupId=org.seasar.cubby -DarchetypeArtifactId=cubby-archetype -DarchetypeVersion=1.0.1 -B
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'archetype'.
[INFO] ------------------------------------------------------------------------
[INFO] Building Maven Default Project
[INFO] task-segment: [archetype:generate] (aggregator-style)
[INFO] ------------------------------------------------------------------------
[INFO] Preparing archetype:generate
[INFO] No goals needed for project - skipping
Downloading: http://repo1.maven.org/maven2/com/example/foo/wagon-http-shared/1.0-beta-2/wagon-http-shared-1.0-beta-2.pom
Downloading: http://repo1.maven.org/maven2/com/example/foo/wagon-http-shared/1.0-beta-2/wagon-http-shared-1.0-beta-2.pom
[INFO] Setting property: classpath.resource.loader.class => 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'.
[INFO] Setting property: velocimacro.messages.on => 'false'.
[INFO] Setting property: resource.loader => 'classpath'.
[INFO] Setting property: resource.manager.logwhenfound => 'false'.
[INFO] [archetype:generate]
[INFO] Archetype defined by properties
org.apache.maven.archetype.downloader.DownloadNotFoundException: Requested download does not exist.
at org.apache.maven.archetype.downloader.DefaultDownloader.download(DefaultDownloader.java:62)
at org.apache.maven.archetype.common.DefaultArchetypeArtifactManager.exists(DefaultArchetypeArtifactManager.java:310)
at org.apache.maven.archetype.ui.DefaultArchetypeGenerationConfigurator.configureArchetype(DefaultArchetypeGenerationConfigurator.java:103)
at org.apache.maven.archetype.mojos.CreateProjectFromArchetypeMojo.execute(CreateProjectFromArchetypeMojo.java:168)
at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:447)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:493)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:463)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:224)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:333)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:126)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:282)
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.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.seasar.cubby -DartifactId=cubby-archetype -Dversion=1.0.1 -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.seasar.cubby -DartifactId=cubby-archetype -Dversion=1.0.1 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
org.seasar.cubby:cubby-archetype:jar:1.0.1
at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:206)
at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveAlways(DefaultArtifactResolver.java:79)
at org.apache.maven.archetype.downloader.DefaultDownloader.download(DefaultDownloader.java:54)
... 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:324)
at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:194)
... 23 more
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] The desired archetype does not exist (org.seasar.cubby:cubby-archetype:1.0.1)
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2 seconds
[INFO] Finished at: Fri Mar 14 08:13:10 JST 2008
[INFO] Final Memory: 8M/79M
[INFO] ------------------------------------------------------------------------
> Fails "archetype:create" when specify archetypeVersion
> ------------------------------------------------------
>
> Key: ARCHETYPE-144
> URL: http://jira.codehaus.org/browse/ARCHETYPE-144
> Project: Maven Archetype
> Issue Type: Bug
> Affects Versions: 2.0-alpha-2
> Reporter: BABA,Yasuyuki
>
> We uses custom archetype and remote repository.
> http://maven.seasar.org/maven2/org/seasar/cubby/cubby-archetype/1.0.0/cubby-archetype-1.0.0.jar
> no specify "archetypeVersion" -> build successful
> {code}
> mvn archetype:create -DremoteRepositories=http://maven.seasar.org/maven2/ \
> -DgroupId=com.example.foo -DartifactId=barapp -DarchetypeGroupId=org.seasar.cubby \
> -DarchetypeArtifactId=cubby-archetype
> {code}
> specify "archetypeVersion" -> build error
> {code}
> mvn archetype:create -DremoteRepositories=http://maven.seasar.org/maven2/ \
> -DgroupId=com.example.foo -DartifactId=barapp -DarchetypeGroupId=org.seasar.cubby \
> -DarchetypeArtifactId=cubby-archetype -DarchetypeVersion=1.0.0
> {code}
> and part of log
> {code}
> [INFO] [archetype:create]
> [INFO] Defaulting package to group ID: com.example.foo
> [INFO] We are using command line specified remote repositories: http://maven.seasar.org/maven2/
> [INFO] ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO] ------------------------------------------------------------------------
> [INFO] Error creating from archetype
> Embedded error: OldArchetype does not exist.
> http://repo1.maven.org/maven2/org/seasar/cubby/cubby-archetype/1.0.0/cubby-archetype-1.0.0.jar
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ expects "http://maven.seasar.org/maven2/" !
> [INFO] ------------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 2 seconds
> [INFO] Finished at: Mon Mar 03 21:16:46 JST 2008
> [INFO] Final Memory: 8M/79M
> [INFO] ------------------------------------------------------------------------
> {code}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira