On Mon, Mar 19, 2012 at 2:50 PM, Nuwan Bandara <[email protected]> wrote:

> Hi guys,
>
> Any idea ?
>

antrun plugin is not compatible with maven3. You have to add following line
to build.xml as a workaround.

<typedef resource="org/apache/maven/artifact/ant/antlib.xml" uri=
"urn:maven-artifact-ant"reverseLoader="true">

I will commit Cassandra 1.x.x changes today and it will solve this issue.

Thanks,

Deependra.

>
> INFO]
> ------------------------------------------------------------------------
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-antrun-plugin:1.6:run (compile) on project
> apache-cassandra: An Ant BuildException has occured: The following error
> occurred while executing this line:
> [ERROR]
> /home/nuwanbando/wso2/carbon-dev/carbon/platform/trunk/dependencies/cassandra/build.xml:169:
> Problem: failed to create task or type antlib:org.apache.ivy.ant:retrieve
> [ERROR] Cause: The name is undefined.
> [ERROR] Action: Check the spelling.
> [ERROR] Action: Check that any custom tasks/types have been declared.
> [ERROR] Action: Check that any <presetdef>/<macrodef> declarations have
> taken place.
> [ERROR] No types or tasks have been defined in this namespace yet
> [ERROR]
> [ERROR] This appears to be an antlib declaration.
> [ERROR] Action: Check that the implementing library exists in one of:
> [ERROR] -ANT_HOME/lib
> [ERROR] -the IDE Ant configuration dialogs
> [ERROR] -> [Help 1]
> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute
> goal org.apache.maven.plugins:maven-antrun-plugin:1.6:run (compile) on
> project apache-cassandra: An Ant BuildException has occured: The following
> error occurred while executing this line:
> /home/nuwanbando/wso2/carbon-dev/carbon/platform/trunk/dependencies/cassandra/build.xml:169:
> Problem: failed to create task or type antlib:org.apache.ivy.ant:retrieve
> 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.
> No types or tasks have been defined in this namespace yet
>
> This appears to be an antlib declaration.
> Action: Check that the implementing library exists in one of:
>         -ANT_HOME/lib
>         -the IDE Ant configuration dialogs
>
> at
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217)
> at
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
>  at
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
> at
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
>  at
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
> at
> org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
>  at
> org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)
>  at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
> at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
>  at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
> at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
>  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>  at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
>  at
> org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
> at
> org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
>  at
> org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
> at
> org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
> Caused by: org.apache.maven.plugin.MojoExecutionException: An Ant
> BuildException has occured: The following error occurred while executing
> this line:
> /home/nuwanbando/wso2/carbon-dev/carbon/platform/tru
>
> --
> *Thanks & Regards,
>
> Nuwan Bandara
> Senior Software Engineer
> WSO2 Inc. | http://wso2.com
> lean . enterprise . middleware
>
> http://nuwan.bandara.co
> *
> <http://www.nuwanbando.com/>
>
> _______________________________________________
> Dev mailing list
> [email protected]
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Deependra Ariyadewa
WSO2, Inc. http://wso2.com/ http://wso2.org

email [email protected]; cell +94 71 403 5996 ;
Blog http://risenfall.wordpress.com/
PGP info: KeyID: 'DC627E6F'
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to