ARTEMIS-4918: artemis-maven-plugin tweaks and cleanup

- switch to using maven-core instead of ancient maven-project dep
- set provided scope on various deps that should have it, fix warnings
- use transitive maven-resolver-api from -core, its also 'provided'
- add a property to update common component versions
This commit is contained in:
Robbie Gemmell 2024-07-10 15:16:51 +01:00
parent 2f39db8270
commit b8ee43861e
1 changed files with 11 additions and 15 deletions

View File

@ -28,32 +28,28 @@
<packaging>maven-plugin</packaging>
<name>ActiveMQ Artemis Maven Plugin</name>
<properties>
<plugin.components.maven.version>3.9.8</plugin.components.maven.version>
</properties>
<dependencies>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-plugin-api</artifactId>
<version>3.9.8</version>
<version>${plugin.components.maven.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-artifact</artifactId>
<version>3.9.8</version>
<version>${plugin.components.maven.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-project</artifactId>
<version>2.2.1</version>
<exclusions>
<exclusion>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.apache.maven.resolver</groupId>
<artifactId>maven-resolver-api</artifactId>
<version>1.9.20</version>
<artifactId>maven-core</artifactId>
<version>${plugin.components.maven.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.activemq</groupId>