You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-user@portals.apache.org by shanghaielaine <yi...@gmx.net> on 2009/01/11 02:59:51 UTC

Re: Maven2 build: Embedded error (FAQ?)

Hey Nick,d

did you eventually solve this problem? and how ? I got completely the same
probl. when I do $ mvn -P tomcat,min
Desperately looking for a solution. Any suggestion would be appreciated!

Thanks.

Shanghaielaine



Nick Fedchik wrote:
> 
> Hello, Jetspeed users!
> I'm new in Jetspeed2, just try to build and deploy Jetspeed-2 to my Tomcat
> 5.5 
> installation using Maven-2.
> Tomcat 5.5: /opt/tomcat
> My Jetspeed: /opt/jetspeed-maven
> Maven version: 2.0.9
> Java version: 1.6.0_03
> OS name: "linux" version: "2.6.22-15-server" arch: "i386" Family: "unix"
> 
> I change my settings.xml for Maven 2 and add records that require for 
> Jetspeed.
> As wrote on 
> http://portals.apache.org/jetspeed-2/maven-2-custom.html
> I do
> $ cd /opt/jetspeed-maven
> $ mvn archetype:create -DarchetypeGroupId=org.apache.portals.jetspeed-2 \ 
> -DarchetypeArtifactId=portal-archetype -DarchetypeVersion=2.1.3 \
> -DgroupId=myportalgroup -DartifactId=myportal -Dversion=1.0
> ...
> [INFO] OldArchetype created in dir: /opt/jetspeed-maven/myportal
> [INFO]
> ------------------------------------------------------------------------
> [INFO] BUILD SUCCESSFUL
> ...
> Next, as explained on
> http://portals.apache.org/tutorials/jetspeed-2/build-commands.html
> I run
> $ cd myportal
> $ mvn
> ...
> embedded-database-hsql:
>    [delete] Deleting directory /opt/tomcat/webapps/myportal
> Downloading: myportalgroup/myportal-portal/1.0/myportal-portal-1.0.pom
> Downloading: myportalgroup/myportal-portal/1.0/myportal-portal-1.0.war
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Error executing ant tasks
> Embedded error: The following error occurred while executing this line:
> /opt/jetspeed-maven/myportal/app-servers/build.xml:90: The following error 
> occurred while executing this line:
> /opt/jetspeed-maven/myportal/app-servers/build.xml:146: The following
> error 
> occurred while executing this line:
> /opt/jetspeed-maven/myportal/app-servers/tomcat-build.xml:102: 
> java.lang.ClassCastException: 
> org.apache.maven.usability.MojoExecutionExceptionDiagnoser cannot be cast
> to 
> org.apache.maven.usability.diagnostics.ErrorDiagnoser
> ...
> 
> If i execute
> $ mvn -P tomcat
> the errors are same
> ...
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Error executing ant tasks
> 
> Embedded error: The following error occurred while executing this line:
> /opt/jetspeed-maven/myportal/etc/build.xml:300: The following error
> occurred 
> while executing this line:
> /opt/jetspeed-maven/myportal/etc/build.xml:305: The following error
> occurred 
> while executing this line:
> /opt/jetspeed-maven/myportal/etc/build.xml:505:
> java.lang.ClassCastException: 
> org.apache.maven.usability.MojoExecutionExceptionDiagnoser cannot be cast
> to 
> org.apache.maven.usability.diagnostics.ErrorDiagnose
> 
> What do I do incorrectly?
> Is it a well-known bug? or my configuration problem?
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
> For additional commands, e-mail: jetspeed-user-help@portals.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Maven2-build%3A-Embedded-error-%28FAQ-%29-tp19758849p21395223.html
Sent from the Jetspeed - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org