Skip to content

Jenkins WAR version in POM is overridden by transitive plugin dependency #126

Description

@andreyakostov

packager-config.yml:

bundle:
  groupId: com.test
  artifactId: jenkins
  vendor: andreyakostov
buildSettings:
  pom: pom.xml
  pomIgnoreRoot: true
  pomIncludeWar: true

pom.xml:

<project xmlns="http://maven.apache.org/POM/4.0.0"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  <modelVersion>4.0.0</modelVersion>

  <groupId>com.test</groupId>
  <artifactId>jenkins-plugins</artifactId>
  <version>1.0.0</version>
  <packaging>pom</packaging>

  <properties>
    <jenkins.version>2.190.1</jenkins.version>
    <java.level>8</java.level>
  </properties>

  <dependencies>
    <dependency>
      <groupId>org.jenkins-ci.plugins</groupId>
      <artifactId>resource-disposer</artifactId>
      <version>0.13</version>
    </dependency>
  </dependencies>

</project>

resource-disposer depends on jenkins-core 2.54, which overrides the version specified in the jenkins.version property.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions