Usage

Configure your project to exclude build directories from TimeMachine backup

To run the TimeMachine plugin during the initialize phase of Maven add the following profile to your pom.xml.

<project>
  ...
  <profiles>
    <profile>
      <id>Mac OS X TimeMachine build directory exclusion</id>
      <activation>
        <os>
          <family>mac</family>
          <name>mac os x</name>
        </os>
      </activation>
      <build>
        <plugins>
          <plugin>
            <groupId>ch.syabru.maven.plugins</groupId>
            <artifactId>maven-timemachine-plugin</artifactId>
            <version>1.0.0</version>
            <executions>
              <execution>
                <goals>
                  <goal>exclude</goal>
                </goals>
              </execution>
            </executions>
          </plugin>
        </plugins>
      </build>
    </profile>
  </profiles>
  ...
</project>