Is maven ant tasks added to the classpath?

Gabriele Kahlout gabriele at mysimpatico.com
Sat Jun 4 12:11:37 PDT 2011


Hello, as discussed in the page I'm not able to build an ant project using
the jar, as others do. How shall I troubleshoot?
I tried:

$ ant -lib
/opt/local/var/macports/software/maven-ant-tasks/2.0.10_0/opt/local/share/java//opt/local/var/macports/software/maven-ant-tasks/2.0.10_0/opt/local/share/java/maven-ant-tasks.jar
deploy


$ ant -lib ivy -lib
/opt/local/var/macports/software/maven-ant-tasks/2.0.10_0/opt/local/share/java//opt/local/var/macports/software/maven-ant-tasks/2.0.10_0/opt/local/share/java/maven-ant-tasks.jar
deploy


nutch-1.3/build.xml:216: Problem: failed to create task or type
antlib:org.apache.maven.artifact.ant:mvn
Cause: The name is undefined.
Action: Check the spelling.
Action: Check that any custom tasks/types have been declared.
Action: Check that any <presetdef>/<macrodef> declarations have taken place.

The definitions in the namespace antlib:org.apache.maven.artifact.ant are:
    install-provider
    localRepository
    remoteRepository
    dependencies
    pom
    authentication
    install
    proxy
    deploy


Total time: 44 seconds



---------- Forwarded message ----------
From: Chris A. Mattmann (JIRA) <jira at apache.org>
Date: Sat, Jun 4, 2011 at 8:44 PM
Subject: [jira] [Resolved] (NUTCH-995) Generate POM file using the Ivy
makepom task
To: gabriele at mysimpatico.com



    [
https://issues.apache.org/jira/browse/NUTCH-995?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel]

Chris A. Mattmann resolved NUTCH-995.
-------------------------------------

   Resolution: Fixed

Resolved per comments on the issue. Thanks to Julien and Gabriele!

> Generate POM file using the Ivy makepom task
> ---------------------------------------------
>
>                 Key: NUTCH-995
>                 URL: https://issues.apache.org/jira/browse/NUTCH-995
>             Project: Nutch
>          Issue Type: Improvement
>            Reporter: Julien Nioche
>            Assignee: Chris A. Mattmann
>             Fix For: 1.3
>
>         Attachments: NUTCH-955-1.3.patch, NUTCH-997.branch-1.3.v2.patch,
mvn-template-build.patch
>
>
> We currently have a pom.xml file in the SVN repository and use it for
publishing our artefacts. The trouble with this is that we need to keep its
content in sync with our ivy file. Instead we could use the makepom task (
http://ant.apache.org/ivy/history/2.2.0/use/makepom.html) to generate the
pom.xml automatically.
> The existing pom.xml for 1.3 needs fixing anyway as it declares
dependencies to GORA and has the wrong versions for some dependencies.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira



-- 
Regards,
K. Gabriele

--- unchanged since 20/9/10 ---
P.S. If the subject contains "[LON]" or the addressee acknowledges the
receipt within 48 hours then I don't resend the email.
subject(this) ∈ L(LON*) ∨ ∃x. (x ∈ MyInbox ∧ Acknowledges(x, this) ∧ time(x)
< Now + 48h) ⇒ ¬resend(I, this).

If an email is sent by a sender that is not a trusted contact or the email
does not contain a valid code then the email is not received. A valid code
starts with a hyphen and ends with "X".
∀x. x ∈ MyInbox ⇒ from(x) ∈ MySafeSenderList ∨ (∃y. y ∈ subject(x) ∧ y ∈
L(-[a-z]+[0-9]X)).
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-users/attachments/20110604/e6d84c03/attachment.html>


More information about the macports-users mailing list