Skip to content

Commit

Permalink
Cleanup project
Browse files Browse the repository at this point in the history
- use common configurations and plugin versions from parent
- add me as developer
- maven core artifacts in provided scope
- execute IT tests in parallel
  • Loading branch information
slawekjaranowski committed Jul 10, 2022
1 parent a4938ad commit 5e7a51c
Showing 1 changed file with 22 additions and 34 deletions.
56 changes: 22 additions & 34 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,12 @@

<name>Exec Maven Plugin</name>
<description>A plugin to allow execution of system and Java programs</description>
<url>http://www.mojohaus.org/exec-maven-plugin</url>
<url>https://www.mojohaus.org/exec-maven-plugin</url>
<inceptionYear>2005</inceptionYear>

<prerequisites>
<maven>${mavenVersion}</maven>
</prerequisites>
<issueManagement>
<system>GitHub</system>
<url>https://github.com/mojohaus/exec-maven-plugin/issues/</url>
</issueManagement>
<ciManagement>
<system>Travis-CI</system>
<url>https://travis-ci.org/mojohaus/exec-maven-plugin</url>
</ciManagement>

<developers>
<developer>
Expand Down Expand Up @@ -62,6 +55,12 @@
<email>khmarbaise@apache.org</email>
<timezone>Europe/Berlin</timezone>
</developer>
<developer>
<id>sjaranowski</id>
<name>Slawomir Jaranowski</name>
<email>sjaranowski@apache.org</email>
<timezone>Europe/Warsaw</timezone>
</developer>
</developers>

<contributors>
Expand Down Expand Up @@ -94,15 +93,15 @@
<licenses>
<license>
<name>Apache License 2</name>
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
<url>https://www.apache.org/licenses/LICENSE-2.0.txt</url>
<distribution>repo</distribution>
</license>
</licenses>

<scm>
<connection>scm:git:https://github.com/mojohaus/exec-maven-plugin.git</connection>
<developerConnection>scm:git:ssh://git@github.com/mojohaus/exec-maven-plugin.git</developerConnection>
<url>https://github.com/mojohaus/exec-maven-plugin</url>
<url>https://github.com/mojohaus/exec-maven-plugin/tree/master</url>
<tag>HEAD</tag>
</scm>

Expand All @@ -111,22 +110,26 @@
<groupId>org.apache.maven</groupId>
<artifactId>maven-model</artifactId>
<version>${mavenVersion}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-artifact</artifactId>
<version>${mavenVersion}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-core</artifactId>
<version>${mavenVersion}</version>
<scope>provided</scope>
</dependency>

<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-plugin-api</artifactId>
<version>${mavenVersion}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.codehaus.plexus</groupId>
Expand All @@ -137,7 +140,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 @@ -188,6 +190,7 @@
<groupId>org.slf4j</groupId>
<artifactId>slf4j-simple</artifactId>
<version>${slf4j.version}</version>
<scope>test</scope>
</dependency>
</dependencies>

Expand All @@ -201,30 +204,15 @@
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.10.1</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.4.0</version>
<configuration>
<detectLinks>false</detectLinks>
<detectJavaApiLink>false</detectJavaApiLink>
<detectOfflineLinks>false</detectOfflineLinks>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>3.0.1</version>
<configuration>
<!-- Temporary solution to get a release out using gpg version 1 -->
<useAgent>false</useAgent>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-plugin-plugin</artifactId>
Expand All @@ -242,11 +230,11 @@
</plugin>
</plugins>
</pluginManagement>

<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>animal-sniffer-maven-plugin</artifactId>
<version>1.21</version>
<executions>
<execution>
<goals>
Expand Down Expand Up @@ -281,7 +269,6 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>3.3.0</version>
<executions>
<execution>
<id>copy-test-deps</id>
Expand Down Expand Up @@ -365,7 +352,6 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-invoker-plugin</artifactId>
<version>3.3.0</version>
<configuration>
<addTestClassPath>true</addTestClassPath>
<localRepositoryPath>${project.build.directory}/local-repo</localRepositoryPath>
Expand All @@ -375,11 +361,10 @@
<preBuildHookScript>setup</preBuildHookScript>
<postBuildHookScript>verify</postBuildHookScript>
<settingsFile>src/it/mrm/settings.xml</settingsFile>
<parallelThreads>1C</parallelThreads>
<properties>
<maven.compiler.source>${mojo.java.target}</maven.compiler.source>
<maven.compiler.target>${mojo.java.target}</maven.compiler.target>
<!-- e.g. ensure that Java7 picks up TLSv1.2 when connecting with Central -->
<https.protocols>${https.protocols}</https.protocols>
</properties>
<filterProperties>
<mrm.repository.url>${mrm.repository.url}</mrm.repository.url>
Expand All @@ -389,15 +374,15 @@
<execution>
<goals>
<goal>install</goal>
<goal>run</goal>
<goal>integration-test</goal>
<goal>verify</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>mrm-maven-plugin</artifactId>
<version>1.4.1</version>
<executions>
<execution>
<goals>
Expand All @@ -411,6 +396,9 @@
<mockRepo>
<source>src/it/mrm/repository</source>
</mockRepo>
<localRepo>
<source>${project.build.directory}/local-repo</source>
</localRepo>
<proxyRepo />
</repositories>
</configuration>
Expand Down

0 comments on commit 5e7a51c

Please sign in to comment.