allegro / grunt-maven-plugin

Grunt + Maven integration done right
Other
213 stars 32 forks source link

Maven 3 supported? #1

Closed marceloverdijk closed 11 years ago

marceloverdijk commented 11 years ago

I'm using the following configuration:

<plugin>
    <groupId>pl.allegro</groupId>
    <artifactId>grunt-maven-plugin</artifactId>
    <version>1.0.0</version>
    <executions>
        <execution>
            <id>grunt</id>
            <goals>
                <goal>npm</goal>
                <goal>grunt</goal>
            </goals>
        </execution>
    </executions>
</plugin>

But when I run mvn grunt:grunt I get:

Number of foreign imports: 1 import: Entry[import from realm ClassRealm[maven.api, parent: null]]


    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:142)
    ... 20 more

Caused by: java.lang.NoSuchMethodError: org.apache.maven.execution.MavenSession.getRepositorySession()Lorg/sonatype/aether/RepositorySystemSession; at org.twdata.maven.mojoexecutor.MojoExecutor.executeMojo(MojoExecutor.java:80) at pl.allegro.tdr.gruntmaven.AbstractExecutableMojo.execute(AbstractExecutableMojo.java:69) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:106) ... 20 more

Note I'm using Maven 3.1.0.

adamdubiel commented 11 years ago

I see mojo-executor plugin we use internally was just updated to support 3.1.0 version, i will release 1.0.1 version to fix this asap. Thanks for submitting the issue!

adamdubiel commented 11 years ago

1.0.1 release was just promoted, should be available via Maven Central in couple hours.

marceloverdijk commented 11 years ago

Thanks, that was a quick fix.