Skip to content

Instantly share code, notes, and snippets.

@garyhodgson
Created April 17, 2016 11:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save garyhodgson/f8a1cecd9d5819f89fc3cc2a41e71a8f to your computer and use it in GitHub Desktop.
Save garyhodgson/f8a1cecd9d5819f89fc3cc2a41e71a8f to your computer and use it in GitHub Desktop.
mm-releaser-example pom.xml
<?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>com.garyhodgson.example</groupId>
<artifactId>mm-releaser-example</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>pom</packaging>
<build>
<plugins>
<plugin>
<groupId>com.github.danielflower.mavenplugins</groupId>
<artifactId>multi-module-maven-release-plugin</artifactId>
<version>1.4.2</version>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>format-source</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<build>
<plugins>
<plugin>
<groupId>com.googlecode.maven-java-formatter-plugin</groupId>
<artifactId>maven-java-formatter-plugin</artifactId>
<version>0.4</version>
<configuration>
<compilerCompliance>1.7</compilerCompliance>
<compilerSource>1.7</compilerSource>
<compilerTargetPlatform>1.7</compilerTargetPlatform>
<directories>
<directory>${project.build.sourceDirectory}</directory>
<directory>${project.build.testSourceDirectory}</directory>
</directories>
</configuration>
<executions>
<execution>
<id>standard-classes</id>
<phase>validate</phase>
<goals>
<goal>format</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment