Skip to content

Commit

Permalink
Print a warning when building the jar without "build-jar" profile
Browse files Browse the repository at this point in the history
  • Loading branch information
zentol committed Dec 5, 2017
1 parent 1579bba commit 88a30fd
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 0 deletions.
Expand Up @@ -153,6 +153,32 @@ under the License.
</dependency>
</dependencies>
</profile>
<profile>
<id>print-warning</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<build>
<plugins>
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<phase>prepare-package</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<tasks>
<echo>It is recommended use the "build-jar" profile to create a jar.</echo>
</tasks>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>

<build>
Expand Down
Expand Up @@ -164,6 +164,32 @@ under the License.
</dependency>
</dependencies>
</profile>
<profile>
<id>print-warning</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<build>
<plugins>
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<phase>prepare-package</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<tasks>
<echo>It is recommended use the "build-jar" profile to create a jar.</echo>
</tasks>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>

<build>
Expand Down

0 comments on commit 88a30fd

Please sign in to comment.