You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "chenliang (JIRA)" <ji...@codehaus.org> on 2008/03/10 03:10:29 UTC
[jira] Created: (ARCHETYPE-147) Cannot create a new project from an
exist project
Cannot create a new project from an exist project
-------------------------------------------------
Key: ARCHETYPE-147
URL: http://jira.codehaus.org/browse/ARCHETYPE-147
Project: Maven Archetype
Issue Type: Bug
Components: Archetypes
Affects Versions: 2.0-alpha-2
Reporter: chenliang
1:run mvn:create-from-project in an existing project d:\workspace\myArchetype
2:run mvn:install in d:\workspace\myArchetype\target\archetype
All the command run success
But after that, i move to d:\workspace and try run mvn archetype:create. It fails. The log is here:
Downloading: http://repo1.maven.org/maven2/com/ncs/iconnect/testproject/wagon-h
tp-shared/1.0-beta-2/wagon-http-shared-1.0-beta-2.pom
Downloading: http://repo1.maven.org/maven2/com/ncs/iconnect/testproject/wagon-h
tp-shared/1.0-beta-2/wagon-http-shared-1.0-beta-2.pom
[INFO] Setting property: classpath.resource.loader.class => 'org.codehaus.plexu
.velocity.ContextClassLoaderResourceLoader'.
[INFO] Setting property: velocimacro.messages.on => 'false'.
[INFO] Setting property: resource.loader => 'classpath'.
[INFO] Setting property: resource.manager.logwhenfound => 'false'.
[INFO] [archetype:create]
[INFO] Defaulting package to group ID: com.ncs.iconnect.testproject
[INFO] ------------------------------------------------------------------------
---
[INFO] Using following parameters for creating OldArchetype: iframe-blank:1.0-S
APSHOT
[INFO] ------------------------------------------------------------------------
---
[INFO] Parameter: groupId, Value: com.ncs.iconnect.testproject
[INFO] Parameter: packageName, Value: com.ncs.iconnect.testproject
[INFO] Parameter: basedir, Value: D:\workspace\testProject
[INFO] Parameter: package, Value: com.ncs.iconnect.testproject
[INFO] Parameter: version, Value: 1.0-SNAPSHOT
[INFO] Parameter: artifactId, Value: myproject
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error creating from archetype
Embedded error: The META-INF/maven/archetype.xml descriptor cannot be found.
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 5 seconds
[INFO] Finished at: Mon Mar 10 09:57:06 GMT+08:00 2008
[INFO] Final Memory: 7M/14M
[INFO] ------------------------------------------------------------------------
Cannot use mvn:create to create a new project from an archetype which install by mvn:create-from-project?
--
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] Issue Comment Edited: (ARCHETYPE-147) Cannot create a new
project from an exist project
Posted by "chenliang (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/ARCHETYPE-147?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_126939 ]
chenliang edited comment on ARCHETYPE-147 at 3/12/08 4:16 AM:
--------------------------------------------------------------
This issue is the same with ARCHETYPE-146. And do not use archetype:create, but archetype:generate instead
was (Author: chenliang):
This issue is the same with ARCHETYPE-146
> Cannot create a new project from an exist project
> -------------------------------------------------
>
> Key: ARCHETYPE-147
> URL: http://jira.codehaus.org/browse/ARCHETYPE-147
> Project: Maven Archetype
> Issue Type: Bug
> Components: Archetypes
> Affects Versions: 2.0-alpha-2
> Reporter: chenliang
>
> 1:run mvn:create-from-project in an existing project d:\workspace\myArchetype
> 2:run mvn:install in d:\workspace\myArchetype\target\archetype
> All the command run success
> But after that, i move to d:\workspace and try run mvn archetype:create. It fails. The log is here:
> Downloading: http://repo1.maven.org/maven2/com/ncs/iconnect/testproject/wagon-h
> tp-shared/1.0-beta-2/wagon-http-shared-1.0-beta-2.pom
> Downloading: http://repo1.maven.org/maven2/com/ncs/iconnect/testproject/wagon-h
> tp-shared/1.0-beta-2/wagon-http-shared-1.0-beta-2.pom
> [INFO] Setting property: classpath.resource.loader.class => 'org.codehaus.plexu
> .velocity.ContextClassLoaderResourceLoader'.
> [INFO] Setting property: velocimacro.messages.on => 'false'.
> [INFO] Setting property: resource.loader => 'classpath'.
> [INFO] Setting property: resource.manager.logwhenfound => 'false'.
> [INFO] [archetype:create]
> [INFO] Defaulting package to group ID: com.ncs.iconnect.testproject
> [INFO] ------------------------------------------------------------------------
> ---
> [INFO] Using following parameters for creating OldArchetype: iframe-blank:1.0-S
> APSHOT
> [INFO] ------------------------------------------------------------------------
> ---
> [INFO] Parameter: groupId, Value: com.ncs.iconnect.testproject
> [INFO] Parameter: packageName, Value: com.ncs.iconnect.testproject
> [INFO] Parameter: basedir, Value: D:\workspace\testProject
> [INFO] Parameter: package, Value: com.ncs.iconnect.testproject
> [INFO] Parameter: version, Value: 1.0-SNAPSHOT
> [INFO] Parameter: artifactId, Value: myproject
> [INFO] ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO] ------------------------------------------------------------------------
> [INFO] Error creating from archetype
> Embedded error: The META-INF/maven/archetype.xml descriptor cannot be found.
> [INFO] ------------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 5 seconds
> [INFO] Finished at: Mon Mar 10 09:57:06 GMT+08:00 2008
> [INFO] Final Memory: 7M/14M
> [INFO] ------------------------------------------------------------------------
> Cannot use mvn:create to create a new project from an archetype which install by mvn:create-from-project?
--
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-147) Cannot create a new project from
an exist project
Posted by "chenliang (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/ARCHETYPE-147?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_126939 ]
chenliang commented on ARCHETYPE-147:
-------------------------------------
This issue is the same with ARCHETYPE-146
> Cannot create a new project from an exist project
> -------------------------------------------------
>
> Key: ARCHETYPE-147
> URL: http://jira.codehaus.org/browse/ARCHETYPE-147
> Project: Maven Archetype
> Issue Type: Bug
> Components: Archetypes
> Affects Versions: 2.0-alpha-2
> Reporter: chenliang
>
> 1:run mvn:create-from-project in an existing project d:\workspace\myArchetype
> 2:run mvn:install in d:\workspace\myArchetype\target\archetype
> All the command run success
> But after that, i move to d:\workspace and try run mvn archetype:create. It fails. The log is here:
> Downloading: http://repo1.maven.org/maven2/com/ncs/iconnect/testproject/wagon-h
> tp-shared/1.0-beta-2/wagon-http-shared-1.0-beta-2.pom
> Downloading: http://repo1.maven.org/maven2/com/ncs/iconnect/testproject/wagon-h
> tp-shared/1.0-beta-2/wagon-http-shared-1.0-beta-2.pom
> [INFO] Setting property: classpath.resource.loader.class => 'org.codehaus.plexu
> .velocity.ContextClassLoaderResourceLoader'.
> [INFO] Setting property: velocimacro.messages.on => 'false'.
> [INFO] Setting property: resource.loader => 'classpath'.
> [INFO] Setting property: resource.manager.logwhenfound => 'false'.
> [INFO] [archetype:create]
> [INFO] Defaulting package to group ID: com.ncs.iconnect.testproject
> [INFO] ------------------------------------------------------------------------
> ---
> [INFO] Using following parameters for creating OldArchetype: iframe-blank:1.0-S
> APSHOT
> [INFO] ------------------------------------------------------------------------
> ---
> [INFO] Parameter: groupId, Value: com.ncs.iconnect.testproject
> [INFO] Parameter: packageName, Value: com.ncs.iconnect.testproject
> [INFO] Parameter: basedir, Value: D:\workspace\testProject
> [INFO] Parameter: package, Value: com.ncs.iconnect.testproject
> [INFO] Parameter: version, Value: 1.0-SNAPSHOT
> [INFO] Parameter: artifactId, Value: myproject
> [INFO] ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO] ------------------------------------------------------------------------
> [INFO] Error creating from archetype
> Embedded error: The META-INF/maven/archetype.xml descriptor cannot be found.
> [INFO] ------------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 5 seconds
> [INFO] Finished at: Mon Mar 10 09:57:06 GMT+08:00 2008
> [INFO] Final Memory: 7M/14M
> [INFO] ------------------------------------------------------------------------
> Cannot use mvn:create to create a new project from an archetype which install by mvn:create-from-project?
--
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] Issue Comment Edited: (ARCHETYPE-147) Cannot create a new
project from an exist project
Posted by "chenliang (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/ARCHETYPE-147?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_126670 ]
chenliang edited comment on ARCHETYPE-147 at 3/9/08 9:28 PM:
-------------------------------------------------------------
The structure of the jar of create-from-project is:
-META-INF
--maven
---archetype.xml
---archetype-metadata.xml
-archetype-resources
--src
--pom.xml
I also tried mvn archetype:generate. But only create a POM file, all the src and other files are missing.
was (Author: chenliang):
The structure of the jar of create-from-project is:
META-INF
-maven
-archetype.xml
-archetype-metadata.xml
archetype-resources
-src
-pom.xml
> Cannot create a new project from an exist project
> -------------------------------------------------
>
> Key: ARCHETYPE-147
> URL: http://jira.codehaus.org/browse/ARCHETYPE-147
> Project: Maven Archetype
> Issue Type: Bug
> Components: Archetypes
> Affects Versions: 2.0-alpha-2
> Reporter: chenliang
>
> 1:run mvn:create-from-project in an existing project d:\workspace\myArchetype
> 2:run mvn:install in d:\workspace\myArchetype\target\archetype
> All the command run success
> But after that, i move to d:\workspace and try run mvn archetype:create. It fails. The log is here:
> Downloading: http://repo1.maven.org/maven2/com/ncs/iconnect/testproject/wagon-h
> tp-shared/1.0-beta-2/wagon-http-shared-1.0-beta-2.pom
> Downloading: http://repo1.maven.org/maven2/com/ncs/iconnect/testproject/wagon-h
> tp-shared/1.0-beta-2/wagon-http-shared-1.0-beta-2.pom
> [INFO] Setting property: classpath.resource.loader.class => 'org.codehaus.plexu
> .velocity.ContextClassLoaderResourceLoader'.
> [INFO] Setting property: velocimacro.messages.on => 'false'.
> [INFO] Setting property: resource.loader => 'classpath'.
> [INFO] Setting property: resource.manager.logwhenfound => 'false'.
> [INFO] [archetype:create]
> [INFO] Defaulting package to group ID: com.ncs.iconnect.testproject
> [INFO] ------------------------------------------------------------------------
> ---
> [INFO] Using following parameters for creating OldArchetype: iframe-blank:1.0-S
> APSHOT
> [INFO] ------------------------------------------------------------------------
> ---
> [INFO] Parameter: groupId, Value: com.ncs.iconnect.testproject
> [INFO] Parameter: packageName, Value: com.ncs.iconnect.testproject
> [INFO] Parameter: basedir, Value: D:\workspace\testProject
> [INFO] Parameter: package, Value: com.ncs.iconnect.testproject
> [INFO] Parameter: version, Value: 1.0-SNAPSHOT
> [INFO] Parameter: artifactId, Value: myproject
> [INFO] ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO] ------------------------------------------------------------------------
> [INFO] Error creating from archetype
> Embedded error: The META-INF/maven/archetype.xml descriptor cannot be found.
> [INFO] ------------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 5 seconds
> [INFO] Finished at: Mon Mar 10 09:57:06 GMT+08:00 2008
> [INFO] Final Memory: 7M/14M
> [INFO] ------------------------------------------------------------------------
> Cannot use mvn:create to create a new project from an archetype which install by mvn:create-from-project?
--
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-147) Cannot create a new project from
an exist project
Posted by "chenliang (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/ARCHETYPE-147?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_126670 ]
chenliang commented on ARCHETYPE-147:
-------------------------------------
The structure of the jar of create-from-project is:
META-INF
-maven
-archetype.xml
-archetype-metadata.xml
archetype-resources
-src
-pom.xml
> Cannot create a new project from an exist project
> -------------------------------------------------
>
> Key: ARCHETYPE-147
> URL: http://jira.codehaus.org/browse/ARCHETYPE-147
> Project: Maven Archetype
> Issue Type: Bug
> Components: Archetypes
> Affects Versions: 2.0-alpha-2
> Reporter: chenliang
>
> 1:run mvn:create-from-project in an existing project d:\workspace\myArchetype
> 2:run mvn:install in d:\workspace\myArchetype\target\archetype
> All the command run success
> But after that, i move to d:\workspace and try run mvn archetype:create. It fails. The log is here:
> Downloading: http://repo1.maven.org/maven2/com/ncs/iconnect/testproject/wagon-h
> tp-shared/1.0-beta-2/wagon-http-shared-1.0-beta-2.pom
> Downloading: http://repo1.maven.org/maven2/com/ncs/iconnect/testproject/wagon-h
> tp-shared/1.0-beta-2/wagon-http-shared-1.0-beta-2.pom
> [INFO] Setting property: classpath.resource.loader.class => 'org.codehaus.plexu
> .velocity.ContextClassLoaderResourceLoader'.
> [INFO] Setting property: velocimacro.messages.on => 'false'.
> [INFO] Setting property: resource.loader => 'classpath'.
> [INFO] Setting property: resource.manager.logwhenfound => 'false'.
> [INFO] [archetype:create]
> [INFO] Defaulting package to group ID: com.ncs.iconnect.testproject
> [INFO] ------------------------------------------------------------------------
> ---
> [INFO] Using following parameters for creating OldArchetype: iframe-blank:1.0-S
> APSHOT
> [INFO] ------------------------------------------------------------------------
> ---
> [INFO] Parameter: groupId, Value: com.ncs.iconnect.testproject
> [INFO] Parameter: packageName, Value: com.ncs.iconnect.testproject
> [INFO] Parameter: basedir, Value: D:\workspace\testProject
> [INFO] Parameter: package, Value: com.ncs.iconnect.testproject
> [INFO] Parameter: version, Value: 1.0-SNAPSHOT
> [INFO] Parameter: artifactId, Value: myproject
> [INFO] ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO] ------------------------------------------------------------------------
> [INFO] Error creating from archetype
> Embedded error: The META-INF/maven/archetype.xml descriptor cannot be found.
> [INFO] ------------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 5 seconds
> [INFO] Finished at: Mon Mar 10 09:57:06 GMT+08:00 2008
> [INFO] Final Memory: 7M/14M
> [INFO] ------------------------------------------------------------------------
> Cannot use mvn:create to create a new project from an archetype which install by mvn:create-from-project?
--
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] Issue Comment Edited: (ARCHETYPE-147) Cannot create a new
project from an exist project
Posted by "chenliang (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/ARCHETYPE-147?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_126670 ]
chenliang edited comment on ARCHETYPE-147 at 3/9/08 9:13 PM:
-------------------------------------------------------------
The structure of the jar of create-from-project is:
META-INF
-maven
-archetype.xml
-archetype-metadata.xml
archetype-resources
-src
-pom.xml
was (Author: chenliang):
The structure of the jar of create-from-project is:
META-INF
-maven
-archetype.xml
-archetype-metadata.xml
archetype-resources
-src
-pom.xml
> Cannot create a new project from an exist project
> -------------------------------------------------
>
> Key: ARCHETYPE-147
> URL: http://jira.codehaus.org/browse/ARCHETYPE-147
> Project: Maven Archetype
> Issue Type: Bug
> Components: Archetypes
> Affects Versions: 2.0-alpha-2
> Reporter: chenliang
>
> 1:run mvn:create-from-project in an existing project d:\workspace\myArchetype
> 2:run mvn:install in d:\workspace\myArchetype\target\archetype
> All the command run success
> But after that, i move to d:\workspace and try run mvn archetype:create. It fails. The log is here:
> Downloading: http://repo1.maven.org/maven2/com/ncs/iconnect/testproject/wagon-h
> tp-shared/1.0-beta-2/wagon-http-shared-1.0-beta-2.pom
> Downloading: http://repo1.maven.org/maven2/com/ncs/iconnect/testproject/wagon-h
> tp-shared/1.0-beta-2/wagon-http-shared-1.0-beta-2.pom
> [INFO] Setting property: classpath.resource.loader.class => 'org.codehaus.plexu
> .velocity.ContextClassLoaderResourceLoader'.
> [INFO] Setting property: velocimacro.messages.on => 'false'.
> [INFO] Setting property: resource.loader => 'classpath'.
> [INFO] Setting property: resource.manager.logwhenfound => 'false'.
> [INFO] [archetype:create]
> [INFO] Defaulting package to group ID: com.ncs.iconnect.testproject
> [INFO] ------------------------------------------------------------------------
> ---
> [INFO] Using following parameters for creating OldArchetype: iframe-blank:1.0-S
> APSHOT
> [INFO] ------------------------------------------------------------------------
> ---
> [INFO] Parameter: groupId, Value: com.ncs.iconnect.testproject
> [INFO] Parameter: packageName, Value: com.ncs.iconnect.testproject
> [INFO] Parameter: basedir, Value: D:\workspace\testProject
> [INFO] Parameter: package, Value: com.ncs.iconnect.testproject
> [INFO] Parameter: version, Value: 1.0-SNAPSHOT
> [INFO] Parameter: artifactId, Value: myproject
> [INFO] ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO] ------------------------------------------------------------------------
> [INFO] Error creating from archetype
> Embedded error: The META-INF/maven/archetype.xml descriptor cannot be found.
> [INFO] ------------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 5 seconds
> [INFO] Finished at: Mon Mar 10 09:57:06 GMT+08:00 2008
> [INFO] Final Memory: 7M/14M
> [INFO] ------------------------------------------------------------------------
> Cannot use mvn:create to create a new project from an archetype which install by mvn:create-from-project?
--
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