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