I did a "svn co https://svn.codehaus.org/mojo/trunk/mojo/mojo-sandbox/
maven-tomcat-plugin/"
which put me at revision 558.
I would like to bind tomcat:deploy to the package phase as it needs
to run as part of
my Continuum build - unless you have a better suggestion. But just to
see if I could get
things to work I tried your plugin markup but still got the same
exception when I ran m2 tomcat:deploy.
On 22 Sep 2005, at 13:30, Mark Hobson wrote:
Hi Ashley,
(Not sure if this should be on the mojo users mailing list?)
Are you running the svn head of maven-tomcat-plugin? I've recently
submitted a few patches that should fix that NPE. Note that there is
also a final patch (#7) in MOJO-23 that's waiting to be applied which
fixes the misnamed redeploy goal.
I don't tend to explicity bind the tomcat:deploy to the lifecycle,
since it's annotations already specify the package phase as a
pre-requisite. So try changing your plugin config to just:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-tomcat-plugin</artifactId>
<version>2.0-beta-1-SNAPSHOT</version>
</plugin>
Then a m2 tomcat:deploy will run the lifecycle to the package phase
(i.e. create your war) and then deploy it to tomcat.
Let me know if you have any problems.
Mark
On 22/09/05, Ashley Williams <[EMAIL PROTECTED]> wrote:
(Maybe this is one for Mark)
I'm having a bit of bother with the tomcat plugin. I've added the
following section to my pom:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-tomcat-plugin</artifactId>
<version>2.0-beta-1-SNAPSHOT</version>
<executions>
<execution>
<phase>install</phase>
<goals>
<goal>deploy</goal>
</goals>
</execution>
</executions>
</plugin>
and when I do an m2 install I get the following NPE:
java.lang.NullPointerException
at org.apache.maven.plugin.tomcat.DeployMojo.isWarExploded
(DeployMojo.java:268)
at org.apache.maven.plugin.tomcat.DeployMojo.getWarFile
(DeployMojo.java:219)
at org.apache.maven.plugin.tomcat.DeployMojo.deployRemote
(DeployMojo.java:158)
at org.apache.maven.plugin.tomcat.DeployMojo.execute
(DeployMojo.java:125)
Also if I remove the phase=install tag (i.e. accept the default value
of 'package') then the build loops endlessly!!
Am I using the plugin correctly?
AW
---------------------------------------------------------------------
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]