Make Docker build from Root Maven 17/92617/1
authorInstrumental <jonathan.gathman@att.com>
Fri, 2 Aug 2019 20:54:29 +0000 (15:54 -0500)
committerInstrumental <jonathan.gathman@att.com>
Fri, 2 Aug 2019 20:55:22 +0000 (15:55 -0500)
Issue-ID: AAF-917
Change-Id: Ieeac6254a626a4de42e6f082b727ec52fe9bb194
Signed-off-by: Instrumental <jonathan.gathman@att.com>
.gitignore
auth/docker/pom.xml
pom.xml

index 600c50d..8259e7e 100644 (file)
@@ -7,3 +7,4 @@
 .metadata/
 /cadisample/
 .classpath
+/bin/
index 540513e..add4e96 100644 (file)
@@ -32,7 +32,6 @@
     <artifactId>aaf-auth-docker</artifactId>
     <name>AAF Docker Build</name>
     <description>Docker Build</description>
-    <!-- Build Docker with "cd < this dir>; mvn -N exec:exec -Pbuild-docker -->
 
     <profiles>
         <profile>
@@ -52,6 +51,7 @@
                             </execution>
                         </executions>
                         <configuration>
+                            <skip>false</skip>
                             <executable>bash</executable>
                             <commandlineArgs>-c "pwd; bash dbuild.sh"</commandlineArgs>
                         </configuration>
diff --git a/pom.xml b/pom.xml
index 5e6c358..9937297 100644 (file)
--- a/pom.xml
+++ b/pom.xml
             <url>dav:${nexusproxy}${sitePath}</url>
         </site>
     </distributionManagement>
+
+    <profiles>
+        <profile>
+            <id>build-docker</id>
+            <build>
+                <plugins>
+                    <plugin>
+                        <groupId>org.codehaus.mojo</groupId>
+                        <artifactId>exec-maven-plugin</artifactId>
+                        <version>1.6.0</version>
+                        <executions>
+                            <execution>
+                                <id>Docker Build</id>
+                                <goals>
+                                    <goal>exec</goal>
+                                </goals>
+                            </execution>
+                        </executions>
+                        <configuration>
+                            <skip>true</skip>
+                            <executable>bash</executable>
+                            <commandlineArgs>echo "No Docker Here"</commandlineArgs>
+                        </configuration>
+                    </plugin>
+                    <plugin>
+                            <groupId>org.sonarsource.scanner.maven</groupId>
+                            <artifactId>sonar-maven-plugin</artifactId>
+                            <configuration>
+                                <skip>true</skip>
+                            </configuration>
+                    </plugin>
+                </plugins>
+            </build>
+
+            <modules>
+                <module>auth/docker</module>
+            </modules>
+        </profile>
+    </profiles>
 </project>