Hello,
I am getting the below trace when I am ding a mvn package for JIRA REST. I can see that the guava10.0.1.jar does exist at <m2.repositories>\com\google\guava\guava\10.0.1
What am I missing ? How can I proceed ?
Regards,
Ashwini Nerlekar
-----------------------------------------------------
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Internal error in the plugin manager executing goal 'com.atlassian.maven.plugins:artifactory-staging-maven-plugin
:1.0.3:staging': Unable to load the mojo 'com.atlassian.maven.plugins:artifactory-staging-maven-plugin:1.0.3:staging' in
the plugin 'com.atlassian.maven.plugins:artifactory-staging-maven-plugin'. A required class is missing: com/google/common/base/Predicate
com.google.common.base.Predicate
[INFO] ------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Internal error in the plugin manager executing goal 'com.atlassi
an.maven.plugins:artifactory-staging-maven-plugin:1.0.3:staging': Unable to load the mojo 'com.atlassian.maven.plugins:a
rtifactory-staging-maven-plugin:1.0.3:staging' in the plugin 'com.atlassian.maven.plugins:artifactory-staging-maven-plug
in'. A required class is missing: com/google/common/base/Predicate
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:698)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:55
6)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.jav
a:387)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.PluginManagerException: Unable to load the mojo 'com.atlassian.maven.plugins:artifact
ory-staging-maven-plugin:1.0.3:staging' in the plugin 'com.atlassian.maven.plugins:artifactory-staging-maven-plugin'. A
required class is missing: com/google/common/base/Predicate
at org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(DefaultPluginManager.java:669)
at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:468)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
... 17 more
Caused by: org.codehaus.plexus.component.repository.exception.ComponentLookupException: Unable to lookup component 'org.
apache.maven.plugin.Mojocom.atlassian.maven.plugins:artifactory-staging-maven-plugin:1.0.3:staging', it could not be cre
ated
at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:335)
at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:440)
at org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(DefaultPluginManager.java:652)
... 19 more
Caused by: org.codehaus.plexus.component.factory.ComponentInstantiationException: Could not instanciate component: role:
'null', implementation: 'com.atlassian.maven.plugins.artifactory.staging.ArtifactoryStagingMojo'
at org.codehaus.plexus.component.factory.java.JavaComponentFactory.makeException(JavaComponentFactory.java:77)
at org.codehaus.plexus.component.factory.java.JavaComponentFactory.newInstance(JavaComponentFactory.java:62)
at org.codehaus.plexus.DefaultPlexusContainer.createComponentInstance(DefaultPlexusContainer.java:1464)
at org.codehaus.plexus.component.manager.AbstractComponentManager.createComponentInstance(AbstractComponentManag
er.java:93)
at org.codehaus.plexus.component.manager.PerLookupComponentManager.getComponent(PerLookupComponentManager.java:4
8)
at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:331)
... 21 more
Caused by: java.lang.NoClassDefFoundError: com/google/common/base/Predicate
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:2671)
at java.lang.Class.getConstructor0(Class.java:3075)
at java.lang.Class.newInstance(Class.java:412)
at org.codehaus.plexus.component.factory.java.JavaComponentFactory.newInstance(JavaComponentFactory.java:44)
... 25 more
Caused by: java.lang.ClassNotFoundException: com.google.common.base.Predicate
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at org.codehaus.classworlds.RealmClassLoader.loadClassDirect(RealmClassLoader.java:195)
at org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassRealm.java:255)
at org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassRealm.java:274)
at org.codehaus.classworlds.RealmClassLoader.loadClass(RealmClassLoader.java:214)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 30 more
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 9 seconds
[INFO] Finished at: Wed Feb 07 14:22:22 CST 2018
[INFO] Final Memory: 42M/400M
[INFO] ------------------------------------------------------------------------
any answer about this? is atlassian reading these posts at all???
Yes they do.
I think this question is about getting the imports right though, and they don't have time to dig through large amounts of possible imports.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
...fyi: I've solved this issue by adding the missing dependency to the atlassian-spring-scanner-maven-plugin section and the local maven repo of atlassian.
<plugin>
<groupId>com.atlassian.plugin</groupId>
<artifactId>atlassian-spring-scanner-maven-plugin</artifactId>
<version>${atlassian.spring.scanner.version}</version>
<executions>
<execution>
<goals>
<goal>atlassian-spring-scanner</goal>
</goals>
<phase>process-classes</phase>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>11.0.2-atlassian-01</version>
</dependency>
</dependencies>
....
<repositories>
<repository>
<id>atlassian</id>
<url>file:///usr/local/Cellar/atlassian-plugin-sdk/6.3.10/libexec/repository</url>
</repository>
</repositories>
BTW: the project structure and pom.xml was generated by the atlas-create-confluence-plugin. so I guess atlassian should definitely have a look to this issue.
I'm using:
ATLAS Version: 6.3.10
ATLAS Home: /usr/local/Cellar/atlassian-plugin-sdk/6.3.10/libexec
ATLAS Scripts: /usr/local/Cellar/atlassian-plugin-sdk/6.3.10/libexec/bin
ATLAS Maven Home: /usr/local/Cellar/atlassian-plugin-sdk/6.3.10/libexec/apache-maven-3.2.1
AMPS Version: 6.3.15
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
...these maven settings are also needed:
after these changes eclipse and maven are again friends ;-)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi.
I have the same error using the command "atlas-mvn package" with version atlassian sdk 6.3.10.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.