Skip to content

Commit

Permalink
move <prerequisites> to plugin project (#131)
Browse files Browse the repository at this point in the history
resolves this warning

```
[INFO] Scanning for projects...
[WARNING] The project com.spotify:missinglink-parent:pom:0.2.3-SNAPSHOT uses prerequisites which is only intended for maven-plugin projects but not for non maven-plugin projects. For such purposes you should use the maven-enforcer-plugin. See https://maven.apache.org/enforcer/enforcer-rules/requireMavenVersion.html
```
  • Loading branch information
mattnworb committed Feb 23, 2021
1 parent 96de2c1 commit 205d915
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 4 deletions.
4 changes: 4 additions & 0 deletions maven-plugin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@
<maven.api.version>3.3.3</maven.api.version>
</properties>

<prerequisites>
<maven>3.0</maven>
</prerequisites>

<dependencies>
<dependency>
<groupId>com.spotify</groupId>
Expand Down
24 changes: 20 additions & 4 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,6 @@
</repository>
</distributionManagement>

<prerequisites>
<maven>3.0</maven>
</prerequisites>

<build>
<pluginManagement>
<plugins>
Expand All @@ -120,6 +116,26 @@
</plugins>
</pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<version>3.0.0-M3</version>
<executions>
<execution>
<id>enforce-maven</id>
<goals>
<goal>enforce</goal>
</goals>
<configuration>
<rules>
<requireMavenVersion>
<version>3.0</version>
</requireMavenVersion>
</rules>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
Expand Down

0 comments on commit 205d915

Please sign in to comment.