Quantcast

plugin included xercesImpl.jar from jenkins-test-harness test dependancy

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

plugin included xercesImpl.jar from jenkins-test-harness test dependancy

Ted Xiao
I am using the pom file https://github.com/jenkinsci/splunk-devops-plugin/blob/master/splunk-devops/pom.xml to build a plugin
It is pretty weird, I had below dependency


[INFO] +- org.jenkins-ci.main:jenkins-test-harness:jar:2.18:test
[INFO] |  +- org.eclipse.jetty:jetty-webapp:jar:9.2.15.v20160210:test
[INFO] |  |  +- org.eclipse.jetty:jetty-xml:jar:9.2.15.v20160210:test
[INFO] |  |  \- org.eclipse.jetty:jetty-servlet:jar:9.2.15.v20160210:test
[INFO] |  +- org.eclipse.jetty:jetty-security:jar:9.2.15.v20160210:test
[INFO] |  |  \- org.eclipse.jetty:jetty-server:jar:9.2.15.v20160210:test
[INFO] |  |     \- org.eclipse.jetty:jetty-http:jar:9.2.15.v20160210:test
[INFO] |  +- org.hamcrest:hamcrest-library:jar:1.3:test
[INFO] |  +- org.jenkins-ci.main:jenkins-test-harness-htmlunit:jar:2.18-1:test
[INFO] |  |  +- xalan:xalan:jar:2.7.2:test
[INFO] |  |  +- xalan:serializer:jar:2.7.2:test
[INFO] |  |  +- xerces:xercesImpl:jar:2.11.0:compile
[INFO] |  |  +- xml-apis:xml-apis:jar:1.4.01:
compile

[INFO] |  |  +- net.sourceforge.nekohtml:nekohtml:jar:1.9.22:test
[INFO] |  |  +- net.sourceforge.cssparser:cssparser:jar:0.9.16:test
[INFO] |  |  +- org.w3c.css:sac:jar:1.3:test
[INFO] |  |  +- org.eclipse.jetty.websocket:websocket-client:jar:9.2.12.v20150709:test
[INFO] |  |  +- org.eclipse.jetty:jetty-util:jar:9.2.12.v20150709:test
[INFO] |  |  +- org.eclipse.jetty:jetty-io:jar:9.2.12.v20150709:test
[INFO] |  |  +- org.eclipse.jetty.websocket:websocket-common:jar:9.2.12.v20150709:test
[INFO] |  |  \- org.eclipse.jetty.websocket:websocket-api:jar:9.2.12.v20150709:test
[INFO] |  +- org.jvnet.hudson:embedded-rhino-debugger:jar:1.2:test
[INFO] |  +- org.netbeans.modules:org-netbeans-insane:jar:RELEASE72:test
[INFO] |  \- com.github.stephenc.findbugs:findbugs-annotations:jar:1.3.9-1:test



xerces:xercesImpl:jar:2.11.0:compile was set as compile dependency and was included in the final artifact (hpi file), it just happened recently.

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/3245c1fa-5935-4273-bdba-348b981374c8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: plugin included xercesImpl.jar from jenkins-test-harness test dependancy

Jesse Glick-4
On Sun, Apr 16, 2017 at 10:49 AM, Ted Xiao <[hidden email]> wrote:
> xerces:xercesImpl:jar:2.11.0:compile was set as compile dependency and was
> included in the final artifact (hpi file), it just happened recently.

Not sure why offhand. Does not happen in a sample plugin AFAICT:

https://github.com/jenkinsci/plugin-pom/pull/58

BTW you should use

<no-test-jar>false</no-test-jar>

if you want to publish a test JAR, rather than the custom execution you have.

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/CANfRfr0cY9fWsXmb2H6-wFw05%3D7ra-QQ3%3Dqo8k55MwP7jLwGzQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: plugin included xercesImpl.jar from jenkins-test-harness test dependancy

Ted Xiao
Found out it is caused by org.jenkins-ci.plugins:jacoco, although it showed in org.jenkins-ci.main:jenkins-test-harness. 

fixed by

<dependency>
    <groupId>org.jenkins-ci.plugins</groupId>
    <artifactId>jacoco</artifactId>
    <version>2.1.0</version>
    <optional>true</optional>
    <exclusions>
        <exclusion>
            <groupId>org.apache.maven</groupId>
            <artifactId>maven-project</artifactId>
        </exclusion>
        <exclusion>
            <groupId>org.apache.maven</groupId>
            <artifactId>maven-artifact-manager</artifactId>
        </exclusion>
        <exclusion>
            <groupId>org.codehaus.plexus</groupId>
            <artifactId>plexus-container-default</artifactId>
        </exclusion>
        <exclusion>
            <groupId>org.jacoco</groupId>
            <artifactId>*</artifactId>
        </exclusion>
        <exclusion>
            <groupId>org.apache.maven.reporting</groupId>
            <artifactId>maven-reporting-api</artifactId>
        </exclusion>
        <exclusion>
            <groupId>xerces</groupId>
            <artifactId>xercesImpl</artifactId>
        </exclusion>
        <exclusion>
            <groupId>xml-apis</groupId>
            <artifactId>xml-apis</artifactId>
        </exclusion>
    </exclusions>
</dependency>

I packaged test-jar so another plugin can use the TestBase class in src/test folder


On Tuesday, April 25, 2017 at 12:46:24 AM UTC+8, Jesse Glick wrote:
On Sun, Apr 16, 2017 at 10:49 AM, Ted Xiao <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="xGgpU948BwAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">xia...@...> wrote:
> xerces:xercesImpl:jar:2.11.0:compile was set as compile dependency and was
> included in the final artifact (hpi file), it just happened recently.

Not sure why offhand. Does not happen in a sample plugin AFAICT:

<a href="https://github.com/jenkinsci/plugin-pom/pull/58" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fjenkinsci%2Fplugin-pom%2Fpull%2F58\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGT86PY1ZOicRI_cZ5f9w_9ysgKhw&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fjenkinsci%2Fplugin-pom%2Fpull%2F58\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGT86PY1ZOicRI_cZ5f9w_9ysgKhw&#39;;return true;">https://github.com/jenkinsci/plugin-pom/pull/58

BTW you should use

<no-test-jar>false</no-test-jar>

if you want to publish a test JAR, rather than the custom execution you have.

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/41e9cc91-4c9c-4b32-bea7-64a7de4b7603%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: plugin included xercesImpl.jar from jenkins-test-harness test dependancy

Jesse Glick-4
On Tue, Apr 25, 2017 at 1:42 AM, Ted Xiao <[hidden email]> wrote:
> Found out it is caused by org.jenkins-ci.plugins:jacoco

Probably https://github.com/jenkinsci/jacoco-plugin/commit/4baa40f8fb07cda1159880769e0f92024183d152
needs to be released.

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/CANfRfr1HmaRLHj%2BakMy-dSEDXAeUK4oxqZS%3DH2KOiW42b15EoA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Loading...