[opencms-dev] Maven project

Rodriguez, Adrian A.Rodriguez at comundus.com
Tue Jan 20 10:29:21 CET 2009


Hello Cristina,

 

for this question I would refer you to the documentation of  the Maven Tomcat Plugin (http://mojo.codehaus.org/tomcat-maven-plugin/configuration.html) It needs the Tomcat manager application to be present in your Tomcat. This configuration is made in the parent pom. Otherwise, you can copy your webapp.war  manually into the webapps directory of the desired tomcat. The war file is generated in the target directory of the webapp project.

 

Hope that helps

Regards

 

Adrián Rodríguez

comundus GmbH

 

 

From: opencms-dev-bounces at opencms.org [mailto:opencms-dev-bounces at opencms.org] On Behalf Of Cristina Hernández Sánchez
Sent: Tuesday, January 20, 2009 9:44 AM
To: opencms-dev at opencms.org
Subject: Re: [opencms-dev] Maven project

 

Thank you very much, it was the jdk. I installed maven few months ago and I didn't remember a variable with the value of the jdk for maven....
Right now, what I can't do is deploy opencms on my tomcat, the problem is that I've got more than one tomcat installed and I've modified one for other project(what it takes), my question is if I can define wich tomcat take in the parent pom


Saludos!

Cristina Hernández Sánchez

________________________________

Date: Mon, 19 Jan 2009 17:50:59 +0100
From: A.Rodriguez at comundus.com
To: opencms-dev at opencms.org
Subject: Re: [opencms-dev] Maven project

Hello,

 

the available version of the opencms-maven project is a stable one, as we are using it satisfyingly in all our recent OpenCms projects. One of them runs in an SQL Server database, by the way, but you need to create the database scripts from the ones provided in the regular OpenCms distribution.

OpenCms modules are not hard to manage with the plugin. They consist of two Maven modules. One of type jar, and one of type pom, like the system module in the opencms-basic project.

Unfortunately Markus, there are no plans to release a version of the plugin for the 7.0.4 version of OpenCms. We are working to adapt OpenCms so that in the future it is not always needed to make a version of the plugin for each OpenCms release.

 

Regarding your problem, Cristina, I would recommend you to try to use Java 1.5, as it seems that you are not using it and the provided classes are in the 1.5 version (49.0). We will check our downloadables, and update the plugin with a 1.4 compatible version if necessary.

 

Please don't hesitate to tell us your problems and progress using the Maven project!

 

Best regards

Un saludo :)

 

 _________________________________________ 

   

Adrián Rodríguez

Junior IT-Berater

    

comundus GmbH

Schüttelgrabenring 3, D-71332 Waiblingen

Telefon +49 7151-50028-20

E-Mail a.rodriguez at comundus.com

Internet www.comundus.com

 

Geschäftsführer Klaus Hillemeier  

Amtsgericht Stuttgart, HRB 264290

         

comundus ist ein Unternehmen der IT EXCELLENCE Group

_________________________________________

 

 

Von: opencms-dev-bounces at opencms.org [mailto:opencms-dev-bounces at opencms.org] Im Auftrag von Cristina Hernández Sánchez
Gesendet: Montag, 19. Januar 2009 16:43
An: opencms-dev at opencms.org
Betreff: [opencms-dev] Maven project

 


I'm following the steps from http://opencms-maven.comundus.com/comundus/opencms/html/main/documentation/setup/  but i can't complete the process due to:

[FATAL ERROR] com.comundus.opencms.vfs.SetupMojo#execute() caused a linkage erro
r (java.lang.UnsupportedClassVersionError) and may be out-of-date. Check the rea
lms:
[FATAL ERROR] Plugin realm = app0.child-container[com.comundus.maven:maven-vfs-p
lugin]
urls[0] = file:/C:/Documents and Settings/chernandez/.m2/repository/com/comundus
/maven/maven-vfs-plugin/7.0.1d/maven-vfs-plugin-7.0.1d.jar
urls[1] = file:/C:/Documents and Settings/chernandez/.m2/repository/org/codehaus
/plexus/plexus-utils/1.1/plexus-utils-1.1.jar
[FATAL ERROR] Container realm = plexus.core
urls[0] = file:/C:/EntornoGea/apache-maven-2.0.9/bin/../lib/maven-2.0.9-uber.jar

[INFO] ------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO] ------------------------------------------------------------------------
[INFO] com/comundus/opencms/VfsSetup (Unsupported major.minor version 49.0)
[INFO] ------------------------------------------------------------------------
[INFO] Trace
java.lang.UnsupportedClassVersionError: com/comundus/opencms/VfsSetup (Unsupport
ed major.minor version 49.0)
        at java.lang.ClassLoader.defineClass0(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:539)
        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:12
3)
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
        at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
        at com.comundus.opencms.vfs.SetupMojo.execute(SetupMojo.java:65)
        at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi
nManager.java:451)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
ultLifecycleExecutor.java:558)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi
fecycle(DefaultLifecycleExecutor.java:499)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
ltLifecycleExecutor.java:478)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
dleFailures(DefaultLifecycleExecutor.java:330)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
ts(DefaultLifecycleExecutor.java:291)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
fecycleExecutor.java:142)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
        at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)

        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 13 seconds
[INFO] Finished at: Mon Jan 19 16:31:38 CET 2009
[INFO] Final Memory: 12M/25M
[INFO] ------------------------------------------------------------------------

what i'm doing wrong???

________________________________

Comparte tus fotos con tus amigos. Más fácil con Windows Live <http://download.live.com> 

 

________________________________

Nuevo Windows Live, un mundo lleno de posibilidades Descúbrelo. <http://www.microsoft.com/windows/windowslive/default.aspx> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20090120/6fe0e2d9/attachment.htm>


More information about the opencms-dev mailing list