You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Wayne Fay (JIRA)" <ji...@codehaus.org> on 2006/05/10 22:03:40 UTC
[jira] Created: (MEV-390) Dependencies listed as version
${project.version} in maven-archetype
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
[jira] Commented: (MEV-390) Dependencies listed as version
${project.version} in maven-archetype
Posted by "Wayne Fay (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MEV-390?page=comments#action_65155 ]
Wayne Fay commented on MEV-390:
-------------------------------
I am reasonably certain version should be 1.0-alpha-4 for all 3 dependencies.
> 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
[jira] Commented: (MNG-2288) Dependencies listed as version
${project.version} in maven-archetype prevent the use of archetypes
Posted by "Alexandre Poitras (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MNG-2288?page=comments#action_65986 ]
Alexandre Poitras commented on MNG-2288:
----------------------------------------
This issue is very annoying because right now Maven tries to find org.apache.maven.archetype:maven-archetype-core:jar:1.0-SNAPSHOT and therefore fails.
> Dependencies listed as version ${project.version} in maven-archetype prevent the use of archetypes
> --------------------------------------------------------------------------------------------------
>
> Key: MNG-2288
> URL: http://jira.codehaus.org/browse/MNG-2288
> Project: Maven 2
> Type: Bug
> Versions: 2.0.4
> Reporter: Wayne Fay
> Priority: Critical
> Fix For: 2.0.5
>
>
> 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
[jira] Closed: (ARCHETYPE-78) Dependencies listed as version
${project.version} in maven-archetype prevent the use of archetypes
Posted by "Kenney Westerhof (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/ARCHETYPE-78?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Kenney Westerhof closed ARCHETYPE-78.
-------------------------------------
Resolution: Fixed
Fix Version/s: 1.0
Dupe of MNG-2339.
Fixed by removing ${project.version} in the poms and replacing it by the real version string.
> Dependencies listed as version ${project.version} in maven-archetype prevent the use of archetypes
> --------------------------------------------------------------------------------------------------
>
> Key: ARCHETYPE-78
> URL: http://jira.codehaus.org/browse/ARCHETYPE-78
> Project: Maven Archetype
> Issue Type: Bug
> Affects Versions: 1.0-alpha-4
> Reporter: Wayne Fay
> Assignee: Kenney Westerhof
> Priority: Critical
> Fix For: 1.0
>
>
> 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
[jira] Commented: (MEV-390) Dependencies listed as version
${project.version} in maven-archetype
Posted by "Carlos Sanchez (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MEV-390?page=comments#action_65159 ]
Carlos Sanchez commented on MEV-390:
------------------------------------
is this causing any problem?
it'd be good to make the release plugin expand the vars but it shouldn't cause any problem
> 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
[jira] Updated: (MNG-2288) Dependencies listed as version
${project.version} in maven-archetype prevent the use of archetypes
Posted by "John Casey (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MNG-2288?page=all ]
John Casey updated MNG-2288:
----------------------------
Fix Version: 2.0.5
> Dependencies listed as version ${project.version} in maven-archetype prevent the use of archetypes
> --------------------------------------------------------------------------------------------------
>
> Key: MNG-2288
> URL: http://jira.codehaus.org/browse/MNG-2288
> Project: Maven 2
> Type: Bug
> Versions: 2.0.4
> Reporter: Wayne Fay
> Priority: Critical
> Fix For: 2.0.5
>
>
> 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
[jira] Commented: (ARCHETYPE-78) Dependencies listed as version
${project.version} in maven-archetype prevent the use of archetypes
Posted by "Kenney Westerhof (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/ARCHETYPE-78?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_99666 ]
Kenney Westerhof commented on ARCHETYPE-78:
-------------------------------------------
This is caused by the fact that -Dversion=0.1 is provided on the commandline.
The archetype poms specify ${project.version}.
RegexBasedModelInterpolator strips off the leading project. (or pom. or env.)
and checks the context object for 'version', which it contains since -Dversion was specified.
So in this case 0.1 is used for dependencies.
this will break with ALL maven builds that have a ${project.version} somewhere and -Dversion is specified.
> Dependencies listed as version ${project.version} in maven-archetype prevent the use of archetypes
> --------------------------------------------------------------------------------------------------
>
> Key: ARCHETYPE-78
> URL: http://jira.codehaus.org/browse/ARCHETYPE-78
> Project: Maven Archetype
> Issue Type: Bug
> Affects Versions: 1.0-alpha-4
> Reporter: Wayne Fay
> Priority: Critical
>
> 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
[jira] Updated: (MNG-2288) Dependencies listed as version
${project.version} in maven-archetype prevent the use of archetypes
Posted by "Carlos Sanchez (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MNG-2288?page=all ]
Carlos Sanchez updated MNG-2288:
--------------------------------
Summary: Dependencies listed as version ${project.version} in maven-archetype prevent the use of archetypes (was: Dependencies listed as version ${project.version} in maven-archetype)
> Dependencies listed as version ${project.version} in maven-archetype prevent the use of archetypes
> --------------------------------------------------------------------------------------------------
>
> Key: MNG-2288
> URL: http://jira.codehaus.org/browse/MNG-2288
> Project: Maven 2
> Type: Bug
> Versions: 2.0.4
> Reporter: Wayne Fay
> Priority: Critical
>
>
> 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
[jira] Updated: (MNG-2288) Dependencies listed as version
${project.version} in maven-archetype prevent the use of archetypes
Posted by "Kenney Westerhof (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MNG-2288?page=all ]
Kenney Westerhof updated MNG-2288:
----------------------------------
Fix Version/s: (was: 2.0.5)
2.0.6
> Dependencies listed as version ${project.version} in maven-archetype prevent the use of archetypes
> --------------------------------------------------------------------------------------------------
>
> Key: MNG-2288
> URL: http://jira.codehaus.org/browse/MNG-2288
> Project: Maven 2
> Issue Type: Bug
> Affects Versions: 2.0.4
> Reporter: Wayne Fay
> Priority: Critical
> Fix For: 2.0.6
>
>
> 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
[jira] Commented: (MEV-390) Dependencies listed as version
${project.version} in maven-archetype
Posted by "Wayne Fay (JIRA)" <ji...@codehaus.org>.
[ 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
[jira] Moved: (ARCHETYPE-78) Dependencies listed as version
${project.version} in maven-archetype prevent the use of archetypes
Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/ARCHETYPE-78?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Brett Porter moved MNG-2288 to ARCHETYPE-78:
--------------------------------------------
Affects Version/s: (was: 2.0.4)
1.0-alpha-4
Fix Version/s: (was: 2.0.x)
Complexity: (was: Intermediate)
Key: ARCHETYPE-78 (was: MNG-2288)
Project: Maven Archetype (was: Maven 2)
> Dependencies listed as version ${project.version} in maven-archetype prevent the use of archetypes
> --------------------------------------------------------------------------------------------------
>
> Key: ARCHETYPE-78
> URL: http://jira.codehaus.org/browse/ARCHETYPE-78
> Project: Maven Archetype
> Issue Type: Bug
> Affects Versions: 1.0-alpha-4
> Reporter: Wayne Fay
> Priority: Critical
>
> 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
[jira] Updated: (MNG-2288) Dependencies listed as version
${project.version} in maven-archetype
Posted by "Carlos Sanchez (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MNG-2288?page=all ]
Carlos Sanchez updated MNG-2288:
--------------------------------
Version: 2.0.4
> Dependencies listed as version ${project.version} in maven-archetype
> --------------------------------------------------------------------
>
> Key: MNG-2288
> URL: http://jira.codehaus.org/browse/MNG-2288
> Project: Maven 2
> Type: Bug
> Versions: 2.0.4
> Reporter: Wayne Fay
> Priority: Critical
>
>
> 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