You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by exquisitus <ex...@gmx.ch> on 2006/01/02 16:26:31 UTC
maven-antrun-plugin and ant-optional
I tryed to run some ant tasks from within ant. Unfortunatly the
execution fails if I have to use a optional ant-task.
My POM looks like this:
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<!-- generate the XSD documentation -->
<execution>
<phase>validate</phase>
<configuration>
<tasks>
<ant antfile="build.xml"
target="gen-xsddoc">
<property
name="doctitle" value="${pom.name} - ${pom.version}" />
</ant>
</tasks>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>ant</groupId>
<artifactId>ant-optional</artifactId>
<version>1.5.3-1</version>
</dependency>
</dependencies>
</plugin>
has anyone an idea how to enable the optional tasks for ant?
Regards domi
Re: maven-antrun-plugin and ant-optional
Posted by Ralph Pöllath <li...@poellath.org>.
Begin forwarded message:
> From: Yann Le Du <le...@gmail.com>
> Date: 28. Dezember 2005 19:17:45 MEZ
> To: Maven Users List <us...@maven.apache.org>
> Subject: Re: [m2] Using optional ant tasks with antrun plugin
> Reply-To: "Maven Users List" <us...@maven.apache.org>
>
> Hi Ralph,
>
> Try ant-nodeps instead of ant-optional, there is a 1.6.5 and I
> believe this
> is the new name for ant-optional.
>
> --
> Yann
>
> 2005/12/28, Ralph Pöllath <li...@poellath.org>:
>>
>> Hi,
>>
>> I'd like to use the antrun plugin to execute optional ant tasks.
>>
>> Extending the example from http://maven.apache.org/guides/mini/guide-
>> using-ant.html , I added a dependency to ant:ant-optional:
>> 1.5.3-1:jar, which results in an error:
>> An invalid artifact was detected, ArtifactID: <<< MISSING >>>.
>>
>> I noticed that the used version of ant itself is 1.6.5, but I found
>> no matching ant-optional.jar in the repository.
>>
>> Any help apreciated, see below for full details.
>>
>> Thanks,
>> -Ralph.
On 02.01.2006, at 16:26, exquisitus wrote:
> I tryed to run some ant tasks from within ant. Unfortunatly the
> execution fails if I have to use a optional ant-task.
>
> My POM looks like this:
>
> <plugin>
> <artifactId>maven-antrun-plugin</artifactId>
> <executions>
> <!-- generate the XSD documentation -->
> <execution>
> <phase>validate</phase>
> <configuration>
> <tasks>
> <ant
> antfile="build.xml"
> target="gen-xsddoc">
> <property
> name="doctitle" value="${pom.name} - ${pom.version}" />
> </ant>
> </tasks>
> </configuration>
> <goals>
> <goal>run</goal>
> </goals>
> </execution>
> </executions>
> <dependencies>
> <dependency>
> <groupId>ant</groupId>
> <artifactId>ant-optional</
> artifactId>
> <version>1.5.3-1</version>
> </dependency>
> </dependencies>
> </plugin>
>
>
> has anyone an idea how to enable the optional tasks for ant?
>
> Regards domi
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org