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

Broken on maven 3.3.1 #15

Closed
donald-w opened this issue Mar 27, 2015 · 1 comment · Fixed by #17
Closed

Broken on maven 3.3.1 #15

donald-w opened this issue Mar 27, 2015 · 1 comment · Fixed by #17

Comments

@donald-w
Copy link

Sample plugin invocation:

        <plugin>
            <groupId>org.fortasoft</groupId>
            <artifactId>gradle-maven-plugin</artifactId>
            <version>1.0.5</version>
            <configuration>
                <tasks>
                    <!-- this would effectively call "gradle doSomething" -->
                    <task>build</task>
                </tasks>
                <gradleVersion>2.2.1</gradleVersion>
                <gradleProjectDirectory>../gradletest</gradleProjectDirectory>
            </configuration>
            <executions>
                <execution>
                    <!-- You can bind this to any phase you like -->
                    <phase>compile</phase>
                    <goals>
                        <!-- goal must be "invoke" -->
                        <goal>invoke</goal>
                    </goals>
                </execution>
            </executions>
        </plugin>

[ERROR] Failed to execute goal org.fortasoft:gradle-maven-plugin:1.0.5:invoke (default) on project gradlebridge: Execution default of goal org.fortasoft:gradle-maven-plugin:1.0.5:invoke failed: A required class was missing while executing org.fortasoft:gradle-maven-plugin:1.0.5:invoke: org/slf4j/impl/NewMojoLogger
[ERROR] -----------------------------------------------------
[ERROR] realm = plugin>org.fortasoft:gradle-maven-plugin:1.0.5
[ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
[ERROR] urls[0] = file:/Users/donald/.m2/repository/org/fortasoft/gradle-maven-plugin/1.0.5/gradle-maven-plugin-1.0.5.jar
[ERROR] urls[1] = file:/Users/donald/.m2/repository/org/gradle/gradle-tooling-api/1.6/gradle-tooling-api-1.6.jar
[ERROR] urls[2] = file:/Users/donald/.m2/repository/org/codehaus/groovy/groovy-all/2.0.6/groovy-all-2.0.6.jar
[ERROR] urls[3] = file:/Users/donald/.m2/repository/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.jar
[ERROR] Number of foreign imports: 1
[ERROR] import: Entry[import from realm ClassRealm[maven.api, parent: null]]
[ERROR]
[ERROR] -----------------------------------------------------
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginContainerException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn -rf :gradlebridge
Cobalt:scratch donald$

psibre added a commit to psibre/gradle-maven-plugin that referenced this issue Mar 31, 2015
@psibre
Copy link
Contributor

psibre commented Mar 31, 2015

This is almost certainly MNG-5787.
The suggested workaround is to use the maven-shade-plugin, which I also saw mentioned in a similar issue with an ironic twist.

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

Successfully merging a pull request may close this issue.

2 participants