You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Amir Nashat <an...@cj.com> on 2004/11/11 03:29:07 UTC
aspectj integration
Hello,
I am trying to integrate the AspectJ plugin into Maven. In my maven.xml
file I have :
<preGoal name="cjo:compile">
<attainGoal name="aspectj:compile"/>
</preGoal>
And in my project.xml file I have:
<project>
...
...
...
<dependency>
<groupId>aspectj</groupId>
<type>jar</type>
<artifactId>aspectjrt</artifactId>
<jar>aspectjrt.jar</jar>
<properties>
<classloader>root</classloader>
<war.bundle>true</war.bundle>
</properties>
</dependency>
...
...
...
<build>
<aspectSourceDirectory>src/java/cj/cjo/controller</aspectSourceDirectory
>
</build>
I have configured the dependency in my project.xml file accordingly
because I kept getting errors stating aspectjrt.jar could not be found.
A previous thread on this list stated that the above configuration would
fix the problem and it did. However, the problem I am getting now is
that when I run
maven "cjo:compile" and use my aspect the following error is thrown when
compiling:
C:\cm\cjo\trunk\member\src\java\cj\cjo\member\foundation\taglib\UrlTag.j
ava:116:0 The type AbstractStringBuilder is not visible
[error 130]: error at result.append(key).append(":");
Does anyone have any insight as to what the problem could be? Is it a
compliance issue?
Thanks your help,
/amir
RE: aspectj integration
Posted by Carlos Sanchez <ap...@carlos.cousas.net>.
Hi,
See below
> -----Original Message-----
> From: Amir Nashat [mailto:anashat@cj.com]
> Sent: Thursday, November 11, 2004 3:29 AM
> To: users@maven.apache.org
> Subject: aspectj integration
>
> Hello,
>
>
>
> I am trying to integrate the AspectJ plugin into Maven. In my
> maven.xml file I have :
>
>
>
> <preGoal name="cjo:compile">
>
> <attainGoal name="aspectj:compile"/>
>
> </preGoal>
>
>
>
>
>
> And in my project.xml file I have:
>
> <project>
>
> ...
>
> ...
>
> ...
>
> <dependency>
>
> <groupId>aspectj</groupId>
>
> <type>jar</type>
>
> <artifactId>aspectjrt</artifactId>
>
> <jar>aspectjrt.jar</jar>
>
> <properties>
>
> <classloader>root</classloader>
>
> <war.bundle>true</war.bundle>
>
> </properties>
>
> </dependency>
>
> ...
>
> ...
>
> ...
>
>
>
> <build>
>
>
> <aspectSourceDirectory>src/java/cj/cjo/controller</aspectSourc
eDirectory
> >
>
> </build>
>
>
>
> I have configured the dependency in my project.xml file
> accordingly because I kept getting errors stating
> aspectjrt.jar could not be found.
You don't need that, the message can be ignored
> A previous thread on this list stated that the above
> configuration would fix the problem and it did. However, the
> problem I am getting now is that when I run
>
> maven "cjo:compile" and use my aspect the following error is
> thrown when
> compiling:
>
>
>
> C:\cm\cjo\trunk\member\src\java\cj\cjo\member\foundation\tagli
> b\UrlTag.j
> ava:116:0 The type AbstractStringBuilder is not visible
>
> [error 130]: error at result.append(key).append(":");
>
>
>
>
>
> Does anyone have any insight as to what the problem could be?
> Is it a compliance issue?
>
Seems you have an error in your aspect, not related with the maven plugin
>
>
> Thanks your help,
>
>
>
> /amir
>
>
>
>
Regards
Carlos Sanchez
A Coruña, Spain
http://www.jroller.com/page/carlossg
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org