Author: [email protected]
Date: Mon Aug  8 11:14:49 2011
New Revision: 1279

Log:
[AMDATUAUTH-82] Fixed deploy of only the relevant artifacts

Modified:
   trunk/amdatu-auth/login-gadget/pom.xml
   trunk/amdatu-auth/login-service/pom.xml
   trunk/amdatu-auth/oauth-api/pom.xml
   trunk/amdatu-auth/oauth-client/pom.xml
   trunk/amdatu-auth/oauth-consumerregistry/pom.xml
   trunk/amdatu-auth/oauth-server/pom.xml
   trunk/amdatu-auth/oauth-stores/consumer-store-fs/pom.xml
   trunk/amdatu-auth/oauth-stores/nonce-store-mem/pom.xml
   trunk/amdatu-auth/pom.xml
   trunk/amdatu-auth/tokenprovider/pom.xml
   trunk/amdatu-auth/tokenstore-mem/pom.xml
   trunk/amdatu-auth/useradmin-gadget/pom.xml
   trunk/amdatu-auth/useradmin-rest/pom.xml

Modified: trunk/amdatu-auth/login-gadget/pom.xml
==============================================================================
--- trunk/amdatu-auth/login-gadget/pom.xml      (original)
+++ trunk/amdatu-auth/login-gadget/pom.xml      Mon Aug  8 11:14:49 2011
@@ -96,4 +96,24 @@
       </plugin>
     </plugins>
   </build>
+
+  <profiles>
+    <profile>
+      <!-- Profile that will copy the jar to the configured 
amdatu.deploy.directory when
+           the deploy profile is activated -->
+      <id>deploy</id>
+      <activation>
+        <activeByDefault>false</activeByDefault>
+      </activation>
+      <build>
+        <defaultGoal>install</defaultGoal>
+        <plugins>
+          <plugin>
+            <groupId>org.apache.maven.plugins</groupId>
+            <artifactId>maven-antrun-plugin</artifactId>
+          </plugin>
+        </plugins>
+      </build>
+    </profile>
+  </profiles>
 </project>

Modified: trunk/amdatu-auth/login-service/pom.xml
==============================================================================
--- trunk/amdatu-auth/login-service/pom.xml     (original)
+++ trunk/amdatu-auth/login-service/pom.xml     Mon Aug  8 11:14:49 2011
@@ -80,8 +80,26 @@
           </instructions>
         </configuration>
       </plugin>
-
     </plugins>
-
   </build>
+
+  <profiles>
+    <profile>
+      <!-- Profile that will copy the jar to the configured 
amdatu.deploy.directory when
+           the deploy profile is activated -->
+      <id>deploy</id>
+      <activation>
+        <activeByDefault>false</activeByDefault>
+      </activation>
+      <build>
+        <defaultGoal>install</defaultGoal>
+        <plugins>
+          <plugin>
+            <groupId>org.apache.maven.plugins</groupId>
+            <artifactId>maven-antrun-plugin</artifactId>
+          </plugin>
+        </plugins>
+      </build>
+    </profile>
+  </profiles>
 </project>

Modified: trunk/amdatu-auth/oauth-api/pom.xml
==============================================================================
--- trunk/amdatu-auth/oauth-api/pom.xml (original)
+++ trunk/amdatu-auth/oauth-api/pom.xml Mon Aug  8 11:14:49 2011
@@ -109,4 +109,24 @@
       </plugin>
     </plugins>
   </build>
+
+  <profiles>
+    <profile>
+      <!-- Profile that will copy the jar to the configured 
amdatu.deploy.directory when
+           the deploy profile is activated -->
+      <id>deploy</id>
+      <activation>
+        <activeByDefault>false</activeByDefault>
+      </activation>
+      <build>
+        <defaultGoal>install</defaultGoal>
+        <plugins>
+          <plugin>
+            <groupId>org.apache.maven.plugins</groupId>
+            <artifactId>maven-antrun-plugin</artifactId>
+          </plugin>
+        </plugins>
+      </build>
+    </profile>
+  </profiles>
 </project>

Modified: trunk/amdatu-auth/oauth-client/pom.xml
==============================================================================
--- trunk/amdatu-auth/oauth-client/pom.xml      (original)
+++ trunk/amdatu-auth/oauth-client/pom.xml      Mon Aug  8 11:14:49 2011
@@ -108,4 +108,24 @@
       </plugin>
     </plugins>
   </build>
+
+  <profiles>
+    <profile>
+      <!-- Profile that will copy the jar to the configured 
amdatu.deploy.directory when
+           the deploy profile is activated -->
+      <id>deploy</id>
+      <activation>
+        <activeByDefault>false</activeByDefault>
+      </activation>
+      <build>
+        <defaultGoal>install</defaultGoal>
+        <plugins>
+          <plugin>
+            <groupId>org.apache.maven.plugins</groupId>
+            <artifactId>maven-antrun-plugin</artifactId>
+          </plugin>
+        </plugins>
+      </build>
+    </profile>
+  </profiles>
 </project>

Modified: trunk/amdatu-auth/oauth-consumerregistry/pom.xml
==============================================================================
--- trunk/amdatu-auth/oauth-consumerregistry/pom.xml    (original)
+++ trunk/amdatu-auth/oauth-consumerregistry/pom.xml    Mon Aug  8 11:14:49 2011
@@ -122,4 +122,24 @@
       </plugin>
     </plugins>
   </build>
+
+  <profiles>
+    <profile>
+      <!-- Profile that will copy the jar to the configured 
amdatu.deploy.directory when
+           the deploy profile is activated -->
+      <id>deploy</id>
+      <activation>
+        <activeByDefault>false</activeByDefault>
+      </activation>
+      <build>
+        <defaultGoal>install</defaultGoal>
+        <plugins>
+          <plugin>
+            <groupId>org.apache.maven.plugins</groupId>
+            <artifactId>maven-antrun-plugin</artifactId>
+          </plugin>
+        </plugins>
+      </build>
+    </profile>
+  </profiles>
 </project>

Modified: trunk/amdatu-auth/oauth-server/pom.xml
==============================================================================
--- trunk/amdatu-auth/oauth-server/pom.xml      (original)
+++ trunk/amdatu-auth/oauth-server/pom.xml      Mon Aug  8 11:14:49 2011
@@ -132,4 +132,24 @@
       </plugin>
     </plugins>
   </build>
+
+  <profiles>
+    <profile>
+      <!-- Profile that will copy the jar to the configured 
amdatu.deploy.directory when
+           the deploy profile is activated -->
+      <id>deploy</id>
+      <activation>
+        <activeByDefault>false</activeByDefault>
+      </activation>
+      <build>
+        <defaultGoal>install</defaultGoal>
+        <plugins>
+          <plugin>
+            <groupId>org.apache.maven.plugins</groupId>
+            <artifactId>maven-antrun-plugin</artifactId>
+          </plugin>
+        </plugins>
+      </build>
+    </profile>
+  </profiles>
 </project>

Modified: trunk/amdatu-auth/oauth-stores/consumer-store-fs/pom.xml
==============================================================================
--- trunk/amdatu-auth/oauth-stores/consumer-store-fs/pom.xml    (original)
+++ trunk/amdatu-auth/oauth-stores/consumer-store-fs/pom.xml    Mon Aug  8 
11:14:49 2011
@@ -75,4 +75,24 @@
       </plugin>
     </plugins>
   </build>
+
+  <profiles>
+    <profile>
+      <!-- Profile that will copy the jar to the configured 
amdatu.deploy.directory when
+           the deploy profile is activated -->
+      <id>deploy</id>
+      <activation>
+        <activeByDefault>false</activeByDefault>
+      </activation>
+      <build>
+        <defaultGoal>install</defaultGoal>
+        <plugins>
+          <plugin>
+            <groupId>org.apache.maven.plugins</groupId>
+            <artifactId>maven-antrun-plugin</artifactId>
+          </plugin>
+        </plugins>
+      </build>
+    </profile>
+  </profiles>
 </project>

Modified: trunk/amdatu-auth/oauth-stores/nonce-store-mem/pom.xml
==============================================================================
--- trunk/amdatu-auth/oauth-stores/nonce-store-mem/pom.xml      (original)
+++ trunk/amdatu-auth/oauth-stores/nonce-store-mem/pom.xml      Mon Aug  8 
11:14:49 2011
@@ -59,4 +59,24 @@
       </plugin>
     </plugins>
   </build>
+
+  <profiles>
+    <profile>
+      <!-- Profile that will copy the jar to the configured 
amdatu.deploy.directory when
+           the deploy profile is activated -->
+      <id>deploy</id>
+      <activation>
+        <activeByDefault>false</activeByDefault>
+      </activation>
+      <build>
+        <defaultGoal>install</defaultGoal>
+        <plugins>
+          <plugin>
+            <groupId>org.apache.maven.plugins</groupId>
+            <artifactId>maven-antrun-plugin</artifactId>
+          </plugin>
+        </plugins>
+      </build>
+    </profile>
+  </profiles>
 </project>

Modified: trunk/amdatu-auth/pom.xml
==============================================================================
--- trunk/amdatu-auth/pom.xml   (original)
+++ trunk/amdatu-auth/pom.xml   Mon Aug  8 11:14:49 2011
@@ -347,6 +347,59 @@
             </execution>
           </executions>
         </plugin>
+
+        <!-- Plugin configuration for -Pdeploy -->
+        <plugin>
+          <groupId>org.apache.maven.plugins</groupId>
+          <artifactId>maven-antrun-plugin</artifactId>
+          <version>1.6</version>
+          <dependencies>
+            <dependency>
+              <groupId>ant-contrib</groupId>
+              <artifactId>ant-contrib</artifactId>
+              <version>1.0b3</version>
+              <exclusions>
+                <exclusion>
+                  <groupId>ant</groupId>
+                  <artifactId>ant</artifactId>
+                </exclusion>
+              </exclusions>
+            </dependency>
+            <dependency>
+              <groupId>org.apache.ant</groupId>
+              <artifactId>ant-nodeps</artifactId>
+              <version>1.8.1</version>
+            </dependency>
+          </dependencies>
+          <executions>
+            <execution>
+              <phase>install</phase>
+              <goals>
+                <goal>run</goal>
+              </goals>
+              <configuration>
+                <target>
+                  <taskdef resource="net/sf/antcontrib/antcontrib.properties" 
classpathref="maven.compile.classpath" />
+                  <available 
file="${project.build.directory}/${project.build.finalName}.jar" 
property="fileExists" value="true" />
+                  <if>
+                    <isset property="fileExists" />
+                    <then>
+                      <if>
+                        <isset property="amdatu.deploy.directory" />
+                        <then>
+                          <copy 
file="${project.build.directory}/${project.build.finalName}.jar" 
tofile="${amdatu.deploy.directory}/${project.artifactId}-${project.version}.jar"
 overwrite="true" />
+                        </then>
+                        <else>
+                          <echo message="Property amdatu.deploy.directory not 
defined, skipping copy to deploy dir task" />
+                        </else>
+                      </if>
+                    </then>
+                  </if>
+                </target>
+              </configuration>
+            </execution>
+          </executions>
+        </plugin>
       </plugins>
     </pluginManagement>
   </build>
@@ -379,57 +432,7 @@
       <build>
         <defaultGoal>install</defaultGoal>
         <plugins>
-          <plugin>
-            <groupId>org.apache.maven.plugins</groupId>
-            <artifactId>maven-antrun-plugin</artifactId>
-            <version>1.6</version>
-            <dependencies>
-              <dependency>
-                <groupId>ant-contrib</groupId>
-                <artifactId>ant-contrib</artifactId>
-                <version>1.0b3</version>
-                <exclusions>
-                  <exclusion>
-                    <groupId>ant</groupId>
-                    <artifactId>ant</artifactId>
-                  </exclusion>
-                </exclusions>
-              </dependency>
-              <dependency>
-                <groupId>org.apache.ant</groupId>
-                <artifactId>ant-nodeps</artifactId>
-                <version>1.8.1</version>
-              </dependency>
-            </dependencies>
-            <executions>
-              <execution>
-                <phase>install</phase>
-                <goals>
-                  <goal>run</goal>
-                </goals>
-                <configuration>
-                  <target>
-                    <taskdef 
resource="net/sf/antcontrib/antcontrib.properties" 
classpathref="maven.compile.classpath" />
-                    <available 
file="${project.build.directory}/${project.build.finalName}.jar" 
property="fileExists" value="true" />
-                    <if>
-                      <isset property="fileExists" />
-                      <then>
-                        <if>
-                          <isset property="amdatu.deploy.directory" />
-                          <then>
-                            <copy 
file="${project.build.directory}/${project.build.finalName}.jar" 
tofile="${amdatu.deploy.directory}/${project.artifactId}-${project.version}.jar"
 overwrite="true" />
-                          </then>
-                          <else>
-                            <echo message="Property amdatu.deploy.directory 
not defined, skipping copy to deploy dir task" />
-                          </else>
-                        </if>
-                      </then>
-                    </if>
-                  </target>
-                </configuration>
-              </execution>
-            </executions>
-          </plugin>
+
         </plugins>
       </build>
     </profile>

Modified: trunk/amdatu-auth/tokenprovider/pom.xml
==============================================================================
--- trunk/amdatu-auth/tokenprovider/pom.xml     (original)
+++ trunk/amdatu-auth/tokenprovider/pom.xml     Mon Aug  8 11:14:49 2011
@@ -73,4 +73,24 @@
       </plugin>
     </plugins>
   </build>
+
+  <profiles>
+    <profile>
+      <!-- Profile that will copy the jar to the configured 
amdatu.deploy.directory when
+           the deploy profile is activated -->
+      <id>deploy</id>
+      <activation>
+        <activeByDefault>false</activeByDefault>
+      </activation>
+      <build>
+        <defaultGoal>install</defaultGoal>
+        <plugins>
+          <plugin>
+            <groupId>org.apache.maven.plugins</groupId>
+            <artifactId>maven-antrun-plugin</artifactId>
+          </plugin>
+        </plugins>
+      </build>
+    </profile>
+  </profiles>
 </project>

Modified: trunk/amdatu-auth/tokenstore-mem/pom.xml
==============================================================================
--- trunk/amdatu-auth/tokenstore-mem/pom.xml    (original)
+++ trunk/amdatu-auth/tokenstore-mem/pom.xml    Mon Aug  8 11:14:49 2011
@@ -54,4 +54,24 @@
       </plugin>
     </plugins>
   </build>
+
+  <profiles>
+    <profile>
+      <!-- Profile that will copy the jar to the configured 
amdatu.deploy.directory when
+           the deploy profile is activated -->
+      <id>deploy</id>
+      <activation>
+        <activeByDefault>false</activeByDefault>
+      </activation>
+      <build>
+        <defaultGoal>install</defaultGoal>
+        <plugins>
+          <plugin>
+            <groupId>org.apache.maven.plugins</groupId>
+            <artifactId>maven-antrun-plugin</artifactId>
+          </plugin>
+        </plugins>
+      </build>
+    </profile>
+  </profiles>
 </project>

Modified: trunk/amdatu-auth/useradmin-gadget/pom.xml
==============================================================================
--- trunk/amdatu-auth/useradmin-gadget/pom.xml  (original)
+++ trunk/amdatu-auth/useradmin-gadget/pom.xml  Mon Aug  8 11:14:49 2011
@@ -94,4 +94,24 @@
       </plugin>
     </plugins>
   </build>
+
+  <profiles>
+    <profile>
+      <!-- Profile that will copy the jar to the configured 
amdatu.deploy.directory when
+           the deploy profile is activated -->
+      <id>deploy</id>
+      <activation>
+        <activeByDefault>false</activeByDefault>
+      </activation>
+      <build>
+        <defaultGoal>install</defaultGoal>
+        <plugins>
+          <plugin>
+            <groupId>org.apache.maven.plugins</groupId>
+            <artifactId>maven-antrun-plugin</artifactId>
+          </plugin>
+        </plugins>
+      </build>
+    </profile>
+  </profiles>
 </project>

Modified: trunk/amdatu-auth/useradmin-rest/pom.xml
==============================================================================
--- trunk/amdatu-auth/useradmin-rest/pom.xml    (original)
+++ trunk/amdatu-auth/useradmin-rest/pom.xml    Mon Aug  8 11:14:49 2011
@@ -103,4 +103,24 @@
       </plugin>
     </plugins>
   </build>
+
+  <profiles>
+    <profile>
+      <!-- Profile that will copy the jar to the configured 
amdatu.deploy.directory when
+           the deploy profile is activated -->
+      <id>deploy</id>
+      <activation>
+        <activeByDefault>false</activeByDefault>
+      </activation>
+      <build>
+        <defaultGoal>install</defaultGoal>
+        <plugins>
+          <plugin>
+            <groupId>org.apache.maven.plugins</groupId>
+            <artifactId>maven-antrun-plugin</artifactId>
+          </plugin>
+        </plugins>
+      </build>
+    </profile>
+  </profiles>
 </project>
_______________________________________________
Amdatu-commits mailing list
[email protected]
http://lists.amdatu.org/mailman/listinfo/amdatu-commits

Reply via email to