ECOM/EAR/pom.xml

From air
Jump to navigation Jump to search
<?xml version="1.0" encoding="UTF-8"?>
<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/xsd/maven-4.0.0.xsd">
	<modelVersion>4.0.0</modelVersion>

	<groupId>fr.polytech-grenoble.ricm.ecom</groupId>
	<artifactId>ecom</artifactId>
	<version>0.1.0-SNAPSHOT</version>
	<packaging>ear</packaging>

	<name>ecom</name>

	<properties>
		<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
	</properties>

	<dependencies>
		<dependency>
			<groupId>${project.groupId}</groupId>
			<artifactId>${project.artifactId}ejb</artifactId>
			<version>${project.version}</version>
			<type>ejb</type>

		</dependency>
		<dependency>
			<groupId>${project.groupId}</groupId>
			<artifactId>${project.artifactId}web</artifactId>
			<version>${project.version}</version>
			<type>war</type>
		</dependency>
	</dependencies>


	<build>
		<plugins>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-compiler-plugin</artifactId>
				<version>3.1</version>
				<configuration>
					<source>1.6</source>
					<target>1.6</target>
				</configuration>
			</plugin>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-ear-plugin</artifactId>
				<version>2.8</version>
				<configuration>
					<version>6</version>
					<defaultLibBundleDir>lib</defaultLibBundleDir>

					<displayName>EAR for ${project.artifactId}</displayName>
					<description>EAR for ${project.artifactId}</description>

					<modules>
						<ejbModule>
							<groupId>${project.groupId}</groupId>
							<artifactId>${project.artifactId}ejb</artifactId>
							<bundleFileName>${project.artifactId}ejb-${project.version}.jar</bundleFileName>
						</ejbModule>

						<webModule>
							<groupId>${project.groupId}</groupId>
							<artifactId>${project.artifactId}web</artifactId>
							<contextRoot>/${project.artifactId}</contextRoot>
							<bundleFileName>${project.artifactId}web-${project.version}.war</bundleFileName>
						</webModule>
					</modules>
					<resourcesDir>${project.build.outputDirectory}</resourcesDir>
				</configuration>
			</plugin>
		</plugins>
	</build>

</project>