pom.xml 2.88 KB
<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>
	<artifactId>moya-ear</artifactId>
	<packaging>ear</packaging>

	<build>
		<plugins>
			<plugin>
				<artifactId>maven-ear-plugin</artifactId>
				<version>2.10.1</version>
				<configuration>
					<applicationName>Moya</applicationName>
					<earSourceDirectory>EarContent</earSourceDirectory>
					<generateApplicationXml>true</generateApplicationXml>
					<version>7</version>
					<defaultLibBundleDir>lib</defaultLibBundleDir>
					<modules>


						<ejbModule>
							<groupId>fi.codecrew.moya</groupId>
							<artifactId>moya-beans</artifactId>
						</ejbModule>
						<webModule>
							<groupId>fi.codecrew.moya</groupId>
							<artifactId>moya-web</artifactId>
							<contextRoot>/MoyaWeb</contextRoot>
						</webModule>
						<webModule>
							<groupId>fi.codecrew.moya</groupId>
							<artifactId>moya-mgmt</artifactId>
							<contextRoot>/mgmt</contextRoot>
						</webModule>
						<webModule>
							<groupId>fi.codecrew.moya</groupId>
							<artifactId>moya-angular</artifactId>
							<contextRoot>/MoyaNG</contextRoot>
						</webModule>
						<webModule>
							<groupId>fi.codecrew.moya</groupId>
							<artifactId>moya-terminal-web</artifactId>
							<contextRoot>/terminal</contextRoot>
						</webModule>
					</modules>
				</configuration>
			</plugin>
		</plugins>
	</build>

	<dependencies>

		<dependency>
			<groupId>fi.codecrew.moya</groupId>
			<artifactId>moya-beans</artifactId>
			<version>1.2-SNAPSHOT</version>
			<type>ejb</type>
		</dependency>
		<dependency>
			<groupId>fi.codecrew.moya</groupId>
			<artifactId>moya-web</artifactId>
			<version>1.2-SNAPSHOT</version>
			<type>war</type>
		</dependency>
		<dependency>
			<groupId>fi.codecrew.moya</groupId>
			<artifactId>moya-mgmt</artifactId>
			<version>1.2-SNAPSHOT</version>
			<type>war</type>
		</dependency>

		<dependency>
			<groupId>fi.codecrew.moya</groupId>
			<artifactId>moya-angular</artifactId>
			<version>1.2-SNAPSHOT</version>
			<type>war</type>
		</dependency>

		<dependency>
			<groupId>fi.codecrew.moya</groupId>
			<artifactId>moya-terminal-web</artifactId>
			<version>1.2-SNAPSHOT</version>
			<type>war</type>
		</dependency>
	</dependencies>


	<parent>
		<groupId>fi.codecrew.moya</groupId>
		<artifactId>moya-parent</artifactId>
		<relativePath>../moya-parent/pom.xml</relativePath>
		<version>1.2-SNAPSHOT</version>
	</parent>

	<profiles>
		<profile>
			<id>exploded</id>
			<build>
				<plugins>
					<plugin>
						<groupId>org.apache.maven.plugins</groupId>
						<artifactId>maven-ear-plugin</artifactId>
						<configuration>
							<unpackTypes>war,ejb</unpackTypes>
						</configuration>
					</plugin>
				</plugins>
			</build>
		</profile>
	</profiles>

</project>