Created
January 20, 2016 18:50
-
-
Save CoolgaDV/0b7b0ceaa2a25ed0a531 to your computer and use it in GitHub Desktop.
Sample pom.xml with basic dependency and plugin management
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"> | |
| <!--Replace ${groupId}, ${artifactId} and ${name} below with proper values--> | |
| <modelVersion>4.0.0</modelVersion> | |
| <groupId>${groupId}</groupId> | |
| <artifactId>${artifactId}</artifactId> | |
| <name>${name}</name> | |
| <packaging>pom</packaging> | |
| <version>1.0</version> | |
| <modules> | |
| </modules> | |
| <properties> | |
| <jdk.version>1.8</jdk.version> | |
| <source.encoding>UTF-8</source.encoding> | |
| </properties> | |
| <dependencyManagement> | |
| <dependencies> | |
| <dependency> | |
| <groupId>junit</groupId> | |
| <artifactId>junit</artifactId> | |
| <version>4.12</version> | |
| <scope>test</scope> | |
| </dependency> | |
| </dependencies> | |
| </dependencyManagement> | |
| <build> | |
| <pluginManagement> | |
| <plugins> | |
| <plugin> | |
| <groupId>org.apache.maven.plugins</groupId> | |
| <artifactId>maven-clean-plugin</artifactId> | |
| <version>2.6.1</version> | |
| </plugin> | |
| <plugin> | |
| <groupId>org.apache.maven.plugins</groupId> | |
| <artifactId>maven-compiler-plugin</artifactId> | |
| <version>3.2</version> | |
| <configuration> | |
| <source>${jdk.version}</source> | |
| <target>${jdk.version}</target> | |
| <encoding>${source.encoding}</encoding> | |
| </configuration> | |
| </plugin> | |
| <plugin> | |
| <groupId>org.apache.maven.plugins</groupId> | |
| <artifactId>maven-resources-plugin</artifactId> | |
| <version>2.7</version> | |
| <configuration> | |
| <encoding>${source.encoding}</encoding> | |
| </configuration> | |
| </plugin> | |
| <plugin> | |
| <groupId>org.apache.maven.plugins</groupId> | |
| <artifactId>maven-jar-plugin</artifactId> | |
| <version>2.6</version> | |
| <configuration> | |
| <archive> | |
| <addMavenDescriptor>false</addMavenDescriptor> | |
| </archive> | |
| </configuration> | |
| </plugin> | |
| </plugins> | |
| </pluginManagement> | |
| </build> | |
| </project> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
How will I inherit this to the child?