Re: NoClassDefFoundError: com/cloudbees/plugins/credentials/CredentialsProvider
Awesome!If you need them only form testing then change their scope as test Cheers -- You received this message because you are subscribed to the Google Groups "Jenkins Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-dev+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/a1cd0fac-ef27-420e-a542-d646a4b747e2%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: NoClassDefFoundError: com/cloudbees/plugins/credentials/CredentialsProvider
How do you specify scope of dependency in pom.xml? Thanks, -jacqui On Thursday, October 1, 2015 at 11:03:51 AM UTC-7, Victor Martinez wrote: > > Awesome!If you need them only form testing then change their scope as test > Cheers -- You received this message because you are subscribed to the Google Groups "Jenkins Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-dev+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/16843f9d-b99f-4dad-bc68-ce6eb0fe52e3%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: NoClassDefFoundError: com/cloudbees/plugins/credentials/CredentialsProvider
Thanks all! I did have to add the dependencies to pom.xml. I added the two items below and now everything is good. org.jenkins-ci.plugins credentials 1.8.3 true org.jenkins-ci.plugins matrix-auth 1.0.2 true On Wednesday, September 30, 2015 at 3:42:30 PM UTC-7, Jesse Glick wrote: > > On Wed, Sep 30, 2015 at 6:18 PM, Victor Martinez >wrote: > > Some missing dependencies: > > - https://wiki.jenkins-ci.org/display/JENKINS/Credentials+Plugin > > Specifically `cloudbees-folder` has > > > https://github.com/jenkinsci/cloudbees-folder-plugin/blob/cloudbees-folder-4.10/pom.xml#L55-L60 > > > Since this is an `optional` dependency, it does not automatically get > included transitively in your plugin’s test classpath. If you want it, > you need to add it. > > That said, it looks like a bug in `cloudbees-folder` that it has this > optional dependency yet does not behave gracefully when the dependency > is missing. Possibly it suffices for `@Extension` to be marked > `(optional=true)`. Perhaps file a bug/PR. > -- You received this message because you are subscribed to the Google Groups "Jenkins Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-dev+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/d661bba1-1ae0-45ac-b5df-8075e7107323%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: NoClassDefFoundError: com/cloudbees/plugins/credentials/CredentialsProvider
There are a list of different dependency scopes, in your case you need to add the test scope tag. Further details: - https://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html#Dependency_Scope If you don't need that dependency in your runtime then use that test scope. Cheers On Thursday, 1 October 2015 20:14:58 UTC+2, Jacqueline Taing wrote: > > How do you specify scope of dependency in pom.xml? > > Thanks, > -jacqui > > On Thursday, October 1, 2015 at 11:03:51 AM UTC-7, Victor Martinez wrote: >> >> Awesome!If you need them only form testing then change their scope as test >> Cheers > > -- You received this message because you are subscribed to the Google Groups "Jenkins Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-dev+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/f39571f9-037a-4e8e-aff4-c8f7c20b4475%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: NoClassDefFoundError: com/cloudbees/plugins/credentials/CredentialsProvider
Thank you! On Thursday, October 1, 2015 at 1:42:34 PM UTC-7, Victor Martinez wrote: > > There are a list of different dependency scopes, in your case you need to > add the test scope tag. > > Further details: > - > https://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html#Dependency_Scope > > If you don't need that dependency in your runtime then use that test scope. > > Cheers > > On Thursday, 1 October 2015 20:14:58 UTC+2, Jacqueline Taing wrote: >> >> How do you specify scope of dependency in pom.xml? >> >> Thanks, >> -jacqui >> >> On Thursday, October 1, 2015 at 11:03:51 AM UTC-7, Victor Martinez wrote: >>> >>> Awesome!If you need them only form testing then change their scope as >>> test >>> Cheers >> >> -- You received this message because you are subscribed to the Google Groups "Jenkins Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-dev+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/7146b31e-f8ab-404e-b947-a97569fb4f63%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
NoClassDefFoundError: com/cloudbees/plugins/credentials/CredentialsProvider
Hi all, I'm getting the following error during the injected test when I build my plugin: Sep 30, 2015 3:02:41 PM hudson.ExtensionFinder$GuiceFinder$FaultTolerantScope$1 error WARNING: Failed to instantiate Key[type=com.cloudbees.hudson.plugins.folder.properties.FolderCredentialsProvider$FolderCredentialsProperty$DescriptorImpl, annotation=[none]]; skipping this component com.google.inject.ProvisionException: Guice provision errors: 1) Error injecting constructor, java.lang.NoClassDefFoundError: com/cloudbees/plugins/credentials/CredentialsProvider at com.cloudbees.hudson.plugins.folder.properties.FolderCredentialsProvider$FolderCredentialsProperty$DescriptorImpl.(Unknown Source) 1 error at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:52) at com.google.inject.Scopes$1$1.get(Scopes.java:59) at hudson.ExtensionFinder$GuiceFinder$FaultTolerantScope$1.get(ExtensionFinder.java:429) at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:41) at com.google.inject.internal.InjectorImpl$3$1.call(InjectorImpl.java:965) at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1011) at com.google.inject.internal.InjectorImpl$3.get(InjectorImpl.java:961) at hudson.ExtensionFinder$GuiceFinder._find(ExtensionFinder.java:391) at hudson.ExtensionFinder$GuiceFinder.find(ExtensionFinder.java:382) at hudson.ExtensionFinder._find(ExtensionFinder.java:151) at hudson.ClassicPluginStrategy.findComponents(ClassicPluginStrategy.java:316) at hudson.ExtensionList.load(ExtensionList.java:295) at hudson.ExtensionList.ensureLoaded(ExtensionList.java:248) at hudson.ExtensionList.getComponents(ExtensionList.java:149) at hudson.DescriptorExtensionList.load(DescriptorExtensionList.java:182) at hudson.ExtensionList.ensureLoaded(ExtensionList.java:248) at hudson.ExtensionList.size(ExtensionList.java:157) at java.util.AbstractCollection.isEmpty(AbstractCollection.java:86) ... *Caused by: java.lang.NoClassDefFoundError: com/cloudbees/plugins/credentials/CredentialsProvider* at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:760) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) at java.net.URLClassLoader.defineClass(URLClassLoader.java:467) ... Caused by: java.lang.ClassNotFoundException: com.cloudbees.plugins.credentials.CredentialsProvider at java.net.URLClassLoader.findClass(URLClassLoader.java:381) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ... 60 more My pom.xml has the following: org.jenkins-ci.plugins plugin >1.554.1 org.jenkins-ci.plugins cloudbees-folder 4.10 jar Any ideas? Thanks, -jacqui -- You received this message because you are subscribed to the Google Groups "Jenkins Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-dev+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/ddb34e2f-7ab1-478c-b839-0e78d555bf30%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: NoClassDefFoundError: com/cloudbees/plugins/credentials/CredentialsProvider
Some missing dependencies: - https://wiki.jenkins-ci.org/display/JENKINS/Credentials+Plugin You might need to add it as part of your pom.xml file, scope test: https://github.com/jenkinsci/credentials-plugin/blob/master/pom.xml#L35-L36 I hope it helps On Thursday, October 1, 2015 at 12:11:51 AM UTC+2, Jacqueline Taing wrote: > > Hi all, > > I'm getting the following error during the injected test when I build my > plugin: > > Sep 30, 2015 3:02:41 PM > hudson.ExtensionFinder$GuiceFinder$FaultTolerantScope$1 error > WARNING: Failed to instantiate > Key[type=com.cloudbees.hudson.plugins.folder.properties.FolderCredentialsProvider$FolderCredentialsProperty$DescriptorImpl, > > annotation=[none]]; skipping this component > com.google.inject.ProvisionException: Guice provision errors: > > 1) Error injecting constructor, java.lang.NoClassDefFoundError: > com/cloudbees/plugins/credentials/CredentialsProvider > at > com.cloudbees.hudson.plugins.folder.properties.FolderCredentialsProvider$FolderCredentialsProperty$DescriptorImpl.(Unknown > > Source) > > 1 error > at > com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:52) > at com.google.inject.Scopes$1$1.get(Scopes.java:59) > at > hudson.ExtensionFinder$GuiceFinder$FaultTolerantScope$1.get(ExtensionFinder.java:429) > at > com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:41) > at > com.google.inject.internal.InjectorImpl$3$1.call(InjectorImpl.java:965) > at > com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1011) > at > com.google.inject.internal.InjectorImpl$3.get(InjectorImpl.java:961) > at > hudson.ExtensionFinder$GuiceFinder._find(ExtensionFinder.java:391) > at > hudson.ExtensionFinder$GuiceFinder.find(ExtensionFinder.java:382) > at hudson.ExtensionFinder._find(ExtensionFinder.java:151) > at > hudson.ClassicPluginStrategy.findComponents(ClassicPluginStrategy.java:316) > at hudson.ExtensionList.load(ExtensionList.java:295) > at hudson.ExtensionList.ensureLoaded(ExtensionList.java:248) > at hudson.ExtensionList.getComponents(ExtensionList.java:149) > at > hudson.DescriptorExtensionList.load(DescriptorExtensionList.java:182) > at hudson.ExtensionList.ensureLoaded(ExtensionList.java:248) > at hudson.ExtensionList.size(ExtensionList.java:157) > at java.util.AbstractCollection.isEmpty(AbstractCollection.java:86) > ... > *Caused by: java.lang.NoClassDefFoundError: > com/cloudbees/plugins/credentials/CredentialsProvider* > at java.lang.ClassLoader.defineClass1(Native Method) > at java.lang.ClassLoader.defineClass(ClassLoader.java:760) > at > java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) > at java.net.URLClassLoader.defineClass(URLClassLoader.java:467) > ... > Caused by: java.lang.ClassNotFoundException: > com.cloudbees.plugins.credentials.CredentialsProvider > at java.net.URLClassLoader.findClass(URLClassLoader.java:381) > at java.lang.ClassLoader.loadClass(ClassLoader.java:424) > at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331) > at java.lang.ClassLoader.loadClass(ClassLoader.java:357) > ... 60 more > > My pom.xml has the following: > > > org.jenkins-ci.plugins > plugin > >1.554.1 > > > > org.jenkins-ci.plugins > cloudbees-folder > 4.10 > jar > > > Any ideas? > > Thanks, > -jacqui > -- You received this message because you are subscribed to the Google Groups "Jenkins Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-dev+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/be9bb6ed-2cb3-4f3d-9aa5-d01a70a18859%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: NoClassDefFoundError: com/cloudbees/plugins/credentials/CredentialsProvider
On Wed, Sep 30, 2015 at 6:18 PM, Victor Martinezwrote: > Some missing dependencies: > - https://wiki.jenkins-ci.org/display/JENKINS/Credentials+Plugin Specifically `cloudbees-folder` has https://github.com/jenkinsci/cloudbees-folder-plugin/blob/cloudbees-folder-4.10/pom.xml#L55-L60 Since this is an `optional` dependency, it does not automatically get included transitively in your plugin’s test classpath. If you want it, you need to add it. That said, it looks like a bug in `cloudbees-folder` that it has this optional dependency yet does not behave gracefully when the dependency is missing. Possibly it suffices for `@Extension` to be marked `(optional=true)`. Perhaps file a bug/PR. -- You received this message because you are subscribed to the Google Groups "Jenkins Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-dev+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/CANfRfr3yUM8Wo7BwkpNfcXXA5u%3Dx7AmXsPuCd0TKQuA%3D%2B%3DcR8A%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.