package-plugin fails because pom.xml created by create-pom on plugin project has missing tomcat dependency
Opened this issue · 0 comments
xnickmx commented
Summary:
- Grails 2.3.4
- Gails plugin project
- Use Maven
- run "package-plugin" and get a class not found error.
Steps to reproduce:
grails create-plugin myplugin
cd myplugin
grails create-pom com.mycompany
mvn grails:package-plugin
Error output: https://gist.github.com/xnickmx/28036e21b862cf0a3b3d
To fix, add the Tomcat dependency to the POM.
<dependency>
<groupId>org.grails.plugins</groupId>
<artifactId>tomcat</artifactId>
<version>7.0.47</version>
<scope>provided</scope>
<type>zip</type>
</dependency>
By the way, this is the same dependency that IS added to Grails applications project POMs by "grails create-pom".
now mvn grails:package-plugin works.