Skip to content
This repository has been archived by the owner on Jul 23, 2024. It is now read-only.

Commit

Permalink
Fix: squash dupicated declaration of maven-clean-plugin
Browse files Browse the repository at this point in the history
When executing command `mvn` goals the following warning come up:

```
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for dev.parodos:notification-service:jar:1.0.5-SNAPSHOT
[WARNING] 'build.plugins.plugin.(groupId:artifactId)' must be unique but found duplicate declaration of plugin org.apache.maven.plugins:maven-clean-plugin @ dev.parodos:notification-service:${revision}, /home/gloria/repos/parodos/notification-service/pom.xml, line 249, column 21
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]
```

Signed-off-by: Gloria Ciavarrini <[email protected]>
  • Loading branch information
gciavarrini authored and pkliczewski committed Apr 18, 2023
1 parent 0848454 commit 3d3a69c
Showing 1 changed file with 22 additions and 28 deletions.
50 changes: 22 additions & 28 deletions notification-service/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,28 @@
<artifactId>maven-clean-plugin</artifactId>
<version>2.5</version>
<executions>
<execution>
<id>auto-clean</id>
<phase>clean</phase>
<goals>
<goal>clean</goal>
</goals>
<configuration>
<filesets>
<fileset>
<directory>${project.parent.basedir}/notification-service-sdk</directory>
<includes>
<include>**</include>
</includes>
<excludes>
<exclude>.openapi-generator-ignore</exclude>
<exclude>pom.xml</exclude>
</excludes>
<followSymlinks>false</followSymlinks>
</fileset>
</filesets>
</configuration>
</execution>
<execution>
<id>clean-openapi-json</id>
<phase>clean</phase>
Expand Down Expand Up @@ -246,34 +268,6 @@
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-clean-plugin</artifactId>
<version>2.5</version>
<executions>
<execution>
<id>auto-clean</id>
<phase>clean</phase>
<goals>
<goal>clean</goal>
</goals>
<configuration>
<filesets>
<fileset>
<directory>${project.parent.basedir}/notification-service-sdk</directory>
<includes>
<include>**</include>
</includes>
<excludes>
<exclude>.openapi-generator-ignore</exclude>
<exclude>pom.xml</exclude>
</excludes>
<followSymlinks>false</followSymlinks>
</fileset>
</filesets>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.openapitools</groupId>
<artifactId>openapi-generator-maven-plugin</artifactId>
Expand Down

0 comments on commit 3d3a69c

Please sign in to comment.