[
https://issues.apache.org/jira/browse/MANTRUN-208?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16354411#comment-16354411
]
Martin Gainty commented on MANTRUN-208:
---------------------------------------
compile is wrong phase as maven-compiler-plugin overrides maven-antrun-plugin
add com.sun:tools:1.8 (tools.jar contains classes for Javac)
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.8</version>
<executions>
<execution>
<id>compile</id>
<phase>generate-resources</phase> <!-- currently cannot bind to
compile phase maven-compiler-plugin always tries to bind to this phase -->
<configuration>
<target>
<property name="compile_classpath"
refid="maven.compile.classpath"/>
<property name="runtime_classpath"
refid="maven.runtime.classpath"/>
<property name="test_classpath" refid="maven.test.classpath"/>
<property name="plugin_classpath"
refid="maven.plugin.classpath"/>
<ant antfile="${basedir}/build.xml">
<target name="compile"/>
<reference torefid="maven.compile.classpath"
refid="maven.compile.classpath"/>
</ant>
</target>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>com.sun</groupId> <!-- need to pass in com.sun.tools.JavaC
from maven to ant build.xml -->
<artifactId>tools</artifactId>
<version>1.8</version>
</dependency>
</dependencies>
</plugin>
> 1.8 version maven-antrun-plugin doesnt work
> -------------------------------------------
>
> Key: MANTRUN-208
> URL: https://issues.apache.org/jira/browse/MANTRUN-208
> Project: Maven Antrun Plugin
> Issue Type: Bug
> Environment: Maven home: C:\maven\maven333
> Java version: 1.8.0_40, vendor: Oracle Corporation
> Java home: C:\Java\jdk1.8\jre
> Default locale: en_US, platform encoding: Cp1252
> OS name: "windows 7", version: "6.1", arch: "amd64", family: "dos"
> Reporter: Martin Gainty
> Priority: Major
> Original Estimate: 24h
> Remaining Estimate: 24h
>
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-antrun-plugin</artifactId>
> <version>1.8</version>
> <executions>
> <execution>
> <id>compile</id>
> <phase>compile</phase>
> <configuration>
> <target>
> <property name="compile_classpath" refid="maven.compile.classpath"/>
> <property name="runtime_classpath" refid="maven.runtime.classpath"/>
> <property name="test_classpath" refid="maven.test.classpath"/>
> <property name="plugin_classpath" refid="maven.plugin.classpath"/>
> <echo message="compile classpath: ${compile_classpath}"/>
> <echo message="runtime classpath: ${runtime_classpath}"/>
> <echo message="test classpath: ${test_classpath}"/>
> <echo message="plugin classpath: ${plugin_classpath}"/>
> </target>
> </configuration>
> <goals>
> <goal>run</goal>
> </goals>
> </execution>
> </executions>
> </plugin>
> mvn -e -X -o produces no output for echo statements
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)