Search code examples
maventomcatjenkinssjsxp

Tomcat can not open sjsxp-1.0.2.jar


I have a maven project. And i am compiling intellij idea 13 without problems but i want to build in jenkins /home/tomcat/.m2/repository/com/sun/xml/stream/sjsxp/1.0.2/sjsxp-1.0.2.jar; error in opening zip file

this exception occur jenkins console. Anybody can help me ? Thank you.

My maven dependency

    <dependency>
        <groupId>com.sun.xml.stream</groupId>
        <artifactId>sjsxp</artifactId>
        <version>1.0.2</version>
    </dependency>

Thank you so much.


Solution

  • That typically means that the jar file has somehow been corrupt. Try deleting /home/tomcat/.m2/repository/com/sun/xml/stream/sjsxp/1.0.2/sjsxp-1.0.2.jar on the Jenkins-server and rerun the build.