Created
March 23, 2015 12:37
-
-
Save banterCZ/0628ced7227c62e5a0bc to your computer and use it in GitHub Desktop.
maven multi-module build sample
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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> | |
<parent> | |
<artifactId>parent</artifactId> | |
<groupId>cz.zvestov.mvn-multimodule-sample</groupId> | |
<version>1.0.0-SNAPSHOT</version> | |
</parent> | |
<artifactId>web</artifactId> | |
<packaging>war</packaging> | |
<dependencies> | |
<dependency> | |
<groupId>cz.zvestov.mvn-multimodule-sample</groupId> | |
<artifactId>core</artifactId> | |
</dependency> | |
<dependency> | |
<groupId>javax</groupId> | |
<artifactId>javaee-web-api</artifactId> | |
</dependency> | |
</dependencies> | |
<build> | |
<plugins> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-war-plugin</artifactId> | |
<version>2.6</version> | |
<configuration> | |
<failOnMissingWebXml>false</failOnMissingWebXml> | |
</configuration> | |
</plugin> | |
</plugins> | |
</build> | |
</project> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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>cz.zvestov.mvn-multimodule-sample</groupId> | |
<artifactId>parent</artifactId> | |
<packaging>pom</packaging> | |
<version>1.0.0-SNAPSHOT</version> | |
<properties> | |
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | |
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> | |
<java.source.version>1.7</java.source.version> | |
<java.target.version>1.7</java.target.version> | |
</properties> | |
<modules> | |
<module>api</module> | |
<module>core</module> | |
<module>web</module> | |
</modules> | |
<dependencyManagement> | |
<dependencies> | |
<dependency> | |
<groupId>cz.zvestov.mvn-multimodule-sample</groupId> | |
<artifactId>api</artifactId> | |
<version>${project.version}</version> | |
</dependency> | |
<dependency> | |
<groupId>cz.zvestov.mvn-multimodule-sample</groupId> | |
<artifactId>core</artifactId> | |
<version>${project.version}</version> | |
</dependency> | |
<dependency> | |
<groupId>javax</groupId> | |
<artifactId>javaee-web-api</artifactId> | |
<version>7.0</version> | |
<scope>provided</scope> | |
</dependency> | |
</dependencies> | |
</dependencyManagement> | |
<build> | |
<pluginManagement> | |
<plugins> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-compiler-plugin</artifactId> | |
<configuration> | |
<source>${java.source.version}</source> | |
<target>${java.target.version}</target> | |
</configuration> | |
</plugin> | |
</plugins> | |
</pluginManagement> | |
</build> | |
</project> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment