Thursday, 8 September 2011

Tomcat Maven Plugin New Home at Apache Software Foundation

The Tomcat Maven Plugin has now a new Home at Apache Software Foundation.
The home is located here .
You will find some details on :

  • Sources location

  • Bug Tracker location



Some more cleanups need to be done to finish the Apache Branding.
Next steps (new features) will be :

  • Support of Apache Tomcat7 trough a new mojo : tomcat7:*

  • New mojo to be able to build an executable war with an embedded tomcat inside to be able to do : java -jar mywar.war



All feedbacks will be appreciate.
Have Fun.

Apache Maven, Maven, Apache Tomcat, Tomcat, Apache are trademarks of The Apache Software Foundation.

11 comments:

Piwaï said...

Quick feedback, in the docs

"You can run your War Apache Maven project trough Maven without to deploy your war file in a Apache Tomcat instance."

trough => through
without to deploy => without deploying
in a Apache => to an Apache

Tim Pizey said...

Congratulations for making the move.

Could we have a maven-tomcat-plugin email list?

I had to comment out the parent block to get a local build to succeed.

When is the release date for tomcat-maven-plugin-2.0?

olamy said...

@Tim : no real date currently :-)
I wonder what is your failure when you build ? can you send me a stack trace ? olamy AT apache DOT org.
Thanks.

kuru76 said...
This comment has been removed by the author.
kuru76 said...

What is the repo information to be able to use these plugins? I cannot find it at all on the site and I really want to try out the executable war.

olamy said...

@kuru76 check here http://tomcat.apache.org/maven-plugin-2.0-SNAPSHOT/ and here http://tomcat.apache.org/maven-plugin-2.0-SNAPSHOT/snapshot-test.html

kuru76 said...

@olamy Thanks, that was exactly what I needed.

kuru76 said...
This comment has been removed by the author.
kuru76 said...
This comment has been removed by the author.
kuru76 said...

After a little digging around I have gotten the generation of the war working. Unfortunately when I try to run it (java -jar ./new-exec-war.war

I get the following error:

Exception in thread "main" java.util.zip.ZipException: error in opening zip file
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.(ZipFile.java:127)
at java.util.jar.JarFile.(JarFile.java:135)
at java.util.jar.JarFile.(JarFile.java:72)
at sun.net.www.protocol.jar.URLJarFile.(URLJarFile.java:72)
at sun.net.www.protocol.jar.URLJarFile.getJarFile(URLJarFile.java:48)
at sun.net.www.protocol.jar.JarFileFactory.get(JarFileFactory.java:55)
at sun.net.www.protocol.jar.JarURLConnection.connect(JarURLConnection.java:104)
at sun.net.www.protocol.jar.JarURLConnection.getInputStream(JarURLConnection.java:132)
at org.apache.tomcat.maven.runner.Tomcat7Runner.getContextXml(Tomcat7Runner.java:229)
at org.apache.tomcat.maven.runner.Tomcat7Runner.run(Tomcat7Runner.java:208)
at org.apache.tomcat.maven.runner.Tomcat7RunnerCli.main(Tomcat7RunnerCli.java:144)

olamy said...

@kuru76 this is not the best place to discuss issues :-).
So load an issue with a test case here: issues.apache.org/jira/browse/MTOMCAT