You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-commits@axis.apache.org by ve...@apache.org on 2012/06/24 14:56:47 UTC

svn commit: r1353259 - /axis/axis2/java/core/trunk/modules/jaxbri/pom.xml

Author: veithen
Date: Sun Jun 24 12:56:46 2012
New Revision: 1353259

URL: http://svn.apache.org/viewvc?rev=1353259&view=rev
Log:
Make the generated sources known to Maven (and thereby to Eclipse).

Modified:
    axis/axis2/java/core/trunk/modules/jaxbri/pom.xml

Modified: axis/axis2/java/core/trunk/modules/jaxbri/pom.xml
URL: http://svn.apache.org/viewvc/axis/axis2/java/core/trunk/modules/jaxbri/pom.xml?rev=1353259&r1=1353258&r2=1353259&view=diff
==============================================================================
--- axis/axis2/java/core/trunk/modules/jaxbri/pom.xml (original)
+++ axis/axis2/java/core/trunk/modules/jaxbri/pom.xml Sun Jun 24 12:56:46 2012
@@ -102,10 +102,11 @@
                     <execution>
                         <id>gen-ts</id>
                         <phase>generate-test-sources</phase>
+                        <goals>
+                            <goal>run</goal>
+                        </goals>
                         <configuration>
                             <tasks unless="maven.test.skip">
-                                <property name="axis2.home" value="${basedir}/target" />
-                                <property name="maven.class.path" refid="maven.runtime.classpath" />
                                 <!-- Theres got to be a better way to do this -->
                                 <property name="schema.source.dir" value="src/test/xsd" />
                                 <property name="wsdl.source.dir" value="src/test/wsdl" />
@@ -127,14 +128,24 @@
                                 <java classname="org.apache.axis2.wsdl.WSDL2Java" fork="true">
                                     <classpath refid="maven.runtime.classpath" />
                                     <classpath location="${compiled.classes.dir}" />
-                                    <arg line="-d jaxbri -ss -sd -t -o target/wsdl/Test01 -u -uri ${wsdl.source.dir}/Test01.wsdl" />
+                                    <arg line="-d jaxbri -ss -sd -t -o ${project.build.directory}/gen/Test01 -u -uri ${wsdl.source.dir}/Test01.wsdl" />
                                 </java>
-                                <ant dir="target/wsdl/Test01" />
                             </tasks>
                         </configuration>
+                    </execution>
+                    <execution>
+                        <id>test-ant-scripts</id>
+                        <phase>test</phase>
                         <goals>
                             <goal>run</goal>
                         </goals>
+                        <configuration>
+                            <tasks unless="maven.test.skip">
+                                <property name="axis2.home" value="${basedir}/target" />
+                                <property name="maven.class.path" refid="maven.runtime.classpath" />
+                                <ant dir="${project.build.directory}/gen/Test01" />
+                            </tasks>
+                        </configuration>
                     </execution>
                 </executions>
             </plugin>
@@ -150,7 +161,8 @@
                         </goals>
                         <configuration>
                             <sources>
-                                <source>${basedir}/target/schema/src</source>
+                                <source>${project.build.directory}/schema/src</source>
+                                <source>${project.build.directory}/gen/Test01/src</source>
                             </sources>
                         </configuration>
                     </execution>