Hi, I have following requirement. I have a project, in which I have one source folder which contains a code generator (run with apt), another source folder which contains code, which is processed by the generator from folder 1, and a third folder that relies on the code generated by the second folder. Therefor I need two compilation executions after each other, one for the generator and one for the generated code. Is this possible with maven?
thanx in advance My pom file sofar: <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <parent> <groupId>net.anotheria</groupId> <artifactId>parent</artifactId> <version>1.1</version> </parent> <modelVersion>4.0.0</modelVersion> <groupId>net.anotheria</groupId> <artifactId>distributeme</artifactId> <version>1.0.0-SNAPSHOT</version> <name>distributeme</name> <build> <plugins> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>build-helper-maven-plugin</artifactId> <executions> <execution> <id>add-source</id> <phase>generate-sources</phase> <goals> <goal>add-source</goal> </goals> <configuration> <sources> <source>${project.basedir}/src/java</source> <source>${project.basedir}/src/support</source> <source>${project.basedir}/test/java</source> </sources> </configuration> </execution> </executions> </plugin> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>apt-maven-plugin</artifactId> <version>1.0-alpha-3</version> <dependencies> <dependency> <groupId>org.jfrog.maven.annomojo</groupId> <artifactId>maven-plugin-tools-anno</artifactId> <version>1.3.1</version> <exclusions> <exclusion> <groupId>com.sun</groupId> <artifactId>tools</artifactId> </exclusion> </exclusions> </dependency> <dependency> <groupId>org.codehaus.mojo</groupId> <artifactId>cobertura-maven-plugin</artifactId> <version>${cobertura-plugin.version}</version> </dependency> </dependencies> <executions> <execution> <id>process</id> <goals> <goal>process</goal> </goals> <phase>generate-sources</phase> <configuration> <factory>org.distributeme.processors.GeneratorProcessorFactory</factory> <encoding>UTF-8</encoding> <verbose>true</verbose> <outputDirectory>${project.basedir}/generated/java</outputDirectory> </configuration> </execution> </executions> </plugin> </plugins> </build> <reporting> </reporting> <dependencies> <dependency> <groupId>net.anotheria</groupId> <artifactId>ano-util</artifactId> <version>1.0.0</version> </dependency> <dependency> <groupId>net.anotheria</groupId> <artifactId>ano-net</artifactId> <version>1.0.0</version> </dependency> <dependency> <groupId>net.anotheria</groupId> <artifactId>ano-prise</artifactId> <version>1.0.2</version> </dependency> <dependency> <groupId>net.anotheria</groupId> <artifactId>configureme</artifactId> <version>1.0.0</version> </dependency> <dependency> <groupId>javax.servlet</groupId> <artifactId>servlet-api</artifactId> <version>2.5</version> <scope>provided</scope> </dependency> <dependency> <groupId>jdom</groupId> <artifactId>jdom</artifactId> <version>0.7</version> </dependency> <dependency> <groupId>com.sun</groupId> <artifactId>tools</artifactId> <version>1.6</version> <scope>provided</scope> </dependency> </dependencies> <scm> <url>svn:svn://svn.anotheria.net/opensource/distributeme/trunk</url> <connection>scm:svn:svn://svn.anotheria.net/opensource/distributeme/trunk</connection> <developerConnection>scm:svn:svn://svn.anotheria.net/opensource/distributeme/trunk</developerConnection> </scm> </project> --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
