Created
November 9, 2013 05:05
-
-
Save gcmurphy/7381889 to your computer and use it in GitHub Desktop.
Basic submodule project configuration for victims. Configuration from simple-web example in this book http://books.sonatype.com/mvnex-book/reference/
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/maven-v4_0_0.xsd"> | |
| <modelVersion>4.0.0</modelVersion> | |
| <parent> | |
| <artifactId>parent</artifactId> | |
| <groupId>org.sonatype.mavenbook.simpleweb</groupId> | |
| <version>0.8-SNAPSHOT</version> | |
| </parent> | |
| <artifactId>simple-webapp</artifactId> | |
| <packaging>war</packaging> | |
| <name>Simple Web Chapter Application Project</name> | |
| <dependencies> | |
| <dependency> | |
| <groupId>junit</groupId> | |
| <artifactId>junit</artifactId> | |
| <version>3.8.1</version> | |
| <scope>test</scope> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.apache.geronimo.specs</groupId> | |
| <artifactId>geronimo-servlet_2.4_spec</artifactId> | |
| <version>1.1.1</version> | |
| </dependency> | |
| </dependencies> | |
| <build> | |
| <finalName>simple-webapp</finalName> | |
| <plugins> | |
| <plugin> | |
| <groupId>org.mortbay.jetty</groupId> | |
| <artifactId>maven-jetty-plugin</artifactId> | |
| </plugin> | |
| <plugin> | |
| <artifactId>maven-compiler-plugin</artifactId> | |
| <configuration> | |
| <source>1.5</source> | |
| <target>1.5</target> | |
| </configuration> | |
| </plugin> | |
| <plugin> | |
| <artifactId>maven-enforcer-plugin</artifactId> | |
| </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/maven-v4_0_0.xsd"> | |
| <modelVersion>4.0.0</modelVersion> | |
| <groupId>org.sonatype.mavenbook.simpleweb</groupId> | |
| <artifactId>parent</artifactId> | |
| <version>0.8-SNAPSHOT</version> | |
| <packaging>pom</packaging> | |
| <name>Simple Web Chapter Parent Project</name> | |
| <modules> | |
| <module>simple-webapp</module> | |
| </modules> | |
| <!-- | |
| Example configuration for a project that is using modules | |
| --> | |
| <build> | |
| <pluginManagement> | |
| <plugins> | |
| <plugin> | |
| <groupId>org.apache.maven.plugins</groupId> | |
| <artifactId>maven-enforcer-plugin</artifactId> | |
| <dependencies> | |
| <dependency> | |
| <groupId>com.redhat.victims</groupId> | |
| <artifactId>enforce-victims-rule</artifactId> | |
| <version>1.3.2-SNAPSHOT</version> | |
| </dependency> | |
| </dependencies> | |
| <executions> | |
| <execution> | |
| <id>enforce-victims-rule</id> | |
| <goals> | |
| <goal>enforce</goal> | |
| </goals> | |
| <configuration> | |
| <rules> | |
| <rule implementation="com.redhat.victims.VictimsRule"> | |
| <metadata>warning</metadata> | |
| <fingerprint>fatal</fingerprint> | |
| <updates>off</updates> | |
| </rule> | |
| </rules> | |
| </configuration> | |
| </execution> | |
| </executions> | |
| </plugin> | |
| </plugins> | |
| </pluginManagement> | |
| </build> | |
| </project> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment