maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andreas Guther" <agut...@paymentone.com>
Subject AspectJ Problem: taskdef class org.aspectj.tools.ant.taskdefs.AjcTask cannot be found
Date Thu, 21 Oct 2004 14:39:42 GMT
 
Hi:

I am using Maven 1.0 with the aspectj plugin 3.2, and aspectj 1.2.  I am
also using eclipse 3.1M1 with the latest aspectj plugin.

I have no problems compiling and running my project with aspects within
the eclipse environment using the eclipse aspectj plugin.

When I try to use the maven aspectj:compile goal (from command line or
using the MevenIDE) I get the following error:

BUILD FAILED
File...... C:\Documents and
Settings\aguther\.maven\cache\maven-aspectj-plugin-3.2\plugin.jelly
Element... ant:taskdef
Line...... 141
Column.... 87
taskdef class org.aspectj.tools.ant.taskdefs.AjcTask cannot be found
Total time: 12 seconds
Finished at: Thu Oct 21 07:24:49 PDT 2004

I have tried to put the aspectjtools.jar in different locations, for
example the jre/lib/ext, the maven lib and the maven lib directory but
no success.

I have also declared the aspectjtools as dependency in my project:

<dependency>
      <groupId>aspectj</groupId>
      <artifactId>aspectjrt</artifactId>
      <version>1.2</version>
      <jar>aspectjrt.jar</jar>
      <type>jar</type>
    </dependency>
    <dependency>
      <groupId>aspectj</groupId>
      <artifactId>aspectjtools</artifactId>
      <version>1.2</version>
      <jar></jar>
      <type>jar</type>
    </dependency>

My project.properties are set to the following:

maven.aspectj.source = 1.4
maven.aspectj.fork = true

Nothing seems to enable maven to pickup the AcjTask, which is obviously
in the aspectjtools jar.

Any idea where what I have to configure to get the maven aspectj:compile
to work?

Of course I could generate my jar file within eclipse and the eclipse
aspectj plugin, but that does not help to compile on the build server.

Thanks in advance for any hint or help.

Regards,

Andreas 
 
--------------------------------------------------------
 
This electronic mail message contains information belonging to PaymentOne, which may be confidential
and/or legal privileged. The information is intended only for the use of the individual or
entity named above. If you are not the intended recipient, you are hereby notified that any
disclosure, printing, copying, distribution, or the taking of any action in reliance on the
contents of this electronically mailed information is strictly prohibited. If you receive
this message in error, please immediately notify us by electronic mail and delete this message.

--------------------------------------------------------
 
 
  

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Mime
View raw message