(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]

Reply via email to