Thanks for the clue. I reordered the logic of execution phase by phase, such that I do all the required things before test-compile phase. I was trying to do everything in pre-integration-test phase, and running into those problems.
Thanks Subir -----Original Message----- From: Stephen Connolly [mailto:stephen.alan.conno...@gmail.com] 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 <subir.sasiku...@wipro.com>: > 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: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org 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: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org