Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

package-plugin fails because pom.xml created by create-pom on plugin project has missing tomcat dependency #37

Open
xnickmx opened this issue Dec 13, 2013 · 0 comments

Comments

@xnickmx
Copy link

xnickmx commented Dec 13, 2013

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant