Details
-
Story
-
Resolution: Unresolved
-
Major
-
None
-
5.2.0.Final
-
None
-
None
-
False
-
False
-
-
---
-
---
Description
Today WindUp can check for a specific groupId/artifactId only for dependencies in the pom.xml. The following rule:
<when>
<project>
<artifact groupId="org.springframework.boot" artifactId="spring-boot-starter-parent"/>
</project>
</when>
will detect the artifactId in the dependency element:
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.2.6</version>
</dependency>
but not in the parent element:
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.2.6</version>
</parent>
It would be nice to be able to check a groupId/artifactId anywhere in the pom.xml. For that, we could add a location (such as in javaclass):
<when>
<project>
<artifact groupId="org.springframework.boot" artifactId="spring-boot-starter-parent" toVersion="2.2.7.RELEASE">
<location>DEPENDENCY</location>
</artifact>
</project>
</when>
With <location> being DEPENDENCY, PARENT, PLUGIN...
Attachments
Issue Links
- is related to
-
WINDUP-3313 Detect Artifacts referenced within the plugins section of the pom.xml file
- Closed