-
Notifications
You must be signed in to change notification settings - Fork 7
1) No implementation for org.eclipse.aether.impl.VersionResolver was bound. #5
Description
I'm trying to mavenize a projet. My spike consist in:
- upload a dll that works in unity to nexus
- Add a pom to my project that should download the dll and add it to the project.
Here my actual pom:
`
4.0.0
com.plumbee
unity-slot-spike
jar
0.1
<name>Unity slots spike</name>
<parent>
<groupId>com.plumbee</groupId>
<artifactId>BasePom</artifactId>
<version>3.14</version>
</parent>
<properties>
<unity.maven.plugin.version>0.2.3</unity.maven.plugin.version>
<zenject.version>3.9</zenject.version>
</properties>
<build>
<plugins>
<plugin>
<groupId>ca.mestevens.unity</groupId>
<artifactId>unity-maven-plugin</artifactId>
<version>${unity.maven.plugin.version}</version>
<extensions>true</extensions>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>modesttree</groupId>
<artifactId>zenject</artifactId>
<version>${zenject.version}</version>
<type>dll</type>
</dependency>
</dependencies>
`
Ignore the packaging JAR for now, because I'm just trying to resolve the dependency.
When I run this command:
mvn unity:unity-library-dependencies
I got this error:
[ERROR] Failed to execute goal ca.mestevens.unity:unity-maven-plugin:0.2.3:unity-library-dependencies (default-cli) on project unity-slot-spike: Execution default-cli of goal ca.mestevens.unity:unity-maven-plugin:0.2.3:unity-library-dependencies failed: Unable to load the mojo 'unity-library-dependencies' (or one of its required components) from the plugin 'ca.mestevens.unity:unity-maven-plugin:0.2.3': com.google.inject.ProvisionException: Guice provision errors:
[ERROR]
[ERROR] 1) No implementation for org.eclipse.aether.impl.VersionResolver was bound.
[ERROR] while locating org.eclipse.aether.internal.impl.DefaultArtifactResolver
[ERROR] at ClassRealm[plugin>ca.mestevens.unity:unity-maven-plugin:0.2.3, parent: sun.misc.Launcher$AppClassLoader@14dad5dc]
[ERROR] at ClassRealm[plugin>ca.mestevens.unity:unity-maven-plugin:0.2.3, parent: sun.misc.Launcher$AppClassLoader@14dad5dc]
[ERROR] while locating org.eclipse.aether.impl.ArtifactResolver
[ERROR] while locating org.eclipse.aether.internal.impl.DefaultRepositorySystem
[ERROR] at ClassRealm[plugin>ca.mestevens.unity:unity-maven-plugin:0.2.3, parent: sun.misc.Launcher$AppClassLoader@14dad5dc]
[ERROR] at ClassRealm[plugin>ca.mestevens.unity:unity-maven-plugin:0.2.3, parent: sun.misc.Launcher$AppClassLoader@14dad5dc]
[ERROR] while locating org.eclipse.aether.RepositorySystem
[ERROR] while locating ca.mestevens.unity.FrameworkDependenciesMojo
[ERROR] at ClassRealm[plugin>ca.mestevens.unity:unity-maven-plugin:0.2.3, parent: sun.misc.Launcher$AppClassLoader@14dad5dc]
[ERROR] while locating org.apache.maven.plugin.Mojo annotated with @com.google.inject.name.Named(value=ca.mestevens.unity:unity-maven-plugin:0.2.3:unity-library-dependencies)
[ERROR]
[ERROR] 1 error
[ERROR] role: org.apache.maven.plugin.Mojo
[ERROR] roleHint: ca.mestevens.unity:unity-maven-plugin:0.2.3:unity-library-dependencies
[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
Any thoughts?
PD If you can point me to any example of pom using this plugin will be really appreciated :D
Cheers.