Could you register an issue about that ?

https://issues.apache.org/jira/browse/WW


Thanks in advance
-- 
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/
Warszawa JUG conference - Confitura http://confitura.pl/


2011/11/22 David F. Newman <d...@exchange.mit.edu>:
> Hi there,
> So I've been trying to use the struts2-archetype-blank maven archetype to
> create a new project and it seems to generate a pom file that doesn't work
> out of the box.
>
> I run:
>
> $ mvn archetype:generate \
> -DarchetypeGroupId=org.apache.struts \
> -DarchetypeArtifactId=struts2-archetype-blank
>
> Define value for property 'groupId': : edu.mit.dfn.testapp
> Define value for property 'artifactId': : testapp
> Define value for property 'version':  1.0-SNAPSHOT: :
> Define value for property 'package':  edu.mit.dfn.testapp: :
> Confirm properties configuration:
> groupId: edu.mit.dfn.testapp
> artifactId: testapp
> version: 1.0-SNAPSHOT
> package: edu.mit.dfn.testapp
> [INFO] Using following parameters for creating project from Archetype:
> struts2-archetype-blank:2.2.3
>
> However trying to compile with "mvn compile" yields the following errors:
>
> [ERROR]   The project edu.mit.dfn.testapp:testapp:${project.version}
> (/home/dfn/src/testapp/pom.xml) has 9 errors
> [ERROR]     Resolving expression: '${project.version}': Detected the
> following recursive expression cycle in 'project.version': [version] ->
> [Help 2]
> ...
> [ERROR]     'dependencies.dependency.version' for
> org.apache.struts:struts2-core:jar must be a valid version but is
> '${struts2.version}'. @ line 20, column 22
> [ERROR]     'dependencies.dependency.version' for
> org.apache.struts:struts2-config-browser-plugin:jar must be a valid version
> but is '${struts2.version}'. @ line 26, column 22
> [ERROR]     'dependencies.dependency.version' for
> org.apache.struts:struts2-junit-plugin:jar must be a valid version but is
> '${struts2.version}'. @ line 32, column 22
>
> Looking at the pom.xml file I see
>
> <version>${project.version}</version>
> <properties>
> <struts2.version>${project.version}</struts2.version>
> </properties>
>
> So I change it to
> <version>1.0-SNAPSHOT</version>
> <properties>
> <struts2.version>2.2.3</struts2.version>
> </properties>
>
> And now everything works.  Has anyone else seen this and am I just doing
> something wrong?
>
> -Dave
> d...@mit.edu
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org

Reply via email to