I fixed the problem with the unpack plugin, which turned out to be an API 
behavior breakage by Maven 3 :(
See https://issues.apache.org/jira/browse/JS2-1227 for more details.

The Jetspeed-2 portal project trunk now builds fine again with Maven 3(.0.1).
I'm not closing the JIRA issue yet however as the Jetspeed-2 applications projects like j2-admin also need to be checked and validated against Maven 3 first. I might try to do that later this week or else sometime next week.

Regards,

Ate


On 22/12/10 19:24, Woonsan Ko wrote:
Thank you for sharing the error stack traces.
It seems like that the Jetspeed specific maven plugin, 
"jetspeed-unpack-maven-plugin:2.2.1:unpack", doesn't work any more with Maven 3.
I've just created an issue for this:

https://issues.apache.org/jira/browse/JS2-1227

Regards,

Woonsan

--- On Wed, 12/22/10, 韩宜宗<[email protected]>  wrote:

From: 韩宜宗<[email protected]>
Subject: Re: Maven 3.0.1 supported ?
To: "Jetspeed Users List"<[email protected]>
Date: Wednesday, December 22, 2010, 4:00 PM
*d:\12-Code\Portal>mvn -version*
Apache Maven 3.0.1 (r1038046; 2010-11-23 18:58:32+0800)
Java version: 1.6.0_22
Java home: c:\Program Files\Java\jdk1.6.0_22\jre
Default locale: zh_CN, platform encoding: GBK
OS name: "windows 7" version: "6.1" arch: "amd64" Family:
"windows"
*d:\12-Code\Portal>mvn
org.apache.maven.plugins:maven-archetype-plugin:2.0-alpha-*
*4:generate
-DarchetypeGroupId=org.apache.portals.jetspeed-2
-DarchetypeArtifactI*
*d=jetspeed-archetype -DarchetypeVersion=2.2.1
-DartifactId=jetexpress
-Dpackage=*
*org.apache.portals.tutorials
-DgroupId=org.apache.portals.tutorials
-Dversion=1.*
*0-SNAPSHOT*
[INFO] Scanning for projects...
[INFO]
[INFO]
------------------------------------------------------------------------
[INFO] Building Maven Stub Project (No POM) 1
[INFO]
------------------------------------------------------------------------
[INFO]
[INFO]>>>
maven-archetype-plugin:2.0-alpha-4:generate (default-cli) @
standalon
e-pom>>>
[INFO]
[INFO]<<<
maven-archetype-plugin:2.0-alpha-4:generate (default-cli) @
standalon
e-pom<<<
[INFO]
[INFO] --- maven-archetype-plugin:2.0-alpha-4:generate
(default-cli) @
standalon
e-pom ---
[INFO] Setting property: classpath.resource.loader.class
=>
'org.codehaus.plexus
.velocity.ContextClassLoaderResourceLoader'.
[INFO] Setting property: velocimacro.messages.on =>
'false'.
[INFO] Setting property: resource.loader =>
'classpath'.
[INFO] Setting property: resource.manager.logwhenfound
=>  'false'.
[INFO] Generating project in Interactive mode
[WARNING] No archetype repository found. Falling back to
central repository
(htt
p://repo1.maven.org/maven2).
[WARNING] Use -DarchetypeRepository=<your repository>
if archetype's
repository
is elsewhere.
Confirm properties configuration:
groupId: org.apache.portals.tutorials
artifactId: jetexpress
version: 1.0-SNAPSHOT
package: org.apache.portals.tutorials
   Y: : y
[INFO]
------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 6.367s
[INFO] Finished at: Wed Dec 22 22:55:47 CST 2010
[INFO] Final Memory: 7M/77M
[INFO]
------------------------------------------------------------------------
*d:\12-Code\Portal>cd jetexpress*
*
*
*d:\12-Code\Portal\jetexpress>mvn install*
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the
effective model
for
org.apache.portals.tutorials:jetexpress-portal:war:1.0-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for
org.apache.maven.plugins:maven-war-
plugin is missing. @ line 163, column 15
[WARNING] The expression ${pom.artifactId} is deprecated.
Please use
${project.a
rtifactId} instead.
[WARNING]
[WARNING] It is highly recommended to fix these problems
because they
threaten t
he stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no
longer support
buildin
g such malformed projects.
[WARNING]
[INFO]
------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] jetexpress portal project
[INFO] jetexpress portal
[INFO] jetexpress portlet application
[INFO]
[INFO]
------------------------------------------------------------------------
[INFO] Building jetexpress portal project 1.0-SNAPSHOT
[INFO]
------------------------------------------------------------------------
[INFO]
[INFO] --- maven-install-plugin:2.3.1:install
(default-install) @ jetexpress
---

[INFO] Installing d:\12-Code\Portal\jetexpress\pom.xml to
d:\92-VM\share\maven\.
m2\repository\org\apache\portals\tutorials\jetexpress\1.0-SNAPSHOT\jetexpress-1.
0-SNAPSHOT.pom
[INFO]
[INFO]
------------------------------------------------------------------------
[INFO] Building jetexpress portal 1.0-SNAPSHOT
[INFO]
------------------------------------------------------------------------
[INFO]
[INFO] --- jetspeed-unpack-maven-plugin:2.2.1:unpack
(unpack-jetspeed-properties
) @ jetexpress-portal ---
[INFO]
------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] jetexpress portal project .........................
SUCCESS [0.713s]
[INFO] jetexpress portal .................................
FAILURE [2.202s]
[INFO] jetexpress portlet application ....................
SKIPPED
[INFO]
------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 3.296s
[INFO] Finished at: Wed Dec 22 22:56:04 CST 2010
[INFO] Final Memory: 13M/175M
[INFO]
------------------------------------------------------------------------
[ERROR] Failed to execute goal
org.apache.portals.jetspeed-2:jetspeed-unpack-mav
en-plugin:2.2.1:unpack (unpack-jetspeed-properties) on
project
jetexpress-portal
: unpack artifact
org.apache.portals.jetspeed-2:jetspeed-portal-resources:jar
no
t defined as plugin dependency ->  [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run
Maven with the -e
swit
ch.
[ERROR] Re-run Maven using the -X switch to enable full
debug logging.
[ERROR]
[ERROR] For more information about the errors and possible
solutions, please
rea
d the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionE
xception
[ERROR]
[ERROR] After correcting the problems, you can resume the
build with the
command

[ERROR]   mvn<goals>  -rf
:jetexpress-portal
d:\12-Code\Portal\jetexpress>


2010/12/14 Ron Wheeler<[email protected]>

On 12/12/2010 7:23 AM, Jeroen van der Meer sr. wrote:

L.S.

I have tried to follow the tutorial ( Jetspeed
2.2.1 ) to create a portal.
The buildprocess gave an error when i used maven
3.0.1

What error. Did you ask about this on the Maven list?

   When i used maven 2.0.9 there was no problem.



Will maven 3.0.1+ be supported in jetspeed 2.2.2
?

With regards,

Jeroen van der Meer



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]





---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]








---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]




---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to