You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Kaizer Sogiawala (JIRA)" <ji...@codehaus.org> on 2010/05/31 06:08:12 UTC
[jira] Issue Comment Edited: (MNG-4694) extractor for language: ant
fails to detect Ant mojos
[ http://jira.codehaus.org/browse/MNG-4694?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=223183#action_223183 ]
Kaizer Sogiawala edited comment on MNG-4694 at 5/30/10 11:06 PM:
-----------------------------------------------------------------
Updating the dependencies (maven-script-ant and maven-plugin-tools-ant) and maven-plugin-plugin to current versions resolved this issue. This issue can be closed.
{noformat}
<dependencies>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-script-ant</artifactId>
<version>2.2.1</version>
</dependency>
</dependencies>
<build>
<sourceDirectory>src/main/scripts</sourceDirectory>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-plugin-plugin</artifactId>
<version>2.6</version>
<dependencies>
<dependency>
<groupId>org.apache.maven.plugin-tools</groupId>
<artifactId>maven-plugin-tools-ant</artifactId>
<version>2.6</version>
</dependency>
</dependencies>
<configuration>
<goalPrefix>javac</goalPrefix>
</configuration>
</plugin>
</plugins>
</build>
{noformat}
was (Author: kaizers):
Updating the dependencies (maven-script-ant and maven-plugin-tools-ant) and maven-plugin-plugin to current versions resolved this issue. This issue can be closed.
<dependencies>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-script-ant</artifactId>
<version>2.2.1</version>
</dependency>
</dependencies>
<build>
<sourceDirectory>src/main/scripts</sourceDirectory>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-plugin-plugin</artifactId>
<version>2.6</version>
<dependencies>
<dependency>
<groupId>org.apache.maven.plugin-tools</groupId>
<artifactId>maven-plugin-tools-ant</artifactId>
<version>2.6</version>
</dependency>
</dependencies>
<configuration>
<goalPrefix>javac</goalPrefix>
</configuration>
</plugin>
</plugins>
</build>
> extractor for language: ant fails to detect Ant mojos
> -----------------------------------------------------
>
> Key: MNG-4694
> URL: http://jira.codehaus.org/browse/MNG-4694
> Project: Maven 2 & 3
> Issue Type: Bug
> Affects Versions: 3.0-beta-1
> Environment: Any
> Reporter: Kaizer Sogiawala
> Fix For: 3.0-beta-1
>
>
> Using simple project to develop Ant plugins described at-
> http://maven.apache.org/guides/plugin/guide-ant-plugin-development.html
> I noticed the maven-plugin-plugin/Extractor is not able to detect any Ant mojos. This same example works fine in mvn-2.2.1
> --- SNIP ---
> [INFO] --- maven-plugin-plugin:2.3:descriptor (default-descriptor) @ maven-javac-plugin ---
> [WARNING] Goal prefix is: javac; Maven currently expects it to be javac
> [INFO] Using 3 extractors.
> [INFO] Applying extractor for language: java
> [INFO] Extractor for language: java found 0 mojo descriptors.
> [INFO] Applying extractor for language: ant
> [INFO] Extractor for language: ant found 0 mojo descriptors.
> [INFO] Applying extractor for language: bsh
> [INFO] Extractor for language: bsh found 0 mojo descriptors.
> --- SNIP ---
> $ mvn -v
> Apache Maven 3.0-beta-1 (r935667; 2010-04-19 10:00:39-0700)
> Java version: 1.6.0_20
> Java home: /opt/jdk1.6.0_20/jre
> Default locale: en_US, platform encoding: UTF-8
> OS name: "linux" version: "2.6.32-21-generic-pae" arch: "i386" Family: "unix"
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira