added conditional AMP check
This commit is contained in:
@@ -217,6 +217,27 @@
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
<!-- This plugin checks for an AMP file produced during the package phase -->
|
||||
<plugin>
|
||||
<groupId>com.inteligr8</groupId>
|
||||
<artifactId>conditional-maven-plugin</artifactId>
|
||||
<version>1.0.1</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>check-amp-file</id>
|
||||
<phase>package</phase>
|
||||
<goals>
|
||||
<goal>file-existence</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<file>${project.build.directory}/${project.artifactId}-${project.version}.amp</file>
|
||||
<trueValue>false</trueValue>
|
||||
<falseValue>true</falseValue>
|
||||
<newProperty>beedk.noAmp</newProperty>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
<!-- This plugin enables/disables the AMP file during the install/deploy phases -->
|
||||
<plugin>
|
||||
<groupId>org.codehaus.mojo</groupId>
|
||||
@@ -225,7 +246,7 @@
|
||||
<executions>
|
||||
<execution>
|
||||
<id>attach-amp</id>
|
||||
<phase>package</phase>
|
||||
<phase>verify</phase>
|
||||
<goals>
|
||||
<goal>attach-artifact</goal>
|
||||
</goals>
|
||||
@@ -236,7 +257,7 @@
|
||||
<file>${project.build.directory}/${project.artifactId}-${project.version}.amp</file>
|
||||
</artifact>
|
||||
</artifacts>
|
||||
<skipAttach>${beedk.jar.notest.empty}</skipAttach>
|
||||
<skipAttach>${beedk.noAmp}</skipAttach>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
|
Reference in New Issue
Block a user