Skip to content

Instantly share code, notes, and snippets.

@tfnico
Created January 14, 2011 22:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save tfnico/780375 to your computer and use it in GitHub Desktop.
Save tfnico/780375 to your computer and use it in GitHub Desktop.
An alternative pom
<?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>
<groupId>com.tfnico.examples</groupId>
<artifactId>foo</artifactId>
<version>1.0-SNAPSHOT</version>
<relativePath>./pom.xml</relativePath>
</parent>
<name>Fast build</name>
<groupId>com.tfnico.examples</groupId>
<artifactId>foo-fastbuild</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>pom</packaging>
<modules>
<module>foo-core</module>
<module>foo-web</module>
<!-- Here there are just two projects,
the parent/normal foo project has more,
but we don't need to build them in the
fast build -->
</modules>
</project>
<?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>
<name>Normal Foo</name>
<groupId>com.tfnico.examples</groupId>
<artifactId>foo</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>pom</packaging>
<build>
<pluginManagement>
<!-- Manage plugins here -->
</pluginManagement>
</build>
<dependencyManagement>
<!-- Insert dependencies here -->
</dependencyManagement>
<modules>
<module>foo-core</module>
<module>foo-web</module>
<module>foo-texts</module>
<module>foo-resources</module>
</modules>
</project>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment