<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">
	<modelVersion>4.0.0</modelVersion>
	<groupId>com.test</groupId>
	<artifactId>project1</artifactId>
	<packaging>jar</packaging>
	<version>0.1.15-SNAPSHOT</version>
	<name>project1</name>

	<prerequisites>
		<maven>2.0.9</maven>
	</prerequisites>

	<build>
		<plugins>
			<plugin>
				<groupId>org.codehaus.mojo</groupId>
				<artifactId>build-helper-maven-plugin</artifactId>
				<version>1.1</version>
				<executions>
					<execution>
						<id>add-source</id>
						<phase>generate-sources</phase>
						<goals>
							<goal>add-source</goal>
						</goals>
						<configuration>
							<sources>
								<source>${basedir}/src/main/java</source>
								<source>${basedir}/src/gen/java</source>
							</sources>
						</configuration>
					</execution>
				</executions>
			</plugin>
			<plugin>
				<groupId>org.codehaus.mojo</groupId>
				<artifactId>aspectj-maven-plugin</artifactId>
				<configuration>
					<verbose>true</verbose>
					<privateScope>true</privateScope>
					<complianceLevel>1.5</complianceLevel>
				</configuration>
				<executions>
					<execution>
						<goals>
							<goal>compile</goal>
							<!-- use this goal to weave all your main classes -->
							<goal>test-compile</goal>
							<!-- use this goal to weave all your test classes -->
						</goals>
					</execution>
				</executions>
			</plugin>
			<plugin>
				<artifactId>maven-antrun-plugin</artifactId>
				<dependencies>
					<!-- 
						Cause of a bug in maven module management, plugin's classpath is not reset for each plugin.
					 	In the context of multiple modules when the plugin's classpath is set for a module, 
					 	it definitly not change for the other modules.
					-->
					<!-- uncomment this dependency to the global pom.xml run into a BUILD SUCCESSFUL
					<dependency>
						<groupId>sun</groupId>
						<artifactId>tools</artifactId>
						<version>1.0</version>
						<scope>system</scope>
						<systemPath>
							${java.home}/../lib/tools.jar
						</systemPath>
					</dependency>
					-->
					<dependency>
						<groupId>javax.jaxb</groupId>
						<artifactId>jaxb-api</artifactId>
						<version>2.1</version>
					</dependency>
					<dependency>
						<groupId>javax.jaxb</groupId>
						<artifactId>jaxb-impl</artifactId>
						<version>2.1.3</version>
					</dependency>
					<dependency>
						<groupId>javax.jaxb</groupId>
						<artifactId>jaxb-xjc</artifactId>
						<version>2.1.3</version>
					</dependency>
					<dependency>
						<groupId>javax.jaxb</groupId>
						<artifactId>jsr173</artifactId>
						<version>1.0</version>
					</dependency>
					<dependency>
						<groupId>javax.activation</groupId>
						<artifactId>activation</artifactId>
						<version>1.1</version>
					</dependency>
				</dependencies>
				<executions>
					<execution>
						<phase>generate-sources</phase>
						<configuration>
							<tasks>
								<taskdef name="xjc" classname="com.sun.tools.xjc.XJCTask">
									<classpath refid="maven.compile.classpath" />
								</taskdef>
								<delete dir="src/gen/java" />
								<mkdir dir="src/gen/java" />
								<echo message="compiling the xsd..." />
							</tasks>
						</configuration>
						<goals>
							<goal>run</goal>
						</goals>
					</execution>
				</executions>
			</plugin>
		</plugins>
	</build>

	<dependencies>

		<dependency>
			<groupId>aspectj</groupId>
			<artifactId>aspectjrt</artifactId>
			<version>1.6.0</version>
		</dependency>

		<dependency>
			<groupId>aspectj</groupId>
			<artifactId>aspectjweaver</artifactId>
			<version>1.6.0</version>
		</dependency>

	</dependencies>
</project>

