Maybe your download is corrupt. 

Remove folder ~/.m2/repository/org/jenkins-ci/plugins/jackson2-api

And then call again:

mvn clean install 
 

> Am 10.10.2019 um 15:10 schrieb Carol Guo <[email protected]>:
> 
> Hi,
> I'm new to jenkins development and trying to fork and build 
> aws-parameter-store-plugin 
> <https://github.com/jenkinsci/aws-parameter-store-plugin> 
> The build failed with 
> Tests run: 6, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 19.01 sec <<< 
> FAILURE!
> testPluginActive(org.jvnet.hudson.test.PluginAutomaticTestBuilder$OtherTests) 
>  Time elapsed: 0.006 sec  <<< ERROR!
> java.lang.Error: Plugin jackson2-api.jpi failed to start
>       at 
> org.jvnet.hudson.test.PluginAutomaticTestBuilder$OtherTests.testPluginActive(PluginAutomaticTestBuilder.java:99)
>       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 junit.framework.TestCase.runTest(TestCase.java:176)
>       at junit.framework.TestCase.runBare(TestCase.java:141)
>       at junit.framework.TestResult$1.protect(TestResult.java:122)
>       at junit.framework.TestResult.runProtected(TestResult.java:142)
>       at junit.framework.TestResult.run(TestResult.java:125)
>       at junit.framework.TestCase.run(TestCase.java:129)
>       at junit.framework.TestSuite.runTest(TestSuite.java:252)
>       at junit.framework.TestSuite.run(TestSuite.java:247)
>       at 
> org.jvnet.hudson.test.junit.GroupedTest.runGroupedTests(GroupedTest.java:67)
>       at 
> org.jvnet.hudson.test.JellyTestSuiteBuilder$JellyTestSuite.doTests(JellyTestSuiteBuilder.java:152)
>       at 
> org.jvnet.hudson.test.JellyTestSuiteBuilder$JellyTestSuite.access$100(JellyTestSuiteBuilder.java:138)
>       at 
> org.jvnet.hudson.test.JellyTestSuiteBuilder$JellyTestSuite$2.call(JellyTestSuiteBuilder.java:160)
>       at 
> org.jvnet.hudson.test.HudsonTestCase$WebClient$5.run(HudsonTestCase.java:1610)
>       at 
> org.jvnet.hudson.test.ClosureExecuterAction.doIndex(ClosureExecuterAction.java:53)
>       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.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:298)
>       at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:161)
>       at 
> org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:96)
>       at org.kohsuke.stapler.MetaClass$2.dispatch(MetaClass.java:165)
>       at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:746)
>       at org.kohsuke.stapler.Stapler.invoke(Stapler.java:876)
>       at org.kohsuke.stapler.MetaClass$13.dispatch(MetaClass.java:411)
>       at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:746)
>       at org.kohsuke.stapler.Stapler.invoke(Stapler.java:876)
>       at org.kohsuke.stapler.Stapler.invoke(Stapler.java:649)
>       at org.kohsuke.stapler.Stapler.service(Stapler.java:238)
>       at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
>       at 
> org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:812)
>       at 
> org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1669)
>       at 
> hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:132)
>       at 
> hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:123)
>       at 
> org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
>       at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:92)
>       at 
> org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
>       at 
> hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)
>       at 
> hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76)
>       at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:171)
>       at 
> org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
>       at 
> org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:49)
>       at 
> org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
>       at 
> hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:81)
>       at 
> org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
>       at 
> org.kohsuke.stapler.DiagnosticThreadNameFilter.doFilter(DiagnosticThreadNameFilter.java:30)
>       at 
> org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
>       at 
> org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:585)
>       at 
> org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
>       at 
> org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:553)
>       at 
> org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:223)
>       at 
> org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127)
>       at 
> org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)
>       at 
> org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
>       at 
> org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061)
>       at 
> org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
>       at 
> org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)
>       at org.eclipse.jetty.server.Server.handle(Server.java:499)
>       at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:311)
>       at 
> org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257)
>       at 
> org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:540)
>       at 
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
>       at java.util.concurrent.FutureTask.run(FutureTask.java:266)
>       at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
>       at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
>       at java.lang.Thread.run(Thread.java:748)
> Caused by: java.io.IOException: Failed to expand 
> /var/folders/q2/cgjp51qs3szg3y9yb2mxybsc0000gn/T/hudson5568625245824732134tmp/jackson2-api.jpi
>       at hudson.ClassicPluginStrategy.explode(ClassicPluginStrategy.java:531)
>       at 
> hudson.ClassicPluginStrategy.createPluginWrapper(ClassicPluginStrategy.java:166)
>       at hudson.PluginManager$1$3$1.run(PluginManager.java:254)
>       at 
> org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:169)
>       at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:282)
>       at jenkins.model.Jenkins$7.runTask(Jenkins.java:905)
>       at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:210)
>       at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117)
>       ... 3 more
> Caused by: Error while expanding 
> /var/folders/q2/cgjp51qs3szg3y9yb2mxybsc0000gn/T/hudson5568625245824732134tmp/jackson2-api.jpi
> java.util.zip.ZipException: archive is not a ZIP archive
>       at org.apache.tools.ant.taskdefs.Expand.expandFile(Expand.java:192)
>       at org.apache.tools.ant.taskdefs.Expand.execute(Expand.java:132)
>       at 
> hudson.ClassicPluginStrategy.unzipExceptClasses(ClassicPluginStrategy.java:603)
>       at hudson.ClassicPluginStrategy.explode(ClassicPluginStrategy.java:528)
>       ... 10 more
> Caused by: java.util.zip.ZipException: archive is not a ZIP archive
>       at 
> org.apache.tools.zip.ZipFile.positionAtCentralDirectory(ZipFile.java:481)
>       at 
> org.apache.tools.zip.ZipFile.populateFromCentralDirectory(ZipFile.java:320)
>       at org.apache.tools.zip.ZipFile.<init>(ZipFile.java:186)
>       at org.apache.tools.ant.taskdefs.Expand.expandFile(Expand.java:170)
>       ... 13 more
> 
> 
> Results :
> 
> Tests in error:
>   PluginAutomaticTestBuilder$OtherTests.testPluginActive:99  Plugin 
> jackson2-api...
> 
> Tests run: 53, Failures: 0, Errors: 1, Skipped: 0
> 
> 
> Below is my maven and java version:
> mvn -version
> Apache Maven 3.6.2 (40f52333136460af0dc0d7232c0dc0bcf0d9e117; 
> 2019-08-27T11:06:16-04:00)
> Maven home: /Users/yung/maven/apache-maven-3.6.2
> Java version: 1.8.0_222, vendor: AdoptOpenJDK, runtime: 
> /Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk/Contents/Home/jre
> Default locale: en_US, platform encoding: UTF-8
> OS name: "mac os x", version: "10.14.5", arch: "x86_64", family: "mac"
> 
> I couldn't find the  
> /var/folders/q2/cgjp51qs3szg3y9yb2mxybsc0000gn/T/hudson5568625245824732134tmp/
>  on my local, not sure how it should be downloaded and why it is failing.
> Any suggestions?
> 
> 
> 
> -- 
> 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 [email protected] 
> <mailto:[email protected]>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/jenkinsci-dev/c307c0c5-6955-42ff-9168-ed201f245701%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/jenkinsci-dev/c307c0c5-6955-42ff-9168-ed201f245701%40googlegroups.com?utm_medium=email&utm_source=footer>.

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/E910CFF6-DDCE-440A-9C75-1A59C50601CA%40gmail.com.

Reply via email to