ant-util
Used in:
components
- OverviewOverview
- VersionsVersions
- DependentsDependents
- DependenciesDependencies
<dependency>
<groupId>com.newmainsoftech</groupId>
<artifactId>ant-util</artifactId>
<version>1.0.1</version>
</dependency><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>
<prerequisites>
<maven>3.0</maven>
<!-- As stated in http://docs.codehaus.org/display/MAVENUSER/Antrun+Plugin,
Maven ver 2.x has significant plugin classpath bug affects to maven-antrun-plugin.
Hence prevent being used with Maven ver 2.x. -->
</prerequisites>
<organization>
<name>NewMain Softech</name>
<url>http://newmainsoftech.com</url>
</organization>
<groupId>com.newmainsoftech</groupId>
<artifactId>ant-util</artifactId>
<version>1.0.1</version>
<packaging>jar</packaging>
<name>ant-util</name>
<description>
Ant utilities for stand-alone Ant environment and maven-antrun-plugin environment.
</description>
<url>https://code.google.com/p/ant-util</url>
<inceptionYear>2012</inceptionYear>
<licenses>
<license>
<name>Apache License version 2.0</name>
<url>http://www.apache.org/licenses/LICENSE-2.0</url>
<distribution>repo</distribution>
</license>
</licenses>
<developers>
<developer>
<email>artymt@gmail.com</email>
<roles>
<role>project administrator</role>
<role>developer</role>
</roles>
</developer>
</developers>
<repositories>
<repository>
<id>sonatype-nexus-snapshots</id>
<name>Sonatype Nexus Snapshots</name>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
<releases>
<enabled>false</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>
<scm>
<connection>scm:svn:http://ant-util.googlecode.com/svn/tags/ant-util-1.0.1</connection>
<developerConnection>scm:svn:https://ant-util.googlecode.com/svn/tags/ant-util-1.0.1</developerConnection>
<url>https://code.google.com/p/ant-util/source/checkout/tags/ant-util-1.0.1</url>
</scm>
<distributionManagement>
<snapshotRepository>
<id>sonatype-nexus-snapshots</id>
<name>Sonatype Nexus Snapshots</name>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
</snapshotRepository>
<repository>
<id>sonatype-nexus-staging</id>
<name>Nexus Release Repository</name>
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2</url>
</repository>
<site><!-- location where site is deployed -->
<id>google.code.svn.repo</id>
<name>Google Code Subversion Repository</name>
<url>svn:https://ant-util.googlecode.com/svn/site</url>
</site>
</distributionManagement>
<properties>
<license.resource.directory>src${file.separator}main${file.separator}resources${file.separator}license</license.resource.directory>
<site.source.diectory>src${file.separator}site</site.source.diectory>
<ant-version>1.8.4</ant-version>
<aspectj-version>1.7.1</aspectj-version>
<aether-version>1.13.1</aether-version>
<maven-version>3.0.5</maven-version>
<!-- specify the version of Maven in use. This is for loading maven-aether-provider dependency -->
<wagon-version>2.1</wagon-version>
<!-- 2.2 and upwards has issue: https://github.com/cemerick/pomegranate/issues/25 -->
<apache-httpcomponents-version>4.2.2</apache-httpcomponents-version>
<!-- This specifies version of org.apache.httpcomponents:httpcore:jar and
org.apache.httpcomponents:httpclient:jar what are sub-dependencies of
org.apache.maven.wagon:wagon-http:jar and org.apache.maven.wagon:wagon-http-shared4:jar.
Hence, should to be equal or upper version than one wagon dependencies depends on. -->
<commons-logging-version>1.1.1</commons-logging-version>
<!-- This specifies version of commons-logging:commons-logging:jar what is sub-dependencies of
org.apache.httpcomponents:httpclient:jar and org.apache.maven.wagon:wagon-http-shared4:jar.
Hence, should to be equal or upper version than one wagon dependencies depends on. -->
<junit.version>4.10</junit.version>
<!-- junit 4.11 does not go along with Ant (or maven-antrun-plugin). -->
<maven.compiler.source>${java.specification.version}</maven.compiler.source>
<maven.compiler.target>${java.specification.version}</maven.compiler.target>
<maven-javadoc-plugin-version>2.8.1</maven-javadoc-plugin-version>
<maven-scm-plugin-version>1.8.1</maven-scm-plugin-version>
<!-- Don't let your Mac use a crazy non-standard encoding -->
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
</properties>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.aspectj</groupId>
<artifactId>aspectjweaver</artifactId>
<version>${aspectj-version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.aspectj</groupId>
<artifactId>aspectjrt</artifactId>
<version>${aspectj-version}</version>
</dependency>
<dependency>
<!-- Required for dynamic loading of javaagent -->
<groupId>com.sun</groupId>
<artifactId>tools</artifactId>
<version>${java.specification.version}</version>
<scope>system</scope><!-- available in all classpaths of a project -->
<systemPath>${java.home}${file.separator}..${file.separator}lib${file.separator}tools.jar</systemPath>
</dependency>
<dependency>
<groupId>org.apache.ant</groupId>
<artifactId>ant</artifactId>
<version>${ant-version}</version>
</dependency>
<dependency>
<groupId>org.apache.ant</groupId>
<artifactId>ant-junit</artifactId>
<version>${ant-version}</version>
</dependency>
<dependency>
<groupId>org.apache.ant</groupId>
<artifactId>ant-junit4</artifactId>
<version>${ant-version}</version>
</dependency>
<dependency>
<groupId>ant-contrib</groupId>
<artifactId>ant-contrib</artifactId>
<version>20020829</version>
<exclusions>
<exclusion>
<groupId>ant</groupId>
<artifactId>ant</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-core</artifactId>
<version>${maven-version}</version>
<scope>system</scope>
<optional>true</optional>
<systemPath>${M2_HOME}${file.separator}lib${file.separator}maven-core-${maven-version}.jar</systemPath>
<!-- maven-core dependency is for providing the reference
to MavenProject class used in MavenProperty class -->
</dependency>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-artifact</artifactId>
<version>${maven-version}</version>
<scope>system</scope>
<optional>true</optional>
<systemPath>${M2_HOME}${file.separator}lib${file.separator}maven-artifact-${maven-version}.jar</systemPath>
<!-- maven-core dependency is for providing the reference
to MavenProject class used in MavenProperty class -->
</dependency>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-settings-builder</artifactId>
<version>${maven-version}</version>
</dependency>
<dependency>
<groupId>org.sonatype.plexus</groupId>
<artifactId>plexus-sec-dispatcher</artifactId>
<version>1.4</version>
</dependency>
<!-- dependency>
<groupId>com.google.inject</groupId>
<artifactId>guice</artifactId>
<version>3.0</version>
</dependency -->
<dependency>
<groupId>org.sonatype.aether</groupId>
<artifactId>aether-api</artifactId>
<version>${aether-version}</version>
</dependency>
<dependency>
<groupId>org.sonatype.aether</groupId>
<artifactId>aether-util</artifactId>
<version>${aether-version}</version>
</dependency>
<dependency>
<groupId>org.sonatype.aether</groupId>
<artifactId>aether-spi</artifactId>
<version>${aether-version}</version>
</dependency>
<dependency>
<groupId>org.sonatype.aether</groupId>
<artifactId>aether-impl</artifactId>
<version>${aether-version}</version>
</dependency>
<dependency>
<groupId>org.sonatype.aether</groupId>
<artifactId>aether-connector-file</artifactId>
<version>${aether-version}</version>
</dependency>
<dependency>
<groupId>org.sonatype.aether</groupId>
<artifactId>aether-connector-asynchttpclient</artifactId>
<version>${aether-version}</version>
</dependency>
<dependency>
<groupId>org.sonatype.aether</groupId>
<artifactId>aether-connector-wagon</artifactId>
<version>${aether-version}</version>
</dependency>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-aether-provider</artifactId>
<version>${maven-version}</version>
</dependency>
<dependency>
<groupId>org.apache.maven.wagon</groupId>
<artifactId>wagon-ssh</artifactId>
<version>${wagon-version}</version>
</dependency>
<dependency>
<groupId>org.apache.maven.wagon</groupId>
<artifactId>wagon-http-lightweight</artifactId>
<version>${wagon-version}</version>
</dependency>
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpcore</artifactId>
<version>${apache-httpcomponents-version}</version>
</dependency>
<dependency>
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
<version>${commons-logging-version}</version>
</dependency>
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpclient</artifactId>
<version>${apache-httpcomponents-version}</version>
<exclusions>
<exclusion>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpcore</artifactId>
</exclusion>
<exclusion>
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.apache.maven.wagon</groupId>
<artifactId>wagon-http</artifactId>
<version>${wagon-version}</version>
<exclusions>
<exclusion>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpcore</artifactId>
</exclusion>
<exclusion>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpclient</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.apache.maven.wagon</groupId>
<artifactId>wagon-http-shared4</artifactId>
<version>${wagon-version}</version>
<exclusions>
<exclusion>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpcore</artifactId>
</exclusion>
<exclusion>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpclient</artifactId>
</exclusion>
<exclusion>
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>com.newmainsoftech</groupId>
<artifactId>aspectjutil-adviseutil</artifactId>
<version>2.1.0</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>1.7.2</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-core</artifactId>
<version>1.0.9</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
<version>1.0.9</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.newmainsoftech</groupId>
<artifactId>aspectjutil-testutil</artifactId>
<version>1.0.0</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-core</artifactId>
<version>1.9.5</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>${junit.version}</version>
<scope>test</scope>
</dependency>
</dependencies>
</dependencyManagement>
<dependencies>
<dependency>
<groupId>org.aspectj</groupId>
<artifactId>aspectjweaver</artifactId>
</dependency>
<dependency>
<groupId>org.aspectj</groupId>
<artifactId>aspectjrt</artifactId>
</dependency>
<!-- dependency -->
<!-- Required for dynamic loading of javaagent -->
<!-- groupId>com.sun</groupId>
<artifactId>tools</artifactId>
</dependency -->
<dependency>
<groupId>org.apache.ant</groupId>
<artifactId>ant</artifactId>
</dependency>
<dependency>
<groupId>org.apache.ant</groupId>
<artifactId>ant-junit</artifactId>
</dependency>
<dependency>
<groupId>org.apache.ant</groupId>
<artifactId>ant-junit4</artifactId>
</dependency>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-core</artifactId>
</dependency>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-artifact</artifactId>
</dependency>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-settings-builder</artifactId>
</dependency>
<dependency>
<groupId>org.sonatype.plexus</groupId>
<artifactId>plexus-sec-dispatcher</artifactId>
</dependency>
<dependency>
<groupId>org.sonatype.aether</groupId>
<artifactId>aether-api</artifactId>
</dependency>
<dependency>
<groupId>org.sonatype.aether</groupId>
<artifactId>aether-util</artifactId>
</dependency>
<dependency>
<groupId>org.sonatype.aether</groupId>
<artifactId>aether-spi</artifactId>
</dependency>
<dependency>
<groupId>org.sonatype.aether</groupId>
<artifactId>aether-impl</artifactId>
</dependency>
<dependency>
<groupId>org.sonatype.aether</groupId>
<artifactId>aether-connector-file</artifactId>
</dependency>
<dependency>
<groupId>org.sonatype.aether</groupId>
<artifactId>aether-connector-asynchttpclient</artifactId>
</dependency>
<dependency>
<groupId>org.sonatype.aether</groupId>
<artifactId>aether-connector-wagon</artifactId>
</dependency>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-aether-provider</artifactId>
</dependency>
<dependency>
<groupId>org.apache.maven.wagon</groupId>
<artifactId>wagon-ssh</artifactId>
</dependency>
<dependency>
<groupId>org.apache.maven.wagon</groupId>
<artifactId>wagon-http-lightweight</artifactId>
</dependency>
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpcore</artifactId>
</dependency>
<dependency>
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
</dependency>
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpclient</artifactId>
</dependency>
<dependency>
<groupId>org.apache.maven.wagon</groupId>
<artifactId>wagon-http</artifactId>
</dependency>
<dependency>
<groupId>org.apache.maven.wagon</groupId>
<artifactId>wagon-http-shared4</artifactId>
</dependency>
<dependency>
<groupId>com.newmainsoftech</groupId>
<artifactId>aspectjutil-adviseutil</artifactId>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
</dependency>
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-core</artifactId>
</dependency>
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
</dependency>
<dependency>
<groupId>com.newmainsoftech</groupId>
<artifactId>aspectjutil-testutil</artifactId>
</dependency>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-core</artifactId>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
</dependency>
</dependencies>
<build>
<testResources>
<testResource>
<directory>src${file.separator}test${file.separator}resources</directory>
<excludes>
<exclude>for_beanshell_in_ant_file</exclude>
<exclude>for_beanshell_in_ant_file/**/*.*</exclude>
</excludes>
</testResource>
</testResources>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>license-maven-plugin</artifactId>
<version>1.3</version>
<executions>
<execution>
<id>download-apache-license</id>
<phase>generate-resources</phase>
<goals><goal>update-project-license</goal></goals>
<configuration>
<licenseName>apache_v2</licenseName>
<!-- Download Apache license as LICENSE.txt -->
<generateBundle>true</generateBundle>
<!-- copy LICENSE.txt file to ${project.build.outputDirectory}/
META-INF/${project.artifactId}-LICENSE.txt -->
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.5.1</version>
<configuration>
<source>${maven.compiler.source}</source>
<target>${maven.compiler.target}</target>
<showDeprecation>true</showDeprecation>
<showWarnings>true</showWarnings>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>aspectj-maven-plugin</artifactId>
<version>1.4</version>
<dependencies>
<dependency>
<groupId>org.aspectj</groupId>
<artifactId>aspectjtools</artifactId>
<version>${aspectj-version}</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.aspectj</groupId>
<artifactId>aspectjrt</artifactId>
<version>${aspectj-version}</version>
</dependency>
<dependency>
<groupId>com.sun</groupId>
<artifactId>tools</artifactId>
<version>${java.specification.version}</version>
<scope>system</scope><!-- available in all classpaths of a project -->
<systemPath>${java.home}${file.separator}..${file.separator}lib${file.separator}tools.jar</systemPath>
</dependency>
</dependencies>
<executions>
<execution>
<id>compile</id>
<goals><goal>compile</goal></goals>
<configuration>
<showWeaveInfo>true</showWeaveInfo>
<verbose>true</verbose>
</configuration>
</execution>
<execution>
<id>test-compile</id>
<goals><goal>test-compile</goal></goals>
<configuration>
<showWeaveInfo>true</showWeaveInfo>
<verbose>true</verbose>
<aspectLibraries>
<aspectLibrary>
<groupId>com.newmainsoftech</groupId>
<artifactId>aspectjutil-testutil</artifactId>
</aspectLibrary>
</aspectLibraries>
</configuration>
</execution>
</executions>
<configuration>
<source>${maven.compiler.source}</source>
<target>${maven.compiler.target}</target>
<showWeaveInfo>true</showWeaveInfo>
<verbose>true</verbose>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.11</version>
<!-- 2.12 has bug on test property:
https://jira.codehaus.org/browse/SUREFIRE-827
http://jira.codehaus.org/browse/SUREFIRE-760
-->
<!-- dependencies>
<dependency>
<groupId>org.aspectj</groupId>
<artifactId>aspectjweaver</artifactId>
<version>${aspectj-version}</version>
</dependency>
</dependencies -->
<configuration>
<argLine>-javaagent:${aspectj.weaver.depedency.path}</argLine>
<systemPropertyVariables>
<aj.weaving.verbose>true</aj.weaving.verbose>
</systemPropertyVariables>
</configuration>
</plugin>
<plugin>
<groupId>com.google.code.maven-license-plugin</groupId>
<artifactId>maven-license-plugin</artifactId>
<!-- maven-license-plugin is bound to the verify phase by default. -->
<version>1.4.0</version>
<configuration>
<strictCheck>true</strictCheck>
<excludes>
<exclude>**${file.separator}*LICENSE.txt</exclude>
<exclude>**${file.separator}*.log</exclude>
<exclude>**${file.separator}svnIgnore.txt</exclude>
<exclude>pom.xml.versionsBackup</exclude>
<exclude>${license.resource.directory}${file.separator}**${file.separator}</exclude>
<exclude>${site.source.diectory}${file.separator}**${file.separator}</exclude>
<!-- Skip adding ASF2 license to site base files because adding downloaded
ASF2 license causes SiteToolException with maven-site-plugin due to
downloaded ASF2 license contains bom (byte order mark code for UTF-8:
U+EFBBBF) at top. -->
</excludes>
<header>${license.resource.directory}${file.separator}header.txt</header>
<properties>
<project.license.years>${project.license.years}</project.license.years>
<project.organization.name>${project.organization.name}</project.organization.name>
</properties>
<headerDefinitions>
<headerDefinition>${license.resource.directory}${file.separator}javaHeaderStyleDefinition.xml</headerDefinition>
</headerDefinitions>
<mapping>
<java>FOR_JAVA_SOURCE</java>
</mapping>
</configuration>
<executions>
<execution>
<id>append-code-license</id>
<phase>prepare-package</phase>
<goals><goal>format</goal></goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<version>2.5</version>
<executions>
<execution>
<id>copy_resources_in_prepare-package</id>
<phase>prepare-package</phase>
<goals><goal>copy-resources</goal></goals>
<configuration>
<outputDirectory>${project.build.outputDirectory}${file.separator}com${file.separator}newmainsoftech${file.separator}ant</outputDirectory>
<resources>
<resource>
<directory>${project.build.sourceDirectory}${file.separator}com${file.separator}newmainsoftech${file.separator}ant</directory>
<includes>
<include>antlib.xml</include>
</includes>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>${maven-javadoc-plugin-version}</version>
<executions>
<execution>
<id>attach-javadocs</id>
<goals><goal>jar</goal></goals>
<configuration>
<notimestamp>true</notimestamp>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>buildnumber-maven-plugin</artifactId>
<version>1.2</version>
<executions>
<execution>
<phase>prepare-package</phase>
<goals><goal>create</goal></goals>
</execution>
</executions>
<configuration>
<doCheck>false</doCheck>
<!-- Decided to set false to doCheck parameter in order to avoid tediously
providing false as command line argument because maven-release-plugin
generates work files and for building development build for integration
test. Just need to be careful to sync with SCM when releasing snapshot
build. -->
<doUpdate>true</doUpdate>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>2.4</version>
<configuration>
<excludes>
<exclude>builddef.lst</exclude>
<!-- exclude builddef.lst what is generated by aspectj-maven-plugin -->
<exclude>LICENSE.txt</exclude>
<exclude>license/**</exclude>
</excludes>
<archive>
<manifest>
<addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
</manifest>
<manifestEntries>
<Specification-Title>${project.name} classes</Specification-Title>
<Specification-Version>${project.version}</Specification-Version>
<Specification-Vendor>${project.organization.name}</Specification-Vendor>
<Implementation-Title>${project.groupId}.${project.artifactId}</Implementation-Title>
<Implementation-Version>${project.version}</Implementation-Version>
<Implementation-Vendor>${project.organization.name}</Implementation-Vendor>
<Implementation-Build>r${buildNumber}</Implementation-Build>
</manifestEntries>
</archive>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>2.2.1</version>
<executions>
<execution>
<id>attach-sources</id>
<phase>verify</phase>
<goals>
<goal>jar-no-fork</goal>
</goals>
<configuration>
<excludes>
<exclude>builddef.lst</exclude>
<!-- exclude builddef.lst what is generated by aspectj-maven-plugin -->
<exclude>LICENSE.txt</exclude>
<exclude>license/**</exclude>
</excludes>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.7</version>
<dependencies>
<dependency>
<groupId>ant-contrib</groupId>
<artifactId>ant-contrib</artifactId>
<version>1.0b2</version>
<!-- antfetch Ant task in 1.0b3 binary is broken:
http://sourceforge.net/p/ant-contrib/bugs/196/
http://old.nabble.com/%2d%2dant%2dcontrib%2dBugs%2d1590700%2d%2d%2dAntFetch%2dbroken%2din%2dBeta3:%2ddir%2dattribute%2dnot%2dsupported%2dtd8012447.html
-->
<exclusions>
<exclusion>
<groupId>ant</groupId>
<artifactId>ant</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.beanshell</groupId>
<artifactId>bsh</artifactId>
<version>2.0b5</version>
</dependency>
<!-- org.apache.ant:ant-junit:jar, org.apache.ant:ant-junit4:jar, and
junit:junit:jar are just for integration test of JUnitTaskExt by
test_JUnitTaskExt_task_element_target Ant target. -->
<dependency>
<groupId>org.apache.ant</groupId>
<artifactId>ant-junit</artifactId>
<version>${ant-version}</version>
</dependency>
<dependency>
<groupId>org.apache.ant</groupId>
<artifactId>ant-junit4</artifactId>
<version>${ant-version}</version>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>${junit.version}</version>
</dependency>
</dependencies>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-scm-plugin</artifactId>
<version>${maven-scm-plugin-version}</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<version>2.3.2</version>
<configuration>
<mavenExecutorId>forked-path</mavenExecutorId>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-site-plugin</artifactId>
<version>3.2</version>
<dependencies>
<dependency>
<groupId>com.google.code.maven-svn-wagon</groupId>
<artifactId>maven-svn-wagon</artifactId>
<version>1.4</version>
</dependency>
</dependencies>
</plugin>
<plugin>
<groupId>org.eclipse.m2e</groupId>
<artifactId>lifecycle-mapping</artifactId>
<version>1.0.0</version>
<configuration>
<lifecycleMappingMetadata>
<pluginExecutions>
<pluginExecution>
<pluginExecutionFilter>
<groupId>org.codehaus.mojo</groupId>
<artifactId>license-maven-plugin</artifactId>
<versionRange>[1.2,)</versionRange>
<goals>
<goal>update-project-license</goal>
</goals>
</pluginExecutionFilter>
<action><execute /></action>
</pluginExecution>
<pluginExecution>
<pluginExecutionFilter>
<groupId>org.codehaus.mojo</groupId>
<artifactId>aspectj-maven-plugin</artifactId>
<versionRange>[1.4,)</versionRange>
<goals>
<goal>compile</goal>
<goal>test-compile</goal>
</goals>
</pluginExecutionFilter>
<action><execute /></action>
</pluginExecution>
<pluginExecution>
<pluginExecutionFilter>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<versionRange>[1.7,)</versionRange>
<goals>
<goal>run</goal>
</goals>
</pluginExecutionFilter>
<action><execute /></action>
</pluginExecution>
</pluginExecutions>
</lifecycleMappingMetadata>
</configuration>
</plugin>
</plugins>
</pluginManagement>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>license-maven-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>aspectj-maven-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
</plugin>
<plugin>
<groupId>com.google.code.maven-license-plugin</groupId>
<artifactId>maven-license-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>buildnumber-maven-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-site-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<id>set-auxiliary-Maven-properties</id>
<phase>initialize</phase>
<goals><goal>run</goal></goals>
<configuration>
<target name="set-auxiliary-Maven-properties-target">
<description>
<![CDATA[ Define various Maven properties with dynamic values ]]>
</description>
<taskdef resource="net/sf/antcontrib/antlib.xml" classpathref="maven.plugin.classpath" />
<script language="beanshell">
<![CDATA[
import org.apache.maven.project.MavenProject;
import java.util.Calendar;
import java.lang.String;
import java.util.Properties;
self.log(
String.format(
"START %1$s TASK of %2$s TARGET >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>",
new Object[]{ self.getTaskName(), self.getOwningTarget().getName()}
)
);
MavenProject mavenProject
= (MavenProject)(self.getProject().getReference( "maven.project"));
Properties mavenProperties = mavenProject.getProperties();
// Define project.license.years Maven property to interprete
// referece in header.txt for maven-license-plugin. ------------
String propertyKey = "project.license.years";
if ( mavenProperties.getProperty( propertyKey) == null) {
String propertyValue = mavenProject.getInceptionYear();
Calendar calendar = Calendar.getInstance();
String thisYear
= String.valueOf( calendar.get( Calendar.YEAR));
if ( mavenProject.getInceptionYear() == null) {
propertyValue = thisYear;
}
else {
if ( !thisYear.equals( propertyValue)) {
propertyValue = propertyValue + "-" + thisYear;
}
}
mavenProperties.setProperty( propertyKey, propertyValue);
self.log(
String.format(
"Set %2$s value to %1$s Maven property.",
new Object[]{
propertyKey,
((propertyValue.length() < 1) ? "empty string (\"\")" : ("\"" + propertyValue + "\"")) } )
);
}
// -------------------------------------------------------------
self.log(
String.format(
"END %1$s TASK of %2$s TARGET <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<",
new Object[]{ self.getTaskName(), self.getOwningTarget().getName()}
)
);
]]>
</script>
</target>
</configuration>
</execution>
<execution>
<id>set-property-for-aspectj-weaver-jar-path</id>
<phase>process-test-sources</phase>
<goals><goal>run</goal></goals>
<configuration>
<target name="set-property-for-aspectj-weaver-jar-path-target">
<description>
This set path to aspectjweaver.jar file (what should have been <!--
-->declared as dependency) to Maven property named as <!--
-->aspectj.weaver.depedency.path. This is necessary because <!--
-->argLine parameter of maven-surefire-plugin seems to interpret <!--
-->only Property object to actual String value. For detail, see <!--
-->http://www.evernote.com/shard/s142/sh/cff8a50c-a243-472a-93ba-4c2deabd0899/8161af862ed4385f673880607d0a75e2
</description>
<taskdef resource="net/sf/antcontrib/antlib.xml" classpathref="maven.plugin.classpath" />
<if>
<isset property="aspectj.weaver.depedency.path" />
<then>
<fail>
aspectj.weaver.depedency.path property has already been <!--
-->defined; its assigned value is ${aspectj.weaver.depedency.path}.
</fail>
</then>
</if>
<if>
<or>
<isset property="org.aspectj:aspectjweaver:jar" />
<isset property="maven.dependency.org.aspectj.aspectjweaver.jar.path" />
</or>
<else>
<fail>
It seems missing declaration of mandatory aspectjweaver <!--
-->dependency. Or could be wrong value of scope given for <!--
-->aspectjweaver dependency.
</fail>
</else>
</if>
<script language="javascript">
<![CDATA[
var mavenProject = self.getProject().getReference( "maven.project");
var properties = mavenProject.getProperties();
var aspectjWeaverDepedencyPath
= self.getProject().getProperty( "org.aspectj:aspectjweaver:jar");
if ( aspectjWeaverDepedencyPath) {
properties.setProperty(
"aspectj.weaver.depedency.path",
new String( aspectjWeaverDepedencyPath));
self.log(
"Having set \"" + new String( aspectjWeaverDepedencyPath)
+ "\" to aspectj.weaver.depedency.path property ");
}
else {
self.log(
"org.aspectj:aspectjweaver:jar property has not been defined.");
aspectjWeaverDepedencyPath
= self.getProject().getProperty( "maven.dependency.org.aspectj.aspectjweaver.jar.path");
if ( aspectjWeaverDepedencyPath) {
properties.setProperty(
"aspectj.weaver.depedency.path", new String( aspectjWeaverDepedencyPath));
self.log(
"Having set \"" + new String( aspectjWeaverDepedencyPath)
+ "\" to aspectj.weaver.depedency.path property ");
}
else {
self.log(
"maven.dependency.org.aspectj.aspectjweaver.jar.path property has not been defined.");
}
}
]]>
</script>
</target>
</configuration>
</execution>
<execution>
<id>launch-beanshell-console</id>
<phase>process-test-classes</phase>
<goals><goal>run</goal></goals>
<configuration>
<target name="launch-beanshell-console-target">
<description>
When value of open-bsh property is true, then launch beanshell <!--
-->console for convenience of development and debugging in <!--
-->process-test-classes phase (before test phase).
</description>
<taskdef resource="net/sf/antcontrib/antlib.xml" classpathref="maven.plugin.classpath" />
<if>
<equals arg1="${open-bsh}" arg2="true" />
<then>
<property name="plugin_classpath" refid="maven.plugin.classpath" />
<property name="test_classpath" refid="maven.test.classpath" />
<java classname="bsh.Console" dir="${project.build.directory}" fork="true" spawn="true">
<classpath>
<pathelement path="${java.class.path}" />
<!-- pathelement location="${org.beanshell:bsh:jar}" / -->
<pathelement path="${plugin_classpath}" />
<pathelement path="${test_classpath}" />
</classpath>
</java>
</then>
</if>
</target>
</configuration>
</execution>
<execution>
<id>integration-test-execution</id>
<phase>integration-test</phase>
<goals><goal>run</goal></goals>
<configuration>
<target name="integration-test-execution-target">
<taskdef resource="net/sf/antcontrib/antlib.xml" classpathref="maven.plugin.classpath" />
<ant antfile="ant${file.separator}maven-antrun.ant.xml" target="run-all-tests" inheritRefs="true" />
</target>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
<reporting>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>${maven-javadoc-plugin-version}</version>
</plugin>
<!-- plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-changelog-plugin</artifactId>
<version>2.2</version>
</plugin -->
</plugins>
</reporting>
<profiles>
<profile>
<id>release-profile-addition</id>
<activation>
<property>
<name>performRelease</name>
<value>true</value>
</property>
</activation>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-scm-plugin</artifactId>
<version>${maven-scm-plugin-version}</version>
<executions>
<execution>
<id>tag-source</id>
<inherited>true</inherited>
<phase>deploy</phase>
<goals>
<goal>tag</goal>
</goals>
<configuration>
<goalsDirectory>..</goalsDirectory>
<tag>${finalName}</tag>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>1.4</version>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<id>set_gpg_prop_execution</id>
<phase>post-integration-test</phase>
<goals><goal>run</goal></goals>
<configuration>
<exportAntProperties>true</exportAntProperties>
<target name="set_gpg_prop_target">
<taskdef resource="net/sf/antcontrib/antlib.xml" classpathref="maven.plugin.classpath" />
<antfetch antfile="ant${file.separator}maven-antrun.ant.xml" target="set_gpg_prop" inheritRefs="true" return="gpg.passphrase" />
</target>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>