[ http://jira.codehaus.org/browse/MEV-390?page=comments#action_65160 ]
Wayne Fay commented on MEV-390: ------------------------------- Someone on User list posted a problem in a thread titled "Archetype installation and creation of the app problem" on May 10, 2006. Based on his error report, I took a look at the poms, and surmised that this ${project.version} is causing problems. It seems to be taking the version number from his "mvn archetype:create -DarchetypeVersion=0.1" command line rather than from the <version/> tag in the pom. So while this "shouldn't" be a problem, it is. Perhaps this is the sign of a bug in resolving versions in poms? Here's the email below: I created an archetype following directions at http://maven.apache.org/guides/mini/guide-creating-archetypes.html this is waht I get when I run the archetype:create $ mvn archetype:create -DarchetypeGroupId=com.opensymphony -DarchetypeArtif actId=webwork-app -DarchetypeVersion=0.1 -DgroupId=my.group -Dartif actId=appid -Dversion=0.1 [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'archetype'. [INFO] ------------------------------------------------------------------------- --- [INFO] Building Maven Default Project [INFO] task-segment: [archetype:create] (aggregator-style) [INFO] ------------------------------------------------------------------------- --- Downloading: http://repo1.maven.org/maven2/org/apache/maven/archetype/maven-arch etype-creator/0.1/maven-archetype-creator-0.1.pom [WARNING] Unable to get resource from repository central (http://repo1.maven.org /maven2) Downloading: http://repo1.maven.org/maven2/org/apache/maven/archetype/maven-arch etype-core/0.1/maven-archetype-core-0.1.pom [WARNING] Unable to get resource from repository central (http://repo1.maven.org /maven2) Downloading: http://repo1.maven.org/maven2/org/apache/maven/archetype/maven-arch etype-creator/0.1/maven-archetype-creator-0.1.jar [WARNING] Unable to get resource from repository central (http://repo1.maven.org /maven2) Downloading: http://repo1.maven.org/maven2/org/apache/maven/archetype/maven-arch etype-core/0.1/maven-archetype-core-0.1.jar [WARNING] Unable to get resource from repository central (http://repo1.maven.org /maven2) [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Failed to resolve artifact. Missing: ---------- 1) org.apache.maven.archetype:maven-archetype-creator:jar:0.1 Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=org.apache.maven.archetype -DartifactId =maven-archetype-creator \ -Dversion=0.1 -Dpackaging=jar -Dfile=/path/to/file Path to dependency: 1) org.apache.maven.plugins:maven-archetype-plugin:maven-plugin:1.0-alph a-4 2) org.apache.maven.archetype:maven-archetype-creator:jar:0.1 2) org.apache.maven.archetype:maven-archetype-core:jar:0.1 Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=org.apache.maven.archetype -DartifactId =maven-archetype-core \ -Dversion=0.1 -Dpackaging=jar -Dfile=/path/to/file Path to dependency: 1) org.apache.maven.plugins:maven-archetype-plugin:maven-plugin:1.0-alph a-4 2) org.apache.maven.archetype:maven-archetype-core:jar:0.1 ---------- 2 required artifacts are missing. for artifact: org.apache.maven.plugins:maven-archetype-plugin:maven-plugin:1.0-alpha-4 from the specified remote repositories: central (http://repo1.maven.org/maven2), apache.snapshots (http://svn.apache.org/maven-snapshot-repository) [INFO] ------------------------------------------------------------------------ [INFO] For more information, run Maven with the -e switch [INFO] ------------------------------------------------------------------------ [INFO] Total time: 4 seconds [INFO] Finished at: Wed May 10 09:54:17 PDT 2006 [INFO] Final Memory: 2M/4M [INFO] ------------------------------------------------------------------------ Anyone knows what is wrong here? Thanks, Alex. > Dependencies listed as version ${project.version} in maven-archetype > -------------------------------------------------------------------- > > Key: MEV-390 > URL: http://jira.codehaus.org/browse/MEV-390 > Project: Maven Evangelism > Type: Bug > Reporter: Wayne Fay > > > Dependencies are listed as ${project.version} in deployed POM. > <dependencyManagement> > <dependencies> > <dependency> > <groupId>org.apache.maven.archetype</groupId> > <artifactId>maven-archetype-model</artifactId> > <version>${project.version}</version> > </dependency> > <dependency> > <groupId>org.apache.maven.archetype</groupId> > <artifactId>maven-archetype-core</artifactId> > <version>${project.version}</version> > </dependency> > <dependency> > <groupId>org.apache.maven.archetype</groupId> > <artifactId>maven-archetype-creator</artifactId> > <version>${project.version}</version> > </dependency> > </dependencies> > </dependencyManagement> -- 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