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 <[email protected] <javascript:>>
> 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 [email protected].
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.