Author: veithen
Date: Mon Feb 12 11:11:24 2018
New Revision: 1823943

URL: http://svn.apache.org/viewvc?rev=1823943&view=rev
Log:
Use alta-maven-plugin to configure AspectJ weaver in transport tests.

Modified:
    axis/axis2/java/core/trunk/modules/transport/jms/pom.xml
    axis/axis2/java/core/trunk/modules/transport/mail/pom.xml

Modified: axis/axis2/java/core/trunk/modules/transport/jms/pom.xml
URL: 
http://svn.apache.org/viewvc/axis/axis2/java/core/trunk/modules/transport/jms/pom.xml?rev=1823943&r1=1823942&r2=1823943&view=diff
==============================================================================
--- axis/axis2/java/core/trunk/modules/transport/jms/pom.xml (original)
+++ axis/axis2/java/core/trunk/modules/transport/jms/pom.xml Mon Feb 12 
11:11:24 2018
@@ -43,24 +43,23 @@
     <build>
         <plugins>
             <plugin>
-                <groupId>org.apache.maven.plugins</groupId>
-                <artifactId>maven-dependency-plugin</artifactId>
+                <groupId>com.github.veithen.alta</groupId>
+                <artifactId>alta-maven-plugin</artifactId>
                 <executions>
                     <execution>
-                        <id>copy</id>
                         <phase>generate-test-resources</phase>
                         <goals>
-                            <goal>copy</goal>
+                            <goal>generate-properties</goal>
                         </goals>
                         <configuration>
-                            <stripVersion>true</stripVersion>
-                            <artifactItems>
-                                <artifactItem>
+                            <name>aspectjweaver</name>
+                            <value>%file%</value>
+                            <artifacts>
+                                <artifact>
                                     <groupId>org.aspectj</groupId>
                                     <artifactId>aspectjweaver</artifactId>
-                                    
<outputDirectory>target/lib</outputDirectory>
-                                </artifactItem>
-                            </artifactItems>
+                                </artifact>
+                            </artifacts>
                         </configuration>
                     </execution>
                 </executions>
@@ -75,7 +74,7 @@
                             <value>file:../../log4j.properties</value>
                         </property>
                     </systemProperties>
-                    <argLine>${argLine} 
-javaagent:target/lib/aspectjweaver.jar -Xms64m -Xmx128m</argLine>
+                    <argLine>${argLine} -javaagent:${aspectjweaver} -Xms64m 
-Xmx128m</argLine>
                 </configuration>
             </plugin>
             <plugin>

Modified: axis/axis2/java/core/trunk/modules/transport/mail/pom.xml
URL: 
http://svn.apache.org/viewvc/axis/axis2/java/core/trunk/modules/transport/mail/pom.xml?rev=1823943&r1=1823942&r2=1823943&view=diff
==============================================================================
--- axis/axis2/java/core/trunk/modules/transport/mail/pom.xml (original)
+++ axis/axis2/java/core/trunk/modules/transport/mail/pom.xml Mon Feb 12 
11:11:24 2018
@@ -64,24 +64,23 @@
                 </configuration>
             </plugin>
             <plugin>
-                <groupId>org.apache.maven.plugins</groupId>
-                <artifactId>maven-dependency-plugin</artifactId>
+                <groupId>com.github.veithen.alta</groupId>
+                <artifactId>alta-maven-plugin</artifactId>
                 <executions>
                     <execution>
-                        <id>copy</id>
                         <phase>generate-test-resources</phase>
                         <goals>
-                            <goal>copy</goal>
+                            <goal>generate-properties</goal>
                         </goals>
                         <configuration>
-                            <stripVersion>true</stripVersion>
-                            <artifactItems>
-                                <artifactItem>
+                            <name>aspectjweaver</name>
+                            <value>%file%</value>
+                            <artifacts>
+                                <artifact>
                                     <groupId>org.aspectj</groupId>
                                     <artifactId>aspectjweaver</artifactId>
-                                    
<outputDirectory>target/lib</outputDirectory>
-                                </artifactItem>
-                            </artifactItems>
+                                </artifact>
+                            </artifacts>
                         </configuration>
                     </execution>
                 </executions>
@@ -100,7 +99,7 @@
                             <value>target/cobertura.ser</value>
                         </property>
                     </systemProperties>
-                    <argLine>${argLine} 
-javaagent:target/lib/aspectjweaver.jar -Xms64m -Xmx128m</argLine>
+                    <argLine>${argLine} -javaagent:${aspectjweaver} -Xms64m 
-Xmx128m</argLine>
                 </configuration>
             </plugin>
         </plugins>


Reply via email to