I am actually having a war project.

Steps I am doing are:
A.) process-resources phase unpack the war file and make all configurations for 
its deployment.
B.) using cargo deploy it to tomcat
C.) using axistools generate wsdl2java. It uses http urls which can be invoked 
once the war is deployed and output java stubs to 
${pom.build.directory}/generate-sources/it/cp. This is integration-test phase.
D.) Now I want to compile what is available in 
${pom.build.directory}/generate-sources/it/cp in integration-test phase. 
test-compile phase is well before integration-test phase. At that point I have 
no test files, and hence no compilation.
E.) After that in integration-test phase itself I want surefire to trigger 
testing with the files I generated in step D.

That was the reason I was trying to use integration-test or 
pre-integration-test for compiler plugin.

Will you be able to advice now?

Subir

-----Original Message-----
From: Stephen Connolly [mailto:[email protected]]
Sent: Tuesday, January 12, 2010 3:00 PM
To: Maven Users List
Subject: Re: Configure compiler plugin to compile at integration-test phase??

what's wrong with compiling in the test-compile phase?

2010/1/12  <[email protected]>:
> Hi,
>
> As part of automating Integration Tests for my project using, I am
> generating some source codes.
> To be specific i am using axistools wsdl2java goal to generated stubs.
> I want to compile those and my client which references these stubs
> before running integration tests. But now i dont know how i can make
> those generated java files to be compiled automatically in (or before)
> integration-test phase.
>
> This configuration of compiler plugin *does not* work.
>
>      <plugin>
>        <groupId>org.apache.maven.plugins</groupId>
>        <artifactId>maven-compiler-plugin</artifactId>
>        <executions>
>          <execution>
>      <id>compile-stubs-client</id>
>     <phase>integration-test</phase>
>            <goals>
>              <goal>testCompile</goal>
>            </goals>
>          </execution>
>        </executions>
>      </plugin>
>
> Axistools plugin configuration:
> <plugin>
>    <groupId>org.codehaus.mojo</groupId>
>    <artifactId>axistools-maven-plugin</artifactId>
>    <version>1.3</version>
>    <configuration>
>   <urls>
>
> <url>http://localhost:${port}/wsi/services/UploadSOServices33?wsdl</ur
> l>
>
> <url>http://localhost:${port}/wsi/services/ScheduleSOServices33?wsdl</
> ur
> l>
>
> <url>http://localhost:${port}/wsi/services/ServiceSOServices33?wsdl</u
> rl
>>
>
> <url>http://localhost:${port}/wsi/services/AuxiliarySOServices33?wsdl<
> /u
> rl>
>
> <url>http://localhost:${port}/wsi/services/SellableSOServices33?wsdl</
> ur
> l>
>   </urls>
>
> <outputDirectory>${pom.build.directory}/generate-sources/it/cp</output
> Di
> rectory>
>   <typeMappingVersion>1.2</typeMappingVersion>
>    </configuration>
>    <executions>
>     <execution>
>   <phase>integration-test</phase>
>     <goals>
>    <goal>wsdl2java</goal>
>     </goals>
>     </execution>
>    </executions>
>          <dependencies>
>      <dependency>
>          <groupId>javax.mail</groupId>
>          <artifactId>mail</artifactId>
>          <version>${javax.mail.version}</version>
>      </dependency>
>      <dependency>
>          <groupId>javax.activation</groupId>
>          <artifactId>activation</artifactId>
>          <version>${javax.activation.version}</version>
>      </dependency>
>          </dependencies>
>  </plugin>
>
> Any clues?
>
> --
> Subir
>
>
> Please do not print this email unless it is absolutely necessary.
>
> The information contained in this electronic message and any attachments to 
> this message are intended for the exclusive use of the addressee(s) and may 
> contain proprietary, confidential or privileged information. If you are not 
> the intended recipient, you should not disseminate, distribute or copy this 
> e-mail. Please notify the sender immediately and destroy all copies of this 
> message and any attachments.
>
> WARNING: Computer viruses can be transmitted via email. The recipient should 
> check this email and any attachments for the presence of viruses. The company 
> accepts no liability for any damage caused by any virus transmitted by this 
> email.
>
> www.wipro.com
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]


Please do not print this email unless it is absolutely necessary. 

The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destroy all copies of this message and 
any attachments. 

WARNING: Computer viruses can be transmitted via email. The recipient should 
check this email and any attachments for the presence of viruses. The company 
accepts no liability for any damage caused by any virus transmitted by this 
email. 

www.wipro.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to