Issue Details (XML | Word | Printable)

Key: APF-1176
Type: Bug Bug
Status: Open Open
Priority: Major Major
Assignee: Matt Raible
Reporter: Javier Pinilla
Votes: 0
Watchers: 2
Operations

If you were logged in you would be able to see more operations.
AppFuse

mvn appfuse:full-source in appfuse-modular archetypes does not include calculated properties in pom.xml

Created: 01/Dec/09 01:35 PM   Updated: 21/Jul/10 04:30 AM
Component/s: Installation
Affects Version/s: 2.1.0-M2
Fix Version/s: 2.1.0-M2

Environment:
$ mvn -version
Apache Maven 2.2.1 (r801777; 2009-08-06 21:16:01+0200)
Java version: 1.6.0_15
Java home: c:\Archivos de programa\Java\jdk1.6.0_15\jre
Default locale: es_ES, platform encoding: Cp1252
OS name: "windows xp" version: "5.1" arch: "x86" Family: "windows"


 Description  « Hide
In the modified pom.xml after mvn appfuse:full-source the calculated properties are missing:

        <!-- Properties calculated by AppFuse when running full-source plugin -->
        <commons.beanutils.version>1.8.1</commons.beanutils.version>
        <commons.dbcp.version>1.2.1</commons.dbcp.version>
        <commons.lang.version>2.4</commons.lang.version>
        <compass.version>2.1.3</compass.version>
        <cxf.version>2.2.4</cxf.version>
        <dwr.version>2.0.1</dwr.version>
        <ehcache.version>1.7.0</ehcache.version>
        <ehcache.web.version>1.6.0-beta2</ehcache.web.version>
        <hibernate.annotations.version>3.4.0.GA</hibernate.annotations.version>
        <hibernate.version>3.3.1.GA</hibernate.version>
        <javamail.version>1.4.1</javamail.version>
        <jpa.version>1.0</jpa.version>
        <jstl.version>1.1.2</jstl.version>
        <log4j.version>1.2.13</log4j.version>
        <sitemesh.version>2.4.2</sitemesh.version>
        <spring.security.version>2.0.4</spring.security.version>
        <struts.menu.version>2.4.3</struts.menu.version>
        <urlrewrite.version>3.1.0</urlrewrite.version>
        <velocity.version>1.4</velocity.version>

How to reproduce it:
--------------------
$ mvn archetype:generate -B \
-DarchetypeGroupId=org.appfuse.archetypes \
-DarchetypeArtifactId=appfuse-modular-spring-archetype \
-DarchetypeVersion=2.1.0-M2-SNAPSHOT \
-DgroupId=es.xxx.app \
-DartifactId=modular-spring \
-DarchetypeRepository=http://oss.sonatype.org/content/repositories/appfuse

$ cd modular-spring

$ mvn org.apache.maven.plugins:maven-eclipse-plugin:2.6:eclipse
(mvn eclipse:eclise does not work)

$ mvn appfuse:full-source

At this point delete the duplicated modules tag in pom.xml (see http://issues.appfuse.org/browse/APF-1175)

$ mvn install

...

16 required artifacts are missing.

for artifact:
  es.xxx.app:core:jar:1.0-SNAPSHOT

from the specified remote repositories:
  central (http://repo1.maven.org/maven2),
  appfuse-snapshots (http://oss.sonatype.org/content/repositories/appfuse-snapsh
ots)

Sort Order: Ascending order - Click to sort in descending order
Matt Raible added a comment - 01/Dec/09 10:53 PM
I tried this, running "mvn install" from the top-level directory and was unable to reproduce this issue.

[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] ------------------------------------------------------------------------
[INFO] AppFuse Modular Application ........................... SUCCESS [2.859s]
[INFO] AppFuse Modular Application - Core .................... SUCCESS [29.606s]
[INFO] AppFuse Modular Application - Web (JSF) ............... SUCCESS [1:15.170s]
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1 minute 48 seconds
[INFO] Finished at: Tue Dec 01 23:52:49 EST 2009
[INFO] Final Memory: 145M/272M
[INFO] ------------------------------------------------------------------------

Javier Pinilla added a comment - 02/Dec/09 01:10 PM
I have repeated the same steps in a Linux machine and has got a SUCCESSFUL BUILD (http://issues.appfuse.org/browse/APF-1175 still applies, thou). I wonder if this issue may be Windows / Cygwin related.

Platform encoding is also different in both tests:

$ mvn -version
Apache Maven 2.2.1 (r801777; 2009-08-06 21:16:01+0200)
Java version: 1.6.0_12
Java home: /usr/lib/jvm/java-6-sun-1.6.0.12/jre
Default locale: es_ES, platform encoding: UTF-8
OS name: "linux" version: "2.6.26-2-686" arch: "i386" Family: "unix"

Matt Raible added a comment - 02/Dec/09 06:37 PM
Changing to fix for M2 ... pending test on Windows.

Lucas added a comment - 16/Jan/10 06:22 PM
I'm having the same problem, with struts, on windows.

mvn archetype:generate -B -DarchetypeGroupId=org.appfuse.archetypes -DarchetypeArtifactId=appfuse-modular-struts-archetype -DarchetypeVersion=2.1.0-M1 -DgroupId=com.cronopius -DartifactId=issue

cd issue

mvn org.apache.maven.plugins:maven-eclipse-plugin:2.6:eclipse

mvn appfuse:full-source

mvn install

16 required artifacts are missing.

for artifact:
  com.cronopius:core:jar:1.0-SNAPSHOT

for instance: 3) javax.persistence:persistence-api:jar:${jpa.version}

What shows that version props are not in the pom. (parent nor core)

mvn --version
Apache Maven 2.2.1 (r801777; 2009-08-06 15:16:01-0400)
Java version: 1.5.0_22
Java home: C:\Program Files\Java\jdk1.5.0_22\jre
Default locale: en_US, platform encoding: Cp1252
OS name: "windows xp" version: "5.1" arch: "x86" Family: "windows"


Lucas added a comment - 18/Jan/10 05:42 AM
I'm having the same problem, with struts, on windows.

mvn archetype:generate -B -DarchetypeGroupId=org.appfuse.archetypes -DarchetypeArtifactId=appfuse-modular-struts-archetype -DarchetypeVersion=2.1.0-M1 -DgroupId=com.cronopius -DartifactId=issue

cd issue

mvn org.apache.maven.plugins:maven-eclipse-plugin:2.6:eclipse

mvn appfuse:full-source

mvn install

16 required artifacts are missing.

for artifact:
  com.cronopius:core:jar:1.0-SNAPSHOT

for instance: 3) javax.persistence:persistence-api:jar:${jpa.version}

What shows that version props are not in the pom. (parent nor core)

mvn --version
Apache Maven 2.2.1 (r801777; 2009-08-06 15:16:01-0400)
Java version: 1.5.0_22
Java home: C:\Program Files\Java\jdk1.5.0_22\jre
Default locale: en_US, platform encoding: Cp1252
OS name: "windows xp" version: "5.1" arch: "x86" Family: "windows"


Lucas added a comment - 18/Jan/10 07:14 PM
I'm having the same problem, with struts, on windows.

mvn archetype:generate -B -DarchetypeGroupId=org.appfuse.archetypes -DarchetypeArtifactId=appfuse-modular-struts-archetype -DarchetypeVersion=2.1.0-M1 -DgroupId=com.cronopius -DartifactId=issue

cd issue

mvn org.apache.maven.plugins:maven-eclipse-plugin:2.6:eclipse

mvn appfuse:full-source

mvn install

16 required artifacts are missing.

for artifact:
  com.cronopius:core:jar:1.0-SNAPSHOT

for instance: 3) javax.persistence:persistence-api:jar:${jpa.version}

What shows that version props are not in the pom. (parent nor core)

mvn --version
Apache Maven 2.2.1 (r801777; 2009-08-06 15:16:01-0400)
Java version: 1.5.0_22
Java home: C:\Program Files\Java\jdk1.5.0_22\jre
Default locale: en_US, platform encoding: Cp1252
OS name: "windows xp" version: "5.1" arch: "x86" Family: "windows"


Pratyush Kumar added a comment - 21/Jul/10 04:30 AM
I am also facing exactly the same problem. Can anybody suggest the solution please?