Skip to content

Commit

Permalink
Cleanup project pom file
Browse files Browse the repository at this point in the history
- use configuration and plugins version from parent
- execute mrm in run-its profile
- remove plexus-container-default from dependencies
- add breadcrumbs for site
  • Loading branch information
slawekjaranowski committed Jul 15, 2022
1 parent 199c79e commit 6d3c6e4
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 70 deletions.
103 changes: 34 additions & 69 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,13 @@
<packaging>maven-plugin</packaging>

<name>Versions Maven Plugin</name>
<url>http://www.mojohaus.org/versions-maven-plugin/</url>
<url>https://www.mojohaus.org/versions-maven-plugin/</url>

<description>
Versions Plugin for Maven. The Versions Plugin updates the versions of components in the POM.
</description>
<inceptionYear>2008</inceptionYear>

<licenses>
<license>
<name>Apache License, Version 2.0</name>
Expand Down Expand Up @@ -50,6 +52,7 @@
<timezone>+1</timezone>
</developer>
</developers>

<contributors>
<contributor>
<name>Benoit Lafontaine</name>
Expand Down Expand Up @@ -87,13 +90,9 @@
<scm>
<connection>scm:git:https://github.com/mojohaus/versions-maven-plugin.git</connection>
<developerConnection>scm:git:ssh://git@github.com/mojohaus/versions-maven-plugin.git</developerConnection>
<url>https://github.com/mojohaus/versions-maven-plugin/tree/${project.scm.tag}</url>
<tag>versions-maven-plugin-2.11.0</tag>
<url>https://github.com/mojohaus/versions-maven-plugin/tree/master</url>
<tag>HEAD</tag>
</scm>
<issueManagement>
<system>github</system>
<url>https://github.com/mojohaus/versions-maven-plugin/issues/</url>
</issueManagement>

<properties>
<mojo.java.target>1.8</mojo.java.target>
Expand Down Expand Up @@ -124,7 +123,6 @@
<dependency>
<groupId>org.apache.maven.plugin-tools</groupId>
<artifactId>maven-plugin-annotations</artifactId>
<version>3.6.4</version>
<scope>provided</scope>
</dependency>

Expand Down Expand Up @@ -215,12 +213,6 @@
<artifactId>plexus-utils</artifactId>
<version>3.4.2</version>
</dependency>
<dependency>
<groupId>org.codehaus.plexus</groupId>
<artifactId>plexus-container-default</artifactId>
<version>2.1.1</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.codehaus.plexus</groupId>
<artifactId>plexus-interactivity-api</artifactId>
Expand Down Expand Up @@ -276,23 +268,8 @@
</plugin>
</plugins>
</pluginManagement>

<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-plugin-plugin</artifactId>
<version>3.6.4</version>
<configuration>
<skipErrorNoDescriptorsFound>true</skipErrorNoDescriptorsFound>
</configuration>
<executions>
<execution>
<goals>
<goal>helpmojo</goal>
<goal>descriptor</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>animal-sniffer-maven-plugin</artifactId>
Expand Down Expand Up @@ -352,29 +329,6 @@
<model>src/main/mdo/rule.mdo</model>
</models>
<version>2.0.0</version>
<useJava5>true</useJava5>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>mrm-maven-plugin</artifactId>
<version>1.3.0</version>
<executions>
<execution>
<goals>
<goal>start</goal>
<goal>stop</goal>
</goals>
</execution>
</executions>
<configuration>
<propertyName>repository.proxy.url</propertyName>
<repositories>
<mockRepo>
<source>src/it-repo</source>
</mockRepo>
<proxyRepo />
</repositories>
</configuration>
</plugin>
<plugin>
Expand Down Expand Up @@ -460,7 +414,32 @@
<id>run-its</id>
<build>
<defaultGoal>verify</defaultGoal>

<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>mrm-maven-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>start</goal>
<goal>stop</goal>
</goals>
</execution>
</executions>
<configuration>
<propertyName>repository.proxy.url</propertyName>
<repositories>
<mockRepo>
<source>src/it-repo</source>
</mockRepo>
<localRepo>
<source>${project.build.directory}/local-repo</source>
</localRepo>
<proxyRepo />
</repositories>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-invoker-plugin</artifactId>
Expand All @@ -469,7 +448,8 @@
<id>integration-test</id>
<goals>
<goal>install</goal>
<goal>run</goal>
<goal>integration-test</goal>
<goal>verify</goal>
</goals>
<configuration>
<streamLogs>false</streamLogs>
Expand All @@ -480,21 +460,6 @@
</plugin>
</plugins>
</build>
<reporting>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-invoker-plugin</artifactId>
<reportSets>
<reportSet>
<reports>
<report>report</report>
</reports>
</reportSet>
</reportSets>
</plugin>
</plugins>
</reporting>
</profile>
</profiles>
</project>
8 changes: 7 additions & 1 deletion src/site/site.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
<project xmlns="http://maven.apache.org/DECORATION/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/DECORATION/1.0.0 http://maven.apache.org/xsd/decoration-1.0.0.xsd">
<project xmlns="http://maven.apache.org/DECORATION/1.8.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/DECORATION/1.8.0 http://maven.apache.org/xsd/decoration-1.8.0.xsd">
<body>
<breadcrumbs>
<item name="MojoHaus" href="https://www.mojohaus.org/"/>
<item name="${this.name}" href="${this.url}" />
</breadcrumbs>

<menu name="Overview">
<item name="Introduction" href="index.html"/>
<item name="Goals" href="plugin-info.html"/>
Expand Down

0 comments on commit 6d3c6e4

Please sign in to comment.