You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Daniel Henrique Alves Lima <em...@yahoo.com.br> on 2004/04/21 22:11:51 UTC
aspectj plugin & maven 1.0 rc2
Hi, everybody !
I'm trying to use aspectj plugin with maven 1.0rc2 but i'm getting
the following error:
aspectj:weave-internal:
[move] Moving 1 files to /projects/new_project/target
copyInjars not required since 1.1.1.
[iajc] ignored: copyInJars at
[iajc] couldn't find aspectjrt.jar on classpath, checked:
[iajc] manifest not copied: 'META-INF/MANIFEST.MF' in JAR
'/projects/new_project/target/new_project-1.0-b1-notweaved.jar'
[iajc] ABORT
[iajc] Exception thrown from AspectJ 1.1.1
I've tried to add a dependency for aspectjrt.jar in my project.xml :
<dependency>
<groupId>aspectj</groupId>
<artifactId>aspectjrt</artifactId>
<version>1.1.1</version>
<url>http://aspectj.org/</url>
</dependency>
But it doesn't work. Any glue ?
How can i know/change the version of aspectj plugin that maven is
using ?
Thanks !
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
RE: aspectj plugin & maven 1.0 rc2
Posted by Carlos Sanchez <ap...@carlos.cousas.net>.
When you whan to weave the sources you must call aspectj:compile (or add
aspectj:compile as a preGoal for java:compile)
Does this answer your question?
> -----Mensaje original-----
> De: Charles N. Harvey III [mailto:charlieh@alloy.com]
> Enviado el: viernes, 23 de abril de 2004 21:56
> Para: Maven Users List
> Asunto: Re: aspectj plugin & maven 1.0 rc2
>
> Ok, one more question. :)
> The current maven goal has <jar:jar> as a preGoal. So,
> projectC.jar is created and then aspects are created on that
> jar. With <inpath> we don't have to create the jar first and
> then weave into it. We can weave on the <sourceDirectory>
> directly. But, how do we know to do that? What flag do we
> use to do the weaving on the <sourceDirectory>? We have
> <aspectj.weave> to tell us to weave into jar files, but
> nothing telling us whether or not to weave on the source. I
> might only want to weave into a jar file and not my source directory.
>
> Any ideas? I'm not sure how to approach this one.
>
>
> Charlie
>
>
>
> Carlos Sanchez wrote:
>
> >I agree.
> >When you finish with this patch I'll try to add the ajdoc
> task which is
> >back in 1.2 so it's also included in 3.0 plugin
> >
> >Thanks
> >
> >
> >
> >>-----Mensaje original-----
> >>De: Vincent Massol [mailto:vmassol@pivolis.com] Enviado el:
> viernes,
> >>23 de abril de 2004 17:13
> >>Para: 'Maven Users List'; charlieh@alloy.com
> >>Asunto: RE: aspectj plugin & maven 1.0 rc2
> >>
> >>I'd say we should go for 1.2. We can version the plugin as version
> >>3.0.
> >>
> >>Thanks
> >>-Vincent
> >>
> >>
> >>
> >
> >
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> >For additional commands, e-mail: users-help@maven.apache.org
> >
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: aspectj plugin & maven 1.0 rc2
Posted by "Charles N. Harvey III" <ch...@alloy.com>.
Ok, one more question. :)
The current maven goal has <jar:jar> as a preGoal. So, projectC.jar is
created and
then aspects are created on that jar. With <inpath> we don't have to
create the jar
first and then weave into it. We can weave on the <sourceDirectory>
directly. But,
how do we know to do that? What flag do we use to do the weaving on the
<sourceDirectory>? We have <aspectj.weave> to tell us to weave into jar
files, but
nothing telling us whether or not to weave on the source. I might only
want to
weave into a jar file and not my source directory.
Any ideas? I'm not sure how to approach this one.
Charlie
Carlos Sanchez wrote:
>I agree.
>When you finish with this patch I'll try to add the ajdoc task which is back
>in 1.2 so it's also included in 3.0 plugin
>
>Thanks
>
>
>
>>-----Mensaje original-----
>>De: Vincent Massol [mailto:vmassol@pivolis.com]
>>Enviado el: viernes, 23 de abril de 2004 17:13
>>Para: 'Maven Users List'; charlieh@alloy.com
>>Asunto: RE: aspectj plugin & maven 1.0 rc2
>>
>>I'd say we should go for 1.2. We can version the plugin as
>>version 3.0.
>>
>>Thanks
>>-Vincent
>>
>>
>>
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>For additional commands, e-mail: users-help@maven.apache.org
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
RE: aspectj plugin & maven 1.0 rc2
Posted by Carlos Sanchez <ap...@carlos.cousas.net>.
I agree.
When you finish with this patch I'll try to add the ajdoc task which is back
in 1.2 so it's also included in 3.0 plugin
Thanks
> -----Mensaje original-----
> De: Vincent Massol [mailto:vmassol@pivolis.com]
> Enviado el: viernes, 23 de abril de 2004 17:13
> Para: 'Maven Users List'; charlieh@alloy.com
> Asunto: RE: aspectj plugin & maven 1.0 rc2
>
> I'd say we should go for 1.2. We can version the plugin as
> version 3.0.
>
> Thanks
> -Vincent
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
RE: aspectj plugin & maven 1.0 rc2
Posted by Vincent Massol <vm...@pivolis.com>.
I'd say we should go for 1.2. We can version the plugin as version 3.0.
Thanks
-Vincent
> -----Original Message-----
> From: Charles N. Harvey III [mailto:charlieh@alloy.com]
> Sent: 23 April 2004 17:00
> To: Maven Users List
> Subject: Re: aspectj plugin & maven 1.0 rc2
>
> Correct. When you <aspectj.weave> you copy the class files into your
> new jar, and
> perform the weaving. So, referring to the example below, it would
> create projectC.jar
> with all of projectA.jar's .class files.
>
> The thing that really drives me nuts, it only copies .class files. No
> .properties
> or .xml or anything. I _really_ want that to be fixed.
>
> You are also right about the <injars> being deprecated for <inpath>, I
> had no idea.
> Easy enough to replace though, and it supposedly works on directories
as
> well.
> This is for 1.2 right? Because so far all I've used is 1.1.1. I
wasn't
> sure if
> 1.2 was released yet or if I had to build from cvs. I just checked
the
> site, 1.2rc1
> was made available last week.
>
> Best to plan for that then. Do we need to keep settings for older
> versions? Or should
> we make people get 1.2 since it has much better features?
>
>
> Charlie
>
>
>
> Carlos Sanchez wrote:
>
> >That's right, but now I have a doubt: when you weave a jar with
> ><aspectj.weave> you don't weave directly the jar in the repository?
Is it
> >copied somewhere?
> >
> >Also check the new AspectJ 1.2 that seems to have been improved and
> >http://dev.eclipse.org/viewcvs/indextech.cgi/~checkout~/aspectj-
> home/doc/dev
> >guide/antTasks-iajc.html because injars has been deprecated.
> >
> >Thanks
> >
> >
> >
> >>-----Mensaje original-----
> >>De: Charles N. Harvey III [mailto:charlieh@alloy.com]
> >>Enviado el: viernes, 23 de abril de 2004 2:33
> >>Para: Maven Users List
> >>Asunto: Re: aspectj plugin & maven 1.0 rc2
> >>
> >>I should be able to get to this next week. I'm flexible with
> >>the <aspectj.weave> and <aspectj.weaveWith>. But I'm not
> >>exactly clear on what each one does.
> >>
> >>ProjectA: creates projectA.jar - only .class files.
> >>ProjectB: creates projectB.jar - aspects and .class files.
> >>ProjectC: creates projectC.war - uses projectA.jar and projectB.jar
> >>
> >>
> >>So, in ProjectC's project.xml we would have:
> >>--------------------------------------------------------------
> >>----------------
> >> <dependencies>
> >> <dependency>
> >> <groupId>aspect-test</groupId>
> >> <type>jar</type>
> >> <artifactId>projectA</artifactId>
> >> <version>1.0</version>
> >> <properties>
> >> <war.bundle>true</war.bundle>
> >> <aspectj.weave>true</aspectj.weave>
> >> </properties>
> >> </dependency>
> >> <dependency>
> >> <groupId>aspect-test</groupId>
> >> <type>jar</type>
> >> <artifactId>projectB</artifactId>
> >> <version>1.0</version>
> >> <properties>
> >> <war.bundle>true</war.bundle>
> >> <aspectj.weaveWith>true</aspectj.weaveWith>
> >> </properties>
> >> </dependency>
> >> <dependency>
> >> <groupId>aspectj</groupId>
> >> <type>jar</type>
> >> <artifactId>aspectjtools</artifactId>
> >> <version>1.1.1</version>
> >> <properties>
> >> <classloader>root</classloader>
> >> </properties>
> >> </dependency>
> >> <dependency>
> >> <groupId>aspectj</groupId>
> >> <type>jar</type>
> >> <artifactId>aspectjrt</artifactId>
> >> <version>1.1.1</version>
> >> <properties>
> >> <classloader>root</classloader>
> >> <war.bundle>true</war.bundle>
> >> </properties>
> >> </dependency>
> >> </dependencies>
> >>--------------------------------------------------------------
> >>----------------
> >>
> >><aspectj.weave>: This would use the aspects in ProjectC and
> >>weave them into
> >> projectB.jar?
> >>
> >><aspectj.weaveWith>: This will look in projectB.jar for
> >>aspects to use for
> >> weaving in ProjectC classes?
> >>
> >>
> >>Just wanted to be absolutely clear. I hope this is making
> >>sense. Let me know if I am on the mark or if I am off on
> >>these things. Thanks a lot.
> >>
> >>
> >>Charlie
> >>
> >>
> >>
> >>
> >>Carlos Sanchez wrote:
> >>
> >>
> >>
> >>>Charles,
> >>>
> >>>Can you apply the patch I've made (
> >>>http://jira.codehaus.org/secure/ViewIssue.jspa?key=MPASPECTJ-8 )
and
> >>>then change aspectj:weave-internal and the xdocs to reflect your
> >>>changes and submit it again to Jira?
> >>>
> >>>I think the only thing we should think about are the name of the
> >>>dependency properties. I had though about <aspectj.weave> and
> >>><aspectj.weaveWith> but, what do you think?
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>>-----Mensaje original-----
> >>>>De: Vincent Massol [mailto:vmassol@pivolis.com] Enviado el:
> >>>>
> >>>>
> >>jueves, 22
> >>
> >>
> >>>>de abril de 2004 18:22
> >>>>Para: 'Maven Users List'
> >>>>CC: charlieh@alloy.com
> >>>>Asunto: RE: aspectj plugin & maven 1.0 rc2
> >>>>
> >>>>Hi Charles / Carlos,
> >>>>
> >>>>Carlos has sent a big patch a few days back. I'm still fighting to
> >>>>find some time to read it, analyze it and decide whether we should
> >>>>apply it as is or with some tweaks (I think we agree to remove the
> >>>>autoweave feature for example). There are several
> >>>>
> >>>>
> >>parameters that come
> >>
> >>
> >>>>into account, one of them being the fact that the new version of
> >>>>AspectJ supports weaving aspects into directories (and not
> >>>>
> >>>>
> >>only jars).
> >>
> >>
> >>>>Anyway, I have to admit I am a bit overwhelmed and would
appreciate
> >>>>help on this. If Carlos and you could talk this over and jointly
> >>>>submit a patch that satisfies everyone (possibly using the latest
> >>>>version of AspectJ), it would help tremendously. The patch
> >>>>
> >>>>
> >>should also
> >>
> >>
> >>>>include updates to xdocs and the changes.xml file.
> >>>>
> >>>>Many thanks
> >>>>-Vincent
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>>-----Original Message-----
> >>>>>From: Charles N. Harvey III [mailto:charlieh@alloy.com]
> >>>>>Sent: 22 April 2004 18:11
> >>>>>To: Maven Users List
> >>>>>Subject: Re: aspectj plugin & maven 1.0 rc2
> >>>>>
> >>>>>A while back I inserted <injars> into my plugin.jelly file for
the
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>aspecj
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>>plugin and its been going great. It gives me the ability
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>to weave an
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>>aspect into a pre-compiled jar. This feature is available
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>when using
> >>>>iajc
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>>so it is not something I made up.
> >>>>>
> >>>>>Thing is, each time I upgrade or build from CVS I completely
forget
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>that
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>>I had added it and my builds stop working. Is there any way to
get
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>this
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>>added to the maven-aspectj-plugin/plugin.jelly file
> >>>>>
> >>>>>
> >>permanently? It
> >>
> >>
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>would
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>>be part of the weave-internal task.
> >>>>>
> >>>>>
> >>>>> <!-- Private goal used to that when the jar:jar postgoal
> >>>>>
> >>>>>
> >>is called
> >>
> >>
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>we
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>>don't
> >>>>> have to call aspectj:init and jar:jar twice -->
> >>>>> <goal name="aspectj:weave-internal">
> >>>>>
> >>>>> <!-- fork to avoid BCEL library version conflict with
maven
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>-->
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>> <ant:iajc fork="true" debug="${maven.aspectj.debug}"
> >>>>> outjar="${maven.aspectj.outjar}"
> >>>>> injars="${maven.aspectj.injar.nonweaved}"
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>sourceRootCopyFilter="${maven.aspectj.sourceRootCopyFilters}"
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>> emacssym="${maven.aspectj.emacssym}">
> >>>>>
> >>>>> <!-- Look for aspect libraries to weave into -->
> >>>>> <ant:injars>
> >>>>> <j:forEach var="artifact" items="${pom.artifacts}">
> >>>>> <j:set var="dep" value="${artifact.dependency}"/>
> >>>>> <j:if
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>test="${dep.getProperty('aspect.injar')=='true'}">
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>> <ant:pathelement location="${artifact.path}"/>
> >>>>> </j:if>
> >>>>> </j:forEach>
> >>>>> </ant:injars>
> >>>>>
> >>>>> </ant:iajc>
> >>>>>
> >>>>> </goal>
> >>>>>
> >>>>>
> >>>>>It would require jars that are being weaved into to have a
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>><property>
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>>defined in the project.xml. I have called this property
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>"aspect.injar".
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>>So:
> >>>>>
> >>>>> <dependency>
> >>>>> <groupId>myjar</groupId>
> >>>>> <type>jar</type>
> >>>>> <artifactId>myjar</artifactId>
> >>>>> <version>2.0</version>
> >>>>> <properties>
> >>>>> <aspect.injar>true</aspect.injar>
> >>>>> </properties>
> >>>>> </dependency>
> >>>>>
> >>>>>How 'bout it? Should I file this in JIRA? Is the mailing
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>list good
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>>enough?
> >>>>>Also, you can get rid of
> >>>>> copyInjars="true"
> >>>>>
> >>>>>
> >>>>>from the <ant:iajc> task since it is no longer required by
> >>>>
> >>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>aspectj-1.1.1.
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>>Let me know your thoughts, I would really like to see this
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>get added.
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>>Thanks a lot.
> >>>>>
> >>>>>
> >>>>>Charlie
> >>>>>
> >>>>>
> >>>>>Vincent Massol wrote:
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>>>Yes, that's required. I guess we should add a check in the
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>plugin to
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>>>verify it's defined. Maybe you could file a JIRA issue on
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>the aspectj
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>>>plugin for this.
> >>>>>>
> >>>>>>Thanks
> >>>>>>-Vincent
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>>-----Original Message-----
> >>>>>>>From: Daniel Henrique Alves Lima
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>[mailto:email_daniel_h@yahoo.com.br]
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>>>>Sent: 22 April 2004 00:11
> >>>>>>>To: Maven Users List
> >>>>>>>Subject: Re: aspectj plugin & maven 1.0 rc2
> >>>>>>>
> >>>>>>>I've added the following line in my project.xml and the
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>error seems
> >>>>to
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>>>>stop :
> >>>>>>>
> >>>>>>> <aspectSourceDirectory>src/java</aspectSourceDirectory>
> >>>>>>>
> >>>>>>>
> >>>>>>>Daniel Henrique Alves Lima wrote:
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>> Now i'm getting this "already defined" message for all my
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>classes...
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>>> Can be a configuration problem ? I don't have any
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>aspectj plugin
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>>>>>property defined in my project.properties and i'm trying to
run
> >>>>>>>>"maven aspectj:compile" or just "maven aspectj".
> >>>>>>>>
> >>>>>>>>[iajc] couldn't find aspectjrt.jar on classpath, checked:
> >>>>>>>> [iajc] /projects/new_project/database/RowIterator.jav
> >>>>>>>>a:14 The type RowIterator is already defined
> >>>>>>>> [iajc] public interface RowIterator extends Iterator {
> >>>>>>>> [iajc]
> >>>>>>>>Vincent Massol wrote:
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>------------------------------------------------------------
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>---------
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>>>>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> >>>>>>>For additional commands, e-mail: users-help@maven.apache.org
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>-----------------------------------------------------------
> >>>>>
> >>>>>
> >>----------
> >>
> >>
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>>>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> >>>>>>For additional commands, e-mail: users-help@maven.apache.org
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>------------------------------------------------------------
> >>>>
> >>>>
> >>---------
> >>
> >>
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> >>>>>For additional commands, e-mail: users-help@maven.apache.org
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>------------------------------------------------------------
> >>>>
> >>>>
> >>---------
> >>
> >>
> >>>>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> >>>>For additional commands, e-mail: users-help@maven.apache.org
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>
> >>>
>
>>>---------------------------------------------------------------------
> >>>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> >>>For additional commands, e-mail: users-help@maven.apache.org
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>
>
>>---------------------------------------------------------------------
> >>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> >>For additional commands, e-mail: users-help@maven.apache.org
> >>
> >>
> >>
> >>
> >>
> >
> >
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> >For additional commands, e-mail: users-help@maven.apache.org
> >
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: aspectj plugin & maven 1.0 rc2
Posted by "Charles N. Harvey III" <ch...@alloy.com>.
Correct. When you <aspectj.weave> you copy the class files into your
new jar, and
perform the weaving. So, referring to the example below, it would
create projectC.jar
with all of projectA.jar's .class files.
The thing that really drives me nuts, it only copies .class files. No
.properties
or .xml or anything. I _really_ want that to be fixed.
You are also right about the <injars> being deprecated for <inpath>, I
had no idea.
Easy enough to replace though, and it supposedly works on directories as
well.
This is for 1.2 right? Because so far all I've used is 1.1.1. I wasn't
sure if
1.2 was released yet or if I had to build from cvs. I just checked the
site, 1.2rc1
was made available last week.
Best to plan for that then. Do we need to keep settings for older
versions? Or should
we make people get 1.2 since it has much better features?
Charlie
Carlos Sanchez wrote:
>That's right, but now I have a doubt: when you weave a jar with
><aspectj.weave> you don't weave directly the jar in the repository? Is it
>copied somewhere?
>
>Also check the new AspectJ 1.2 that seems to have been improved and
>http://dev.eclipse.org/viewcvs/indextech.cgi/~checkout~/aspectj-home/doc/dev
>guide/antTasks-iajc.html because injars has been deprecated.
>
>Thanks
>
>
>
>>-----Mensaje original-----
>>De: Charles N. Harvey III [mailto:charlieh@alloy.com]
>>Enviado el: viernes, 23 de abril de 2004 2:33
>>Para: Maven Users List
>>Asunto: Re: aspectj plugin & maven 1.0 rc2
>>
>>I should be able to get to this next week. I'm flexible with
>>the <aspectj.weave> and <aspectj.weaveWith>. But I'm not
>>exactly clear on what each one does.
>>
>>ProjectA: creates projectA.jar - only .class files.
>>ProjectB: creates projectB.jar - aspects and .class files.
>>ProjectC: creates projectC.war - uses projectA.jar and projectB.jar
>>
>>
>>So, in ProjectC's project.xml we would have:
>>--------------------------------------------------------------
>>----------------
>> <dependencies>
>> <dependency>
>> <groupId>aspect-test</groupId>
>> <type>jar</type>
>> <artifactId>projectA</artifactId>
>> <version>1.0</version>
>> <properties>
>> <war.bundle>true</war.bundle>
>> <aspectj.weave>true</aspectj.weave>
>> </properties>
>> </dependency>
>> <dependency>
>> <groupId>aspect-test</groupId>
>> <type>jar</type>
>> <artifactId>projectB</artifactId>
>> <version>1.0</version>
>> <properties>
>> <war.bundle>true</war.bundle>
>> <aspectj.weaveWith>true</aspectj.weaveWith>
>> </properties>
>> </dependency>
>> <dependency>
>> <groupId>aspectj</groupId>
>> <type>jar</type>
>> <artifactId>aspectjtools</artifactId>
>> <version>1.1.1</version>
>> <properties>
>> <classloader>root</classloader>
>> </properties>
>> </dependency>
>> <dependency>
>> <groupId>aspectj</groupId>
>> <type>jar</type>
>> <artifactId>aspectjrt</artifactId>
>> <version>1.1.1</version>
>> <properties>
>> <classloader>root</classloader>
>> <war.bundle>true</war.bundle>
>> </properties>
>> </dependency>
>> </dependencies>
>>--------------------------------------------------------------
>>----------------
>>
>><aspectj.weave>: This would use the aspects in ProjectC and
>>weave them into
>> projectB.jar?
>>
>><aspectj.weaveWith>: This will look in projectB.jar for
>>aspects to use for
>> weaving in ProjectC classes?
>>
>>
>>Just wanted to be absolutely clear. I hope this is making
>>sense. Let me know if I am on the mark or if I am off on
>>these things. Thanks a lot.
>>
>>
>>Charlie
>>
>>
>>
>>
>>Carlos Sanchez wrote:
>>
>>
>>
>>>Charles,
>>>
>>>Can you apply the patch I've made (
>>>http://jira.codehaus.org/secure/ViewIssue.jspa?key=MPASPECTJ-8 ) and
>>>then change aspectj:weave-internal and the xdocs to reflect your
>>>changes and submit it again to Jira?
>>>
>>>I think the only thing we should think about are the name of the
>>>dependency properties. I had though about <aspectj.weave> and
>>><aspectj.weaveWith> but, what do you think?
>>>
>>>
>>>
>>>
>>>
>>>
>>>>-----Mensaje original-----
>>>>De: Vincent Massol [mailto:vmassol@pivolis.com] Enviado el:
>>>>
>>>>
>>jueves, 22
>>
>>
>>>>de abril de 2004 18:22
>>>>Para: 'Maven Users List'
>>>>CC: charlieh@alloy.com
>>>>Asunto: RE: aspectj plugin & maven 1.0 rc2
>>>>
>>>>Hi Charles / Carlos,
>>>>
>>>>Carlos has sent a big patch a few days back. I'm still fighting to
>>>>find some time to read it, analyze it and decide whether we should
>>>>apply it as is or with some tweaks (I think we agree to remove the
>>>>autoweave feature for example). There are several
>>>>
>>>>
>>parameters that come
>>
>>
>>>>into account, one of them being the fact that the new version of
>>>>AspectJ supports weaving aspects into directories (and not
>>>>
>>>>
>>only jars).
>>
>>
>>>>Anyway, I have to admit I am a bit overwhelmed and would appreciate
>>>>help on this. If Carlos and you could talk this over and jointly
>>>>submit a patch that satisfies everyone (possibly using the latest
>>>>version of AspectJ), it would help tremendously. The patch
>>>>
>>>>
>>should also
>>
>>
>>>>include updates to xdocs and the changes.xml file.
>>>>
>>>>Many thanks
>>>>-Vincent
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>>-----Original Message-----
>>>>>From: Charles N. Harvey III [mailto:charlieh@alloy.com]
>>>>>Sent: 22 April 2004 18:11
>>>>>To: Maven Users List
>>>>>Subject: Re: aspectj plugin & maven 1.0 rc2
>>>>>
>>>>>A while back I inserted <injars> into my plugin.jelly file for the
>>>>>
>>>>>
>>>>>
>>>>>
>>>>aspecj
>>>>
>>>>
>>>>
>>>>
>>>>>plugin and its been going great. It gives me the ability
>>>>>
>>>>>
>>>>>
>>>>>
>>>>to weave an
>>>>
>>>>
>>>>
>>>>
>>>>>aspect into a pre-compiled jar. This feature is available
>>>>>
>>>>>
>>>>>
>>>>>
>>>>when using
>>>>iajc
>>>>
>>>>
>>>>
>>>>
>>>>>so it is not something I made up.
>>>>>
>>>>>Thing is, each time I upgrade or build from CVS I completely forget
>>>>>
>>>>>
>>>>>
>>>>>
>>>>that
>>>>
>>>>
>>>>
>>>>
>>>>>I had added it and my builds stop working. Is there any way to get
>>>>>
>>>>>
>>>>>
>>>>>
>>>>this
>>>>
>>>>
>>>>
>>>>
>>>>>added to the maven-aspectj-plugin/plugin.jelly file
>>>>>
>>>>>
>>permanently? It
>>
>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>would
>>>>
>>>>
>>>>
>>>>
>>>>>be part of the weave-internal task.
>>>>>
>>>>>
>>>>> <!-- Private goal used to that when the jar:jar postgoal
>>>>>
>>>>>
>>is called
>>
>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>we
>>>>
>>>>
>>>>
>>>>
>>>>>don't
>>>>> have to call aspectj:init and jar:jar twice -->
>>>>> <goal name="aspectj:weave-internal">
>>>>>
>>>>> <!-- fork to avoid BCEL library version conflict with maven
>>>>>
>>>>>
>>>>>
>>>>>
>>>>-->
>>>>
>>>>
>>>>
>>>>
>>>>> <ant:iajc fork="true" debug="${maven.aspectj.debug}"
>>>>> outjar="${maven.aspectj.outjar}"
>>>>> injars="${maven.aspectj.injar.nonweaved}"
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>sourceRootCopyFilter="${maven.aspectj.sourceRootCopyFilters}"
>>>>
>>>>
>>>>
>>>>
>>>>> emacssym="${maven.aspectj.emacssym}">
>>>>>
>>>>> <!-- Look for aspect libraries to weave into -->
>>>>> <ant:injars>
>>>>> <j:forEach var="artifact" items="${pom.artifacts}">
>>>>> <j:set var="dep" value="${artifact.dependency}"/>
>>>>> <j:if
>>>>>
>>>>>
>>>>>
>>>>>
>>>>test="${dep.getProperty('aspect.injar')=='true'}">
>>>>
>>>>
>>>>
>>>>
>>>>> <ant:pathelement location="${artifact.path}"/>
>>>>> </j:if>
>>>>> </j:forEach>
>>>>> </ant:injars>
>>>>>
>>>>> </ant:iajc>
>>>>>
>>>>> </goal>
>>>>>
>>>>>
>>>>>It would require jars that are being weaved into to have a
>>>>>
>>>>>
>>>>>
>>>>>
>>>><property>
>>>>
>>>>
>>>>
>>>>
>>>>>defined in the project.xml. I have called this property
>>>>>
>>>>>
>>>>>
>>>>>
>>>>"aspect.injar".
>>>>
>>>>
>>>>
>>>>
>>>>>So:
>>>>>
>>>>> <dependency>
>>>>> <groupId>myjar</groupId>
>>>>> <type>jar</type>
>>>>> <artifactId>myjar</artifactId>
>>>>> <version>2.0</version>
>>>>> <properties>
>>>>> <aspect.injar>true</aspect.injar>
>>>>> </properties>
>>>>> </dependency>
>>>>>
>>>>>How 'bout it? Should I file this in JIRA? Is the mailing
>>>>>
>>>>>
>>>>>
>>>>>
>>>>list good
>>>>
>>>>
>>>>
>>>>
>>>>>enough?
>>>>>Also, you can get rid of
>>>>> copyInjars="true"
>>>>>
>>>>>
>>>>>from the <ant:iajc> task since it is no longer required by
>>>>
>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>aspectj-1.1.1.
>>>>
>>>>
>>>>
>>>>
>>>>>Let me know your thoughts, I would really like to see this
>>>>>
>>>>>
>>>>>
>>>>>
>>>>get added.
>>>>
>>>>
>>>>
>>>>
>>>>>Thanks a lot.
>>>>>
>>>>>
>>>>>Charlie
>>>>>
>>>>>
>>>>>Vincent Massol wrote:
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>>Yes, that's required. I guess we should add a check in the
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>plugin to
>>>>
>>>>
>>>>
>>>>
>>>>>>verify it's defined. Maybe you could file a JIRA issue on
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>the aspectj
>>>>
>>>>
>>>>
>>>>
>>>>>>plugin for this.
>>>>>>
>>>>>>Thanks
>>>>>>-Vincent
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>>-----Original Message-----
>>>>>>>From: Daniel Henrique Alves Lima
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>[mailto:email_daniel_h@yahoo.com.br]
>>>>
>>>>
>>>>
>>>>
>>>>>>>Sent: 22 April 2004 00:11
>>>>>>>To: Maven Users List
>>>>>>>Subject: Re: aspectj plugin & maven 1.0 rc2
>>>>>>>
>>>>>>>I've added the following line in my project.xml and the
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>error seems
>>>>to
>>>>
>>>>
>>>>
>>>>
>>>>>>>stop :
>>>>>>>
>>>>>>> <aspectSourceDirectory>src/java</aspectSourceDirectory>
>>>>>>>
>>>>>>>
>>>>>>>Daniel Henrique Alves Lima wrote:
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>> Now i'm getting this "already defined" message for all my
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>classes...
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>>> Can be a configuration problem ? I don't have any
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>aspectj plugin
>>>>
>>>>
>>>>
>>>>
>>>>>>>>property defined in my project.properties and i'm trying to run
>>>>>>>>"maven aspectj:compile" or just "maven aspectj".
>>>>>>>>
>>>>>>>>[iajc] couldn't find aspectjrt.jar on classpath, checked:
>>>>>>>> [iajc] /projects/new_project/database/RowIterator.jav
>>>>>>>>a:14 The type RowIterator is already defined
>>>>>>>> [iajc] public interface RowIterator extends Iterator {
>>>>>>>> [iajc]
>>>>>>>>Vincent Massol wrote:
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>------------------------------------------------------------
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>---------
>>>>
>>>>
>>>>
>>>>
>>>>>>>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>>>>>>For additional commands, e-mail: users-help@maven.apache.org
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>-----------------------------------------------------------
>>>>>
>>>>>
>>----------
>>
>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>>>>>For additional commands, e-mail: users-help@maven.apache.org
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>------------------------------------------------------------
>>>>
>>>>
>>---------
>>
>>
>>>>
>>>>
>>>>
>>>>
>>>>>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>>>>For additional commands, e-mail: users-help@maven.apache.org
>>>>>
>>>>>
>>>>>
>>>>>
>>>>------------------------------------------------------------
>>>>
>>>>
>>---------
>>
>>
>>>>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>>>For additional commands, e-mail: users-help@maven.apache.org
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>
>>>---------------------------------------------------------------------
>>>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>>For additional commands, e-mail: users-help@maven.apache.org
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>For additional commands, e-mail: users-help@maven.apache.org
>>
>>
>>
>>
>>
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>For additional commands, e-mail: users-help@maven.apache.org
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
RE: aspectj plugin & maven 1.0 rc2
Posted by Carlos Sanchez <ap...@carlos.cousas.net>.
That's right, but now I have a doubt: when you weave a jar with
<aspectj.weave> you don't weave directly the jar in the repository? Is it
copied somewhere?
Also check the new AspectJ 1.2 that seems to have been improved and
http://dev.eclipse.org/viewcvs/indextech.cgi/~checkout~/aspectj-home/doc/dev
guide/antTasks-iajc.html because injars has been deprecated.
Thanks
> -----Mensaje original-----
> De: Charles N. Harvey III [mailto:charlieh@alloy.com]
> Enviado el: viernes, 23 de abril de 2004 2:33
> Para: Maven Users List
> Asunto: Re: aspectj plugin & maven 1.0 rc2
>
> I should be able to get to this next week. I'm flexible with
> the <aspectj.weave> and <aspectj.weaveWith>. But I'm not
> exactly clear on what each one does.
>
> ProjectA: creates projectA.jar - only .class files.
> ProjectB: creates projectB.jar - aspects and .class files.
> ProjectC: creates projectC.war - uses projectA.jar and projectB.jar
>
>
> So, in ProjectC's project.xml we would have:
> --------------------------------------------------------------
> ----------------
> <dependencies>
> <dependency>
> <groupId>aspect-test</groupId>
> <type>jar</type>
> <artifactId>projectA</artifactId>
> <version>1.0</version>
> <properties>
> <war.bundle>true</war.bundle>
> <aspectj.weave>true</aspectj.weave>
> </properties>
> </dependency>
> <dependency>
> <groupId>aspect-test</groupId>
> <type>jar</type>
> <artifactId>projectB</artifactId>
> <version>1.0</version>
> <properties>
> <war.bundle>true</war.bundle>
> <aspectj.weaveWith>true</aspectj.weaveWith>
> </properties>
> </dependency>
> <dependency>
> <groupId>aspectj</groupId>
> <type>jar</type>
> <artifactId>aspectjtools</artifactId>
> <version>1.1.1</version>
> <properties>
> <classloader>root</classloader>
> </properties>
> </dependency>
> <dependency>
> <groupId>aspectj</groupId>
> <type>jar</type>
> <artifactId>aspectjrt</artifactId>
> <version>1.1.1</version>
> <properties>
> <classloader>root</classloader>
> <war.bundle>true</war.bundle>
> </properties>
> </dependency>
> </dependencies>
> --------------------------------------------------------------
> ----------------
>
> <aspectj.weave>: This would use the aspects in ProjectC and
> weave them into
> projectB.jar?
>
> <aspectj.weaveWith>: This will look in projectB.jar for
> aspects to use for
> weaving in ProjectC classes?
>
>
> Just wanted to be absolutely clear. I hope this is making
> sense. Let me know if I am on the mark or if I am off on
> these things. Thanks a lot.
>
>
> Charlie
>
>
>
>
> Carlos Sanchez wrote:
>
> >Charles,
> >
> >Can you apply the patch I've made (
> >http://jira.codehaus.org/secure/ViewIssue.jspa?key=MPASPECTJ-8 ) and
> >then change aspectj:weave-internal and the xdocs to reflect your
> >changes and submit it again to Jira?
> >
> >I think the only thing we should think about are the name of the
> >dependency properties. I had though about <aspectj.weave> and
> ><aspectj.weaveWith> but, what do you think?
> >
> >
> >
> >
> >>-----Mensaje original-----
> >>De: Vincent Massol [mailto:vmassol@pivolis.com] Enviado el:
> jueves, 22
> >>de abril de 2004 18:22
> >>Para: 'Maven Users List'
> >>CC: charlieh@alloy.com
> >>Asunto: RE: aspectj plugin & maven 1.0 rc2
> >>
> >>Hi Charles / Carlos,
> >>
> >>Carlos has sent a big patch a few days back. I'm still fighting to
> >>find some time to read it, analyze it and decide whether we should
> >>apply it as is or with some tweaks (I think we agree to remove the
> >>autoweave feature for example). There are several
> parameters that come
> >>into account, one of them being the fact that the new version of
> >>AspectJ supports weaving aspects into directories (and not
> only jars).
> >>
> >>Anyway, I have to admit I am a bit overwhelmed and would appreciate
> >>help on this. If Carlos and you could talk this over and jointly
> >>submit a patch that satisfies everyone (possibly using the latest
> >>version of AspectJ), it would help tremendously. The patch
> should also
> >>include updates to xdocs and the changes.xml file.
> >>
> >>Many thanks
> >>-Vincent
> >>
> >>
> >>
> >>>-----Original Message-----
> >>>From: Charles N. Harvey III [mailto:charlieh@alloy.com]
> >>>Sent: 22 April 2004 18:11
> >>>To: Maven Users List
> >>>Subject: Re: aspectj plugin & maven 1.0 rc2
> >>>
> >>>A while back I inserted <injars> into my plugin.jelly file for the
> >>>
> >>>
> >>aspecj
> >>
> >>
> >>>plugin and its been going great. It gives me the ability
> >>>
> >>>
> >>to weave an
> >>
> >>
> >>>aspect into a pre-compiled jar. This feature is available
> >>>
> >>>
> >>when using
> >>iajc
> >>
> >>
> >>>so it is not something I made up.
> >>>
> >>>Thing is, each time I upgrade or build from CVS I completely forget
> >>>
> >>>
> >>that
> >>
> >>
> >>>I had added it and my builds stop working. Is there any way to get
> >>>
> >>>
> >>this
> >>
> >>
> >>>added to the maven-aspectj-plugin/plugin.jelly file
> permanently? It
> >>>
> >>>
> >>would
> >>
> >>
> >>>be part of the weave-internal task.
> >>>
> >>>
> >>> <!-- Private goal used to that when the jar:jar postgoal
> is called
> >>>
> >>>
> >>we
> >>
> >>
> >>>don't
> >>> have to call aspectj:init and jar:jar twice -->
> >>> <goal name="aspectj:weave-internal">
> >>>
> >>> <!-- fork to avoid BCEL library version conflict with maven
> >>>
> >>>
> >>-->
> >>
> >>
> >>> <ant:iajc fork="true" debug="${maven.aspectj.debug}"
> >>> outjar="${maven.aspectj.outjar}"
> >>> injars="${maven.aspectj.injar.nonweaved}"
> >>>
> >>>
> >>>
> >>sourceRootCopyFilter="${maven.aspectj.sourceRootCopyFilters}"
> >>
> >>
> >>> emacssym="${maven.aspectj.emacssym}">
> >>>
> >>> <!-- Look for aspect libraries to weave into -->
> >>> <ant:injars>
> >>> <j:forEach var="artifact" items="${pom.artifacts}">
> >>> <j:set var="dep" value="${artifact.dependency}"/>
> >>> <j:if
> >>>
> >>>
> >>test="${dep.getProperty('aspect.injar')=='true'}">
> >>
> >>
> >>> <ant:pathelement location="${artifact.path}"/>
> >>> </j:if>
> >>> </j:forEach>
> >>> </ant:injars>
> >>>
> >>> </ant:iajc>
> >>>
> >>> </goal>
> >>>
> >>>
> >>>It would require jars that are being weaved into to have a
> >>>
> >>>
> >><property>
> >>
> >>
> >>>defined in the project.xml. I have called this property
> >>>
> >>>
> >>"aspect.injar".
> >>
> >>
> >>>So:
> >>>
> >>> <dependency>
> >>> <groupId>myjar</groupId>
> >>> <type>jar</type>
> >>> <artifactId>myjar</artifactId>
> >>> <version>2.0</version>
> >>> <properties>
> >>> <aspect.injar>true</aspect.injar>
> >>> </properties>
> >>> </dependency>
> >>>
> >>>How 'bout it? Should I file this in JIRA? Is the mailing
> >>>
> >>>
> >>list good
> >>
> >>
> >>>enough?
> >>>Also, you can get rid of
> >>> copyInjars="true"
> >>>from the <ant:iajc> task since it is no longer required by
> >>>
> >>>
> >>aspectj-1.1.1.
> >>
> >>
> >>>Let me know your thoughts, I would really like to see this
> >>>
> >>>
> >>get added.
> >>
> >>
> >>>Thanks a lot.
> >>>
> >>>
> >>>Charlie
> >>>
> >>>
> >>>Vincent Massol wrote:
> >>>
> >>>
> >>>
> >>>>Yes, that's required. I guess we should add a check in the
> >>>>
> >>>>
> >>plugin to
> >>
> >>
> >>>>verify it's defined. Maybe you could file a JIRA issue on
> >>>>
> >>>>
> >>the aspectj
> >>
> >>
> >>>>plugin for this.
> >>>>
> >>>>Thanks
> >>>>-Vincent
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>>-----Original Message-----
> >>>>>From: Daniel Henrique Alves Lima
> >>>>>
> >>>>>
> >>[mailto:email_daniel_h@yahoo.com.br]
> >>
> >>
> >>>>>Sent: 22 April 2004 00:11
> >>>>>To: Maven Users List
> >>>>>Subject: Re: aspectj plugin & maven 1.0 rc2
> >>>>>
> >>>>>I've added the following line in my project.xml and the
> >>>>>
> >>>>>
> >>error seems
> >>to
> >>
> >>
> >>>>>stop :
> >>>>>
> >>>>> <aspectSourceDirectory>src/java</aspectSourceDirectory>
> >>>>>
> >>>>>
> >>>>>Daniel Henrique Alves Lima wrote:
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>>> Now i'm getting this "already defined" message for all my
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>classes...
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>>> Can be a configuration problem ? I don't have any
> >>>>>>
> >>>>>>
> >>aspectj plugin
> >>
> >>
> >>>>>>property defined in my project.properties and i'm trying to run
> >>>>>>"maven aspectj:compile" or just "maven aspectj".
> >>>>>>
> >>>>>>[iajc] couldn't find aspectjrt.jar on classpath, checked:
> >>>>>> [iajc] /projects/new_project/database/RowIterator.jav
> >>>>>>a:14 The type RowIterator is already defined
> >>>>>> [iajc] public interface RowIterator extends Iterator {
> >>>>>> [iajc]
> >>>>>>Vincent Massol wrote:
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>
> >>>>>
> >>>>------------------------------------------------------------
> >>>>
> >>>>
> >>---------
> >>
> >>
> >>>>>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> >>>>>For additional commands, e-mail: users-help@maven.apache.org
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>
> >>>>
> >>>>
> >>>-----------------------------------------------------------
> ----------
> >>>
> >>>
> >>>>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> >>>>For additional commands, e-mail: users-help@maven.apache.org
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>
> >>>
> >>>
> >>------------------------------------------------------------
> ---------
> >>
> >>
> >>>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> >>>For additional commands, e-mail: users-help@maven.apache.org
> >>>
> >>>
> >>
> >>------------------------------------------------------------
> ---------
> >>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> >>For additional commands, e-mail: users-help@maven.apache.org
> >>
> >>
> >>
> >>
> >>
> >
> >
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> >For additional commands, e-mail: users-help@maven.apache.org
> >
> >
> >
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: aspectj plugin & maven 1.0 rc2
Posted by "Charles N. Harvey III" <ch...@alloy.com>.
I should be able to get to this next week. I'm flexible with the
<aspectj.weave> and <aspectj.weaveWith>. But I'm not exactly clear on what
each one does.
ProjectA: creates projectA.jar - only .class files.
ProjectB: creates projectB.jar - aspects and .class files.
ProjectC: creates projectC.war - uses projectA.jar and projectB.jar
So, in ProjectC's project.xml we would have:
------------------------------------------------------------------------------
<dependencies>
<dependency>
<groupId>aspect-test</groupId>
<type>jar</type>
<artifactId>projectA</artifactId>
<version>1.0</version>
<properties>
<war.bundle>true</war.bundle>
<aspectj.weave>true</aspectj.weave>
</properties>
</dependency>
<dependency>
<groupId>aspect-test</groupId>
<type>jar</type>
<artifactId>projectB</artifactId>
<version>1.0</version>
<properties>
<war.bundle>true</war.bundle>
<aspectj.weaveWith>true</aspectj.weaveWith>
</properties>
</dependency>
<dependency>
<groupId>aspectj</groupId>
<type>jar</type>
<artifactId>aspectjtools</artifactId>
<version>1.1.1</version>
<properties>
<classloader>root</classloader>
</properties>
</dependency>
<dependency>
<groupId>aspectj</groupId>
<type>jar</type>
<artifactId>aspectjrt</artifactId>
<version>1.1.1</version>
<properties>
<classloader>root</classloader>
<war.bundle>true</war.bundle>
</properties>
</dependency>
</dependencies>
------------------------------------------------------------------------------
<aspectj.weave>: This would use the aspects in ProjectC and weave them into
projectB.jar?
<aspectj.weaveWith>: This will look in projectB.jar for aspects to use for
weaving in ProjectC classes?
Just wanted to be absolutely clear. I hope this is making sense. Let me
know if I am on the mark or if I am off on these things. Thanks a lot.
Charlie
Carlos Sanchez wrote:
>Charles,
>
>Can you apply the patch I've made (
>http://jira.codehaus.org/secure/ViewIssue.jspa?key=MPASPECTJ-8 ) and then
>change aspectj:weave-internal and the xdocs to reflect your changes and
>submit it again to Jira?
>
>I think the only thing we should think about are the name of the dependency
>properties. I had though about <aspectj.weave> and <aspectj.weaveWith> but,
>what do you think?
>
>
>
>
>>-----Mensaje original-----
>>De: Vincent Massol [mailto:vmassol@pivolis.com]
>>Enviado el: jueves, 22 de abril de 2004 18:22
>>Para: 'Maven Users List'
>>CC: charlieh@alloy.com
>>Asunto: RE: aspectj plugin & maven 1.0 rc2
>>
>>Hi Charles / Carlos,
>>
>>Carlos has sent a big patch a few days back. I'm still
>>fighting to find some time to read it, analyze it and decide
>>whether we should apply it as is or with some tweaks (I think
>>we agree to remove the autoweave feature for example). There
>>are several parameters that come into account, one of them
>>being the fact that the new version of AspectJ supports
>>weaving aspects into directories (and not only jars).
>>
>>Anyway, I have to admit I am a bit overwhelmed and would
>>appreciate help on this. If Carlos and you could talk this
>>over and jointly submit a patch that satisfies everyone
>>(possibly using the latest version of AspectJ), it would help
>>tremendously. The patch should also include updates to xdocs
>>and the changes.xml file.
>>
>>Many thanks
>>-Vincent
>>
>>
>>
>>>-----Original Message-----
>>>From: Charles N. Harvey III [mailto:charlieh@alloy.com]
>>>Sent: 22 April 2004 18:11
>>>To: Maven Users List
>>>Subject: Re: aspectj plugin & maven 1.0 rc2
>>>
>>>A while back I inserted <injars> into my plugin.jelly file for the
>>>
>>>
>>aspecj
>>
>>
>>>plugin and its been going great. It gives me the ability
>>>
>>>
>>to weave an
>>
>>
>>>aspect into a pre-compiled jar. This feature is available
>>>
>>>
>>when using
>>iajc
>>
>>
>>>so it is not something I made up.
>>>
>>>Thing is, each time I upgrade or build from CVS I completely forget
>>>
>>>
>>that
>>
>>
>>>I had added it and my builds stop working. Is there any way to get
>>>
>>>
>>this
>>
>>
>>>added to the maven-aspectj-plugin/plugin.jelly file permanently? It
>>>
>>>
>>would
>>
>>
>>>be part of the weave-internal task.
>>>
>>>
>>> <!-- Private goal used to that when the jar:jar postgoal is called
>>>
>>>
>>we
>>
>>
>>>don't
>>> have to call aspectj:init and jar:jar twice -->
>>> <goal name="aspectj:weave-internal">
>>>
>>> <!-- fork to avoid BCEL library version conflict with maven
>>>
>>>
>>-->
>>
>>
>>> <ant:iajc fork="true" debug="${maven.aspectj.debug}"
>>> outjar="${maven.aspectj.outjar}"
>>> injars="${maven.aspectj.injar.nonweaved}"
>>>
>>>
>>>
>>sourceRootCopyFilter="${maven.aspectj.sourceRootCopyFilters}"
>>
>>
>>> emacssym="${maven.aspectj.emacssym}">
>>>
>>> <!-- Look for aspect libraries to weave into -->
>>> <ant:injars>
>>> <j:forEach var="artifact" items="${pom.artifacts}">
>>> <j:set var="dep" value="${artifact.dependency}"/>
>>> <j:if
>>>
>>>
>>test="${dep.getProperty('aspect.injar')=='true'}">
>>
>>
>>> <ant:pathelement location="${artifact.path}"/>
>>> </j:if>
>>> </j:forEach>
>>> </ant:injars>
>>>
>>> </ant:iajc>
>>>
>>> </goal>
>>>
>>>
>>>It would require jars that are being weaved into to have a
>>>
>>>
>><property>
>>
>>
>>>defined in the project.xml. I have called this property
>>>
>>>
>>"aspect.injar".
>>
>>
>>>So:
>>>
>>> <dependency>
>>> <groupId>myjar</groupId>
>>> <type>jar</type>
>>> <artifactId>myjar</artifactId>
>>> <version>2.0</version>
>>> <properties>
>>> <aspect.injar>true</aspect.injar>
>>> </properties>
>>> </dependency>
>>>
>>>How 'bout it? Should I file this in JIRA? Is the mailing
>>>
>>>
>>list good
>>
>>
>>>enough?
>>>Also, you can get rid of
>>> copyInjars="true"
>>>from the <ant:iajc> task since it is no longer required by
>>>
>>>
>>aspectj-1.1.1.
>>
>>
>>>Let me know your thoughts, I would really like to see this
>>>
>>>
>>get added.
>>
>>
>>>Thanks a lot.
>>>
>>>
>>>Charlie
>>>
>>>
>>>Vincent Massol wrote:
>>>
>>>
>>>
>>>>Yes, that's required. I guess we should add a check in the
>>>>
>>>>
>>plugin to
>>
>>
>>>>verify it's defined. Maybe you could file a JIRA issue on
>>>>
>>>>
>>the aspectj
>>
>>
>>>>plugin for this.
>>>>
>>>>Thanks
>>>>-Vincent
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>>-----Original Message-----
>>>>>From: Daniel Henrique Alves Lima
>>>>>
>>>>>
>>[mailto:email_daniel_h@yahoo.com.br]
>>
>>
>>>>>Sent: 22 April 2004 00:11
>>>>>To: Maven Users List
>>>>>Subject: Re: aspectj plugin & maven 1.0 rc2
>>>>>
>>>>>I've added the following line in my project.xml and the
>>>>>
>>>>>
>>error seems
>>to
>>
>>
>>>>>stop :
>>>>>
>>>>> <aspectSourceDirectory>src/java</aspectSourceDirectory>
>>>>>
>>>>>
>>>>>Daniel Henrique Alves Lima wrote:
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>> Now i'm getting this "already defined" message for all my
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>classes...
>>>>
>>>>
>>>>
>>>>
>>>>>> Can be a configuration problem ? I don't have any
>>>>>>
>>>>>>
>>aspectj plugin
>>
>>
>>>>>>property defined in my project.properties and i'm trying to run
>>>>>>"maven aspectj:compile" or just "maven aspectj".
>>>>>>
>>>>>>[iajc] couldn't find aspectjrt.jar on classpath, checked:
>>>>>> [iajc] /projects/new_project/database/RowIterator.jav
>>>>>>a:14 The type RowIterator is already defined
>>>>>> [iajc] public interface RowIterator extends Iterator {
>>>>>> [iajc]
>>>>>>Vincent Massol wrote:
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>------------------------------------------------------------
>>>>
>>>>
>>---------
>>
>>
>>>>>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>>>>For additional commands, e-mail: users-help@maven.apache.org
>>>>>
>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>>
>>>---------------------------------------------------------------------
>>>
>>>
>>>>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>>>For additional commands, e-mail: users-help@maven.apache.org
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>
>>>
>>---------------------------------------------------------------------
>>
>>
>>>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>>For additional commands, e-mail: users-help@maven.apache.org
>>>
>>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>For additional commands, e-mail: users-help@maven.apache.org
>>
>>
>>
>>
>>
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>For additional commands, e-mail: users-help@maven.apache.org
>
>
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
RE: aspectj plugin & maven 1.0 rc2
Posted by Carlos Sanchez <ap...@carlos.cousas.net>.
Attach the patch to
http://jira.codehaus.org/secure/ViewIssue.jspa?key=MPASPECTJ-8
Carlos Sanchez
A CoruƱa, Spain
Oness Project
http://oness.sourceforge.net
> -----Mensaje original-----
> De: Charles N. Harvey III [mailto:charlieh@alloy.com]
> Enviado el: miƩrcoles, 28 de abril de 2004 2:00
> Para: Maven Users List
> Asunto: Re: aspectj plugin & maven 1.0 rc2
>
> I finally got it working. And well. Does all the things I
> had ever dreamed an aspectj-plugin would do. :)
>
> I will update the documentation files over the next two or
> three days.
> After that
> what should I do with everything once I'm done?
>
>
> Charlie
>
>
> Carlos Sanchez wrote:
>
> >Charles,
> >
> >Can you apply the patch I've made (
> >http://jira.codehaus.org/secure/ViewIssue.jspa?key=MPASPECTJ-8 ) and
> >then change aspectj:weave-internal and the xdocs to reflect your
> >changes and submit it again to Jira?
> >
> >I think the only thing we should think about are the name of the
> >dependency properties. I had though about <aspectj.weave> and
> ><aspectj.weaveWith> but, what do you think?
> >
> >
> >
> >
> >>-----Mensaje original-----
> >>De: Vincent Massol [mailto:vmassol@pivolis.com] Enviado el:
> jueves, 22
> >>de abril de 2004 18:22
> >>Para: 'Maven Users List'
> >>CC: charlieh@alloy.com
> >>Asunto: RE: aspectj plugin & maven 1.0 rc2
> >>
> >>Hi Charles / Carlos,
> >>
> >>Carlos has sent a big patch a few days back. I'm still fighting to
> >>find some time to read it, analyze it and decide whether we should
> >>apply it as is or with some tweaks (I think we agree to remove the
> >>autoweave feature for example). There are several
> parameters that come
> >>into account, one of them being the fact that the new version of
> >>AspectJ supports weaving aspects into directories (and not
> only jars).
> >>
> >>Anyway, I have to admit I am a bit overwhelmed and would appreciate
> >>help on this. If Carlos and you could talk this over and jointly
> >>submit a patch that satisfies everyone (possibly using the latest
> >>version of AspectJ), it would help tremendously. The patch
> should also
> >>include updates to xdocs and the changes.xml file.
> >>
> >>Many thanks
> >>-Vincent
> >>
> >>
> >>
> >>>-----Original Message-----
> >>>From: Charles N. Harvey III [mailto:charlieh@alloy.com]
> >>>Sent: 22 April 2004 18:11
> >>>To: Maven Users List
> >>>Subject: Re: aspectj plugin & maven 1.0 rc2
> >>>
> >>>A while back I inserted <injars> into my plugin.jelly file for the
> >>>
> >>>
> >>aspecj
> >>
> >>
> >>>plugin and its been going great. It gives me the ability
> >>>
> >>>
> >>to weave an
> >>
> >>
> >>>aspect into a pre-compiled jar. This feature is available
> >>>
> >>>
> >>when using
> >>iajc
> >>
> >>
> >>>so it is not something I made up.
> >>>
> >>>Thing is, each time I upgrade or build from CVS I completely forget
> >>>
> >>>
> >>that
> >>
> >>
> >>>I had added it and my builds stop working. Is there any way to get
> >>>
> >>>
> >>this
> >>
> >>
> >>>added to the maven-aspectj-plugin/plugin.jelly file
> permanently? It
> >>>
> >>>
> >>would
> >>
> >>
> >>>be part of the weave-internal task.
> >>>
> >>>
> >>> <!-- Private goal used to that when the jar:jar postgoal
> is called
> >>>
> >>>
> >>we
> >>
> >>
> >>>don't
> >>> have to call aspectj:init and jar:jar twice -->
> >>> <goal name="aspectj:weave-internal">
> >>>
> >>> <!-- fork to avoid BCEL library version conflict with maven
> >>>
> >>>
> >>-->
> >>
> >>
> >>> <ant:iajc fork="true" debug="${maven.aspectj.debug}"
> >>> outjar="${maven.aspectj.outjar}"
> >>> injars="${maven.aspectj.injar.nonweaved}"
> >>>
> >>>
> >>>
> >>sourceRootCopyFilter="${maven.aspectj.sourceRootCopyFilters}"
> >>
> >>
> >>> emacssym="${maven.aspectj.emacssym}">
> >>>
> >>> <!-- Look for aspect libraries to weave into -->
> >>> <ant:injars>
> >>> <j:forEach var="artifact" items="${pom.artifacts}">
> >>> <j:set var="dep" value="${artifact.dependency}"/>
> >>> <j:if
> >>>
> >>>
> >>test="${dep.getProperty('aspect.injar')=='true'}">
> >>
> >>
> >>> <ant:pathelement location="${artifact.path}"/>
> >>> </j:if>
> >>> </j:forEach>
> >>> </ant:injars>
> >>>
> >>> </ant:iajc>
> >>>
> >>> </goal>
> >>>
> >>>
> >>>It would require jars that are being weaved into to have a
> >>>
> >>>
> >><property>
> >>
> >>
> >>>defined in the project.xml. I have called this property
> >>>
> >>>
> >>"aspect.injar".
> >>
> >>
> >>>So:
> >>>
> >>> <dependency>
> >>> <groupId>myjar</groupId>
> >>> <type>jar</type>
> >>> <artifactId>myjar</artifactId>
> >>> <version>2.0</version>
> >>> <properties>
> >>> <aspect.injar>true</aspect.injar>
> >>> </properties>
> >>> </dependency>
> >>>
> >>>How 'bout it? Should I file this in JIRA? Is the mailing
> >>>
> >>>
> >>list good
> >>
> >>
> >>>enough?
> >>>Also, you can get rid of
> >>> copyInjars="true"
> >>>from the <ant:iajc> task since it is no longer required by
> >>>
> >>>
> >>aspectj-1.1.1.
> >>
> >>
> >>>Let me know your thoughts, I would really like to see this
> >>>
> >>>
> >>get added.
> >>
> >>
> >>>Thanks a lot.
> >>>
> >>>
> >>>Charlie
> >>>
> >>>
> >>>Vincent Massol wrote:
> >>>
> >>>
> >>>
> >>>>Yes, that's required. I guess we should add a check in the
> >>>>
> >>>>
> >>plugin to
> >>
> >>
> >>>>verify it's defined. Maybe you could file a JIRA issue on
> >>>>
> >>>>
> >>the aspectj
> >>
> >>
> >>>>plugin for this.
> >>>>
> >>>>Thanks
> >>>>-Vincent
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>>-----Original Message-----
> >>>>>From: Daniel Henrique Alves Lima
> >>>>>
> >>>>>
> >>[mailto:email_daniel_h@yahoo.com.br]
> >>
> >>
> >>>>>Sent: 22 April 2004 00:11
> >>>>>To: Maven Users List
> >>>>>Subject: Re: aspectj plugin & maven 1.0 rc2
> >>>>>
> >>>>>I've added the following line in my project.xml and the
> >>>>>
> >>>>>
> >>error seems
> >>to
> >>
> >>
> >>>>>stop :
> >>>>>
> >>>>> <aspectSourceDirectory>src/java</aspectSourceDirectory>
> >>>>>
> >>>>>
> >>>>>Daniel Henrique Alves Lima wrote:
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>>> Now i'm getting this "already defined" message for all my
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>classes...
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>>> Can be a configuration problem ? I don't have any
> >>>>>>
> >>>>>>
> >>aspectj plugin
> >>
> >>
> >>>>>>property defined in my project.properties and i'm trying to run
> >>>>>>"maven aspectj:compile" or just "maven aspectj".
> >>>>>>
> >>>>>>[iajc] couldn't find aspectjrt.jar on classpath, checked:
> >>>>>> [iajc] /projects/new_project/database/RowIterator.jav
> >>>>>>a:14 The type RowIterator is already defined
> >>>>>> [iajc] public interface RowIterator extends Iterator {
> >>>>>> [iajc]
> >>>>>>Vincent Massol wrote:
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>
> >>>>>
> >>>>------------------------------------------------------------
> >>>>
> >>>>
> >>---------
> >>
> >>
> >>>>>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> >>>>>For additional commands, e-mail: users-help@maven.apache.org
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>
> >>>>
> >>>>
> >>>-----------------------------------------------------------
> ----------
> >>>
> >>>
> >>>>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> >>>>For additional commands, e-mail: users-help@maven.apache.org
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>
> >>>
> >>>
> >>------------------------------------------------------------
> ---------
> >>
> >>
> >>>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> >>>For additional commands, e-mail: users-help@maven.apache.org
> >>>
> >>>
> >>
> >>------------------------------------------------------------
> ---------
> >>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> >>For additional commands, e-mail: users-help@maven.apache.org
> >>
> >>
> >>
> >>
> >>
> >
> >
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> >For additional commands, e-mail: users-help@maven.apache.org
> >
> >
> >
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
RE: aspectj plugin & maven 1.0 rc2
Posted by Vincent Massol <vm...@pivolis.com>.
Hi Charles,
Looks very cool!
Your patch does include everything from Carlos's patch too, right? If
so, could you please attach it to
http://jira.codehaus.org/secure/ViewIssue.jspa?key=MPASPECTJ-8
Thanks
-Vincent
> -----Original Message-----
> From: Charles N. Harvey III [mailto:charlieh@alloy.com]
> Sent: 28 April 2004 02:00
> To: Maven Users List
> Subject: Re: aspectj plugin & maven 1.0 rc2
>
> I finally got it working. And well. Does all the things I had ever
> dreamed an aspectj-plugin would do. :)
>
> I will update the documentation files over the next two or three days.
> After that
> what should I do with everything once I'm done?
>
>
> Charlie
>
>
> Carlos Sanchez wrote:
>
> >Charles,
> >
> >Can you apply the patch I've made (
> >http://jira.codehaus.org/secure/ViewIssue.jspa?key=MPASPECTJ-8 ) and
then
> >change aspectj:weave-internal and the xdocs to reflect your changes
and
> >submit it again to Jira?
> >
> >I think the only thing we should think about are the name of the
> dependency
> >properties. I had though about <aspectj.weave> and
<aspectj.weaveWith>
> but,
> >what do you think?
> >
> >
> >
> >
> >>-----Mensaje original-----
> >>De: Vincent Massol [mailto:vmassol@pivolis.com]
> >>Enviado el: jueves, 22 de abril de 2004 18:22
> >>Para: 'Maven Users List'
> >>CC: charlieh@alloy.com
> >>Asunto: RE: aspectj plugin & maven 1.0 rc2
> >>
> >>Hi Charles / Carlos,
> >>
> >>Carlos has sent a big patch a few days back. I'm still
> >>fighting to find some time to read it, analyze it and decide
> >>whether we should apply it as is or with some tweaks (I think
> >>we agree to remove the autoweave feature for example). There
> >>are several parameters that come into account, one of them
> >>being the fact that the new version of AspectJ supports
> >>weaving aspects into directories (and not only jars).
> >>
> >>Anyway, I have to admit I am a bit overwhelmed and would
> >>appreciate help on this. If Carlos and you could talk this
> >>over and jointly submit a patch that satisfies everyone
> >>(possibly using the latest version of AspectJ), it would help
> >>tremendously. The patch should also include updates to xdocs
> >>and the changes.xml file.
> >>
> >>Many thanks
> >>-Vincent
> >>
> >>
> >>
> >>>-----Original Message-----
> >>>From: Charles N. Harvey III [mailto:charlieh@alloy.com]
> >>>Sent: 22 April 2004 18:11
> >>>To: Maven Users List
> >>>Subject: Re: aspectj plugin & maven 1.0 rc2
> >>>
> >>>A while back I inserted <injars> into my plugin.jelly file for the
> >>>
> >>>
> >>aspecj
> >>
> >>
> >>>plugin and its been going great. It gives me the ability
> >>>
> >>>
> >>to weave an
> >>
> >>
> >>>aspect into a pre-compiled jar. This feature is available
> >>>
> >>>
> >>when using
> >>iajc
> >>
> >>
> >>>so it is not something I made up.
> >>>
> >>>Thing is, each time I upgrade or build from CVS I completely forget
> >>>
> >>>
> >>that
> >>
> >>
> >>>I had added it and my builds stop working. Is there any way to get
> >>>
> >>>
> >>this
> >>
> >>
> >>>added to the maven-aspectj-plugin/plugin.jelly file permanently?
It
> >>>
> >>>
> >>would
> >>
> >>
> >>>be part of the weave-internal task.
> >>>
> >>>
> >>> <!-- Private goal used to that when the jar:jar postgoal is
called
> >>>
> >>>
> >>we
> >>
> >>
> >>>don't
> >>> have to call aspectj:init and jar:jar twice -->
> >>> <goal name="aspectj:weave-internal">
> >>>
> >>> <!-- fork to avoid BCEL library version conflict with maven
> >>>
> >>>
> >>-->
> >>
> >>
> >>> <ant:iajc fork="true" debug="${maven.aspectj.debug}"
> >>> outjar="${maven.aspectj.outjar}"
> >>> injars="${maven.aspectj.injar.nonweaved}"
> >>>
> >>>
> >>>
> >>sourceRootCopyFilter="${maven.aspectj.sourceRootCopyFilters}"
> >>
> >>
> >>> emacssym="${maven.aspectj.emacssym}">
> >>>
> >>> <!-- Look for aspect libraries to weave into -->
> >>> <ant:injars>
> >>> <j:forEach var="artifact" items="${pom.artifacts}">
> >>> <j:set var="dep" value="${artifact.dependency}"/>
> >>> <j:if
> >>>
> >>>
> >>test="${dep.getProperty('aspect.injar')=='true'}">
> >>
> >>
> >>> <ant:pathelement location="${artifact.path}"/>
> >>> </j:if>
> >>> </j:forEach>
> >>> </ant:injars>
> >>>
> >>> </ant:iajc>
> >>>
> >>> </goal>
> >>>
> >>>
> >>>It would require jars that are being weaved into to have a
> >>>
> >>>
> >><property>
> >>
> >>
> >>>defined in the project.xml. I have called this property
> >>>
> >>>
> >>"aspect.injar".
> >>
> >>
> >>>So:
> >>>
> >>> <dependency>
> >>> <groupId>myjar</groupId>
> >>> <type>jar</type>
> >>> <artifactId>myjar</artifactId>
> >>> <version>2.0</version>
> >>> <properties>
> >>> <aspect.injar>true</aspect.injar>
> >>> </properties>
> >>> </dependency>
> >>>
> >>>How 'bout it? Should I file this in JIRA? Is the mailing
> >>>
> >>>
> >>list good
> >>
> >>
> >>>enough?
> >>>Also, you can get rid of
> >>> copyInjars="true"
> >>>from the <ant:iajc> task since it is no longer required by
> >>>
> >>>
> >>aspectj-1.1.1.
> >>
> >>
> >>>Let me know your thoughts, I would really like to see this
> >>>
> >>>
> >>get added.
> >>
> >>
> >>>Thanks a lot.
> >>>
> >>>
> >>>Charlie
> >>>
> >>>
> >>>Vincent Massol wrote:
> >>>
> >>>
> >>>
> >>>>Yes, that's required. I guess we should add a check in the
> >>>>
> >>>>
> >>plugin to
> >>
> >>
> >>>>verify it's defined. Maybe you could file a JIRA issue on
> >>>>
> >>>>
> >>the aspectj
> >>
> >>
> >>>>plugin for this.
> >>>>
> >>>>Thanks
> >>>>-Vincent
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>>-----Original Message-----
> >>>>>From: Daniel Henrique Alves Lima
> >>>>>
> >>>>>
> >>[mailto:email_daniel_h@yahoo.com.br]
> >>
> >>
> >>>>>Sent: 22 April 2004 00:11
> >>>>>To: Maven Users List
> >>>>>Subject: Re: aspectj plugin & maven 1.0 rc2
> >>>>>
> >>>>>I've added the following line in my project.xml and the
> >>>>>
> >>>>>
> >>error seems
> >>to
> >>
> >>
> >>>>>stop :
> >>>>>
> >>>>> <aspectSourceDirectory>src/java</aspectSourceDirectory>
> >>>>>
> >>>>>
> >>>>>Daniel Henrique Alves Lima wrote:
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>>> Now i'm getting this "already defined" message for all my
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>classes...
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>>> Can be a configuration problem ? I don't have any
> >>>>>>
> >>>>>>
> >>aspectj plugin
> >>
> >>
> >>>>>>property defined in my project.properties and i'm trying to run
> >>>>>>"maven aspectj:compile" or just "maven aspectj".
> >>>>>>
> >>>>>>[iajc] couldn't find aspectjrt.jar on classpath, checked:
> >>>>>> [iajc] /projects/new_project/database/RowIterator.jav
> >>>>>>a:14 The type RowIterator is already defined
> >>>>>> [iajc] public interface RowIterator extends Iterator {
> >>>>>> [iajc]
> >>>>>>Vincent Massol wrote:
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>
> >>>>>
> >>>>------------------------------------------------------------
> >>>>
> >>>>
> >>---------
> >>
> >>
> >>>>>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> >>>>>For additional commands, e-mail: users-help@maven.apache.org
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>
> >>>>
> >>>>
>
>>>---------------------------------------------------------------------
> >>>
> >>>
> >>>>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> >>>>For additional commands, e-mail: users-help@maven.apache.org
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>
> >>>
> >>>
>
>>---------------------------------------------------------------------
> >>
> >>
> >>>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> >>>For additional commands, e-mail: users-help@maven.apache.org
> >>>
> >>>
> >>
>
>>---------------------------------------------------------------------
> >>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> >>For additional commands, e-mail: users-help@maven.apache.org
> >>
> >>
> >>
> >>
> >>
> >
> >
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> >For additional commands, e-mail: users-help@maven.apache.org
> >
> >
> >
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: aspectj plugin & maven 1.0 rc2
Posted by "Charles N. Harvey III" <ch...@alloy.com>.
I finally got it working. And well. Does all the things I had ever
dreamed an aspectj-plugin would do. :)
I will update the documentation files over the next two or three days.
After that
what should I do with everything once I'm done?
Charlie
Carlos Sanchez wrote:
>Charles,
>
>Can you apply the patch I've made (
>http://jira.codehaus.org/secure/ViewIssue.jspa?key=MPASPECTJ-8 ) and then
>change aspectj:weave-internal and the xdocs to reflect your changes and
>submit it again to Jira?
>
>I think the only thing we should think about are the name of the dependency
>properties. I had though about <aspectj.weave> and <aspectj.weaveWith> but,
>what do you think?
>
>
>
>
>>-----Mensaje original-----
>>De: Vincent Massol [mailto:vmassol@pivolis.com]
>>Enviado el: jueves, 22 de abril de 2004 18:22
>>Para: 'Maven Users List'
>>CC: charlieh@alloy.com
>>Asunto: RE: aspectj plugin & maven 1.0 rc2
>>
>>Hi Charles / Carlos,
>>
>>Carlos has sent a big patch a few days back. I'm still
>>fighting to find some time to read it, analyze it and decide
>>whether we should apply it as is or with some tweaks (I think
>>we agree to remove the autoweave feature for example). There
>>are several parameters that come into account, one of them
>>being the fact that the new version of AspectJ supports
>>weaving aspects into directories (and not only jars).
>>
>>Anyway, I have to admit I am a bit overwhelmed and would
>>appreciate help on this. If Carlos and you could talk this
>>over and jointly submit a patch that satisfies everyone
>>(possibly using the latest version of AspectJ), it would help
>>tremendously. The patch should also include updates to xdocs
>>and the changes.xml file.
>>
>>Many thanks
>>-Vincent
>>
>>
>>
>>>-----Original Message-----
>>>From: Charles N. Harvey III [mailto:charlieh@alloy.com]
>>>Sent: 22 April 2004 18:11
>>>To: Maven Users List
>>>Subject: Re: aspectj plugin & maven 1.0 rc2
>>>
>>>A while back I inserted <injars> into my plugin.jelly file for the
>>>
>>>
>>aspecj
>>
>>
>>>plugin and its been going great. It gives me the ability
>>>
>>>
>>to weave an
>>
>>
>>>aspect into a pre-compiled jar. This feature is available
>>>
>>>
>>when using
>>iajc
>>
>>
>>>so it is not something I made up.
>>>
>>>Thing is, each time I upgrade or build from CVS I completely forget
>>>
>>>
>>that
>>
>>
>>>I had added it and my builds stop working. Is there any way to get
>>>
>>>
>>this
>>
>>
>>>added to the maven-aspectj-plugin/plugin.jelly file permanently? It
>>>
>>>
>>would
>>
>>
>>>be part of the weave-internal task.
>>>
>>>
>>> <!-- Private goal used to that when the jar:jar postgoal is called
>>>
>>>
>>we
>>
>>
>>>don't
>>> have to call aspectj:init and jar:jar twice -->
>>> <goal name="aspectj:weave-internal">
>>>
>>> <!-- fork to avoid BCEL library version conflict with maven
>>>
>>>
>>-->
>>
>>
>>> <ant:iajc fork="true" debug="${maven.aspectj.debug}"
>>> outjar="${maven.aspectj.outjar}"
>>> injars="${maven.aspectj.injar.nonweaved}"
>>>
>>>
>>>
>>sourceRootCopyFilter="${maven.aspectj.sourceRootCopyFilters}"
>>
>>
>>> emacssym="${maven.aspectj.emacssym}">
>>>
>>> <!-- Look for aspect libraries to weave into -->
>>> <ant:injars>
>>> <j:forEach var="artifact" items="${pom.artifacts}">
>>> <j:set var="dep" value="${artifact.dependency}"/>
>>> <j:if
>>>
>>>
>>test="${dep.getProperty('aspect.injar')=='true'}">
>>
>>
>>> <ant:pathelement location="${artifact.path}"/>
>>> </j:if>
>>> </j:forEach>
>>> </ant:injars>
>>>
>>> </ant:iajc>
>>>
>>> </goal>
>>>
>>>
>>>It would require jars that are being weaved into to have a
>>>
>>>
>><property>
>>
>>
>>>defined in the project.xml. I have called this property
>>>
>>>
>>"aspect.injar".
>>
>>
>>>So:
>>>
>>> <dependency>
>>> <groupId>myjar</groupId>
>>> <type>jar</type>
>>> <artifactId>myjar</artifactId>
>>> <version>2.0</version>
>>> <properties>
>>> <aspect.injar>true</aspect.injar>
>>> </properties>
>>> </dependency>
>>>
>>>How 'bout it? Should I file this in JIRA? Is the mailing
>>>
>>>
>>list good
>>
>>
>>>enough?
>>>Also, you can get rid of
>>> copyInjars="true"
>>>from the <ant:iajc> task since it is no longer required by
>>>
>>>
>>aspectj-1.1.1.
>>
>>
>>>Let me know your thoughts, I would really like to see this
>>>
>>>
>>get added.
>>
>>
>>>Thanks a lot.
>>>
>>>
>>>Charlie
>>>
>>>
>>>Vincent Massol wrote:
>>>
>>>
>>>
>>>>Yes, that's required. I guess we should add a check in the
>>>>
>>>>
>>plugin to
>>
>>
>>>>verify it's defined. Maybe you could file a JIRA issue on
>>>>
>>>>
>>the aspectj
>>
>>
>>>>plugin for this.
>>>>
>>>>Thanks
>>>>-Vincent
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>>-----Original Message-----
>>>>>From: Daniel Henrique Alves Lima
>>>>>
>>>>>
>>[mailto:email_daniel_h@yahoo.com.br]
>>
>>
>>>>>Sent: 22 April 2004 00:11
>>>>>To: Maven Users List
>>>>>Subject: Re: aspectj plugin & maven 1.0 rc2
>>>>>
>>>>>I've added the following line in my project.xml and the
>>>>>
>>>>>
>>error seems
>>to
>>
>>
>>>>>stop :
>>>>>
>>>>> <aspectSourceDirectory>src/java</aspectSourceDirectory>
>>>>>
>>>>>
>>>>>Daniel Henrique Alves Lima wrote:
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>> Now i'm getting this "already defined" message for all my
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>classes...
>>>>
>>>>
>>>>
>>>>
>>>>>> Can be a configuration problem ? I don't have any
>>>>>>
>>>>>>
>>aspectj plugin
>>
>>
>>>>>>property defined in my project.properties and i'm trying to run
>>>>>>"maven aspectj:compile" or just "maven aspectj".
>>>>>>
>>>>>>[iajc] couldn't find aspectjrt.jar on classpath, checked:
>>>>>> [iajc] /projects/new_project/database/RowIterator.jav
>>>>>>a:14 The type RowIterator is already defined
>>>>>> [iajc] public interface RowIterator extends Iterator {
>>>>>> [iajc]
>>>>>>Vincent Massol wrote:
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>------------------------------------------------------------
>>>>
>>>>
>>---------
>>
>>
>>>>>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>>>>For additional commands, e-mail: users-help@maven.apache.org
>>>>>
>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>>
>>>---------------------------------------------------------------------
>>>
>>>
>>>>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>>>For additional commands, e-mail: users-help@maven.apache.org
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>
>>>
>>---------------------------------------------------------------------
>>
>>
>>>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>>For additional commands, e-mail: users-help@maven.apache.org
>>>
>>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>For additional commands, e-mail: users-help@maven.apache.org
>>
>>
>>
>>
>>
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>For additional commands, e-mail: users-help@maven.apache.org
>
>
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
RE: aspectj plugin & maven 1.0 rc2
Posted by Carlos Sanchez <ap...@carlos.cousas.net>.
Charles,
Can you apply the patch I've made (
http://jira.codehaus.org/secure/ViewIssue.jspa?key=MPASPECTJ-8 ) and then
change aspectj:weave-internal and the xdocs to reflect your changes and
submit it again to Jira?
I think the only thing we should think about are the name of the dependency
properties. I had though about <aspectj.weave> and <aspectj.weaveWith> but,
what do you think?
> -----Mensaje original-----
> De: Vincent Massol [mailto:vmassol@pivolis.com]
> Enviado el: jueves, 22 de abril de 2004 18:22
> Para: 'Maven Users List'
> CC: charlieh@alloy.com
> Asunto: RE: aspectj plugin & maven 1.0 rc2
>
> Hi Charles / Carlos,
>
> Carlos has sent a big patch a few days back. I'm still
> fighting to find some time to read it, analyze it and decide
> whether we should apply it as is or with some tweaks (I think
> we agree to remove the autoweave feature for example). There
> are several parameters that come into account, one of them
> being the fact that the new version of AspectJ supports
> weaving aspects into directories (and not only jars).
>
> Anyway, I have to admit I am a bit overwhelmed and would
> appreciate help on this. If Carlos and you could talk this
> over and jointly submit a patch that satisfies everyone
> (possibly using the latest version of AspectJ), it would help
> tremendously. The patch should also include updates to xdocs
> and the changes.xml file.
>
> Many thanks
> -Vincent
>
> > -----Original Message-----
> > From: Charles N. Harvey III [mailto:charlieh@alloy.com]
> > Sent: 22 April 2004 18:11
> > To: Maven Users List
> > Subject: Re: aspectj plugin & maven 1.0 rc2
> >
> > A while back I inserted <injars> into my plugin.jelly file for the
> aspecj
> > plugin and its been going great. It gives me the ability
> to weave an
> > aspect into a pre-compiled jar. This feature is available
> when using
> iajc
> > so it is not something I made up.
> >
> > Thing is, each time I upgrade or build from CVS I completely forget
> that
> > I had added it and my builds stop working. Is there any way to get
> this
> > added to the maven-aspectj-plugin/plugin.jelly file permanently? It
> would
> > be part of the weave-internal task.
> >
> >
> > <!-- Private goal used to that when the jar:jar postgoal is called
> we
> > don't
> > have to call aspectj:init and jar:jar twice -->
> > <goal name="aspectj:weave-internal">
> >
> > <!-- fork to avoid BCEL library version conflict with maven
> -->
> > <ant:iajc fork="true" debug="${maven.aspectj.debug}"
> > outjar="${maven.aspectj.outjar}"
> > injars="${maven.aspectj.injar.nonweaved}"
> >
> sourceRootCopyFilter="${maven.aspectj.sourceRootCopyFilters}"
> > emacssym="${maven.aspectj.emacssym}">
> >
> > <!-- Look for aspect libraries to weave into -->
> > <ant:injars>
> > <j:forEach var="artifact" items="${pom.artifacts}">
> > <j:set var="dep" value="${artifact.dependency}"/>
> > <j:if
> test="${dep.getProperty('aspect.injar')=='true'}">
> > <ant:pathelement location="${artifact.path}"/>
> > </j:if>
> > </j:forEach>
> > </ant:injars>
> >
> > </ant:iajc>
> >
> > </goal>
> >
> >
> > It would require jars that are being weaved into to have a
> <property>
> > defined in the project.xml. I have called this property
> "aspect.injar".
> > So:
> >
> > <dependency>
> > <groupId>myjar</groupId>
> > <type>jar</type>
> > <artifactId>myjar</artifactId>
> > <version>2.0</version>
> > <properties>
> > <aspect.injar>true</aspect.injar>
> > </properties>
> > </dependency>
> >
> > How 'bout it? Should I file this in JIRA? Is the mailing
> list good
> > enough?
> > Also, you can get rid of
> > copyInjars="true"
> > from the <ant:iajc> task since it is no longer required by
> aspectj-1.1.1.
> >
> > Let me know your thoughts, I would really like to see this
> get added.
> >
> > Thanks a lot.
> >
> >
> > Charlie
> >
> >
> > Vincent Massol wrote:
> >
> > >Yes, that's required. I guess we should add a check in the
> plugin to
> > >verify it's defined. Maybe you could file a JIRA issue on
> the aspectj
> > >plugin for this.
> > >
> > >Thanks
> > >-Vincent
> > >
> > >
> > >
> > >>-----Original Message-----
> > >>From: Daniel Henrique Alves Lima
> [mailto:email_daniel_h@yahoo.com.br]
> > >>Sent: 22 April 2004 00:11
> > >>To: Maven Users List
> > >>Subject: Re: aspectj plugin & maven 1.0 rc2
> > >>
> > >>I've added the following line in my project.xml and the
> error seems
> to
> > >>stop :
> > >>
> > >> <aspectSourceDirectory>src/java</aspectSourceDirectory>
> > >>
> > >>
> > >>Daniel Henrique Alves Lima wrote:
> > >>
> > >>
> > >>
> > >>> Now i'm getting this "already defined" message for all my
> > >>>
> > >>>
> > >classes...
> > >
> > >
> > >>> Can be a configuration problem ? I don't have any
> aspectj plugin
> > >>>property defined in my project.properties and i'm trying to run
> > >>>"maven aspectj:compile" or just "maven aspectj".
> > >>>
> > >>>[iajc] couldn't find aspectjrt.jar on classpath, checked:
> > >>> [iajc] /projects/new_project/database/RowIterator.jav
> > >>>a:14 The type RowIterator is already defined
> > >>> [iajc] public interface RowIterator extends Iterator {
> > >>> [iajc]
> > >>>Vincent Massol wrote:
> > >>>
> > >>>
> > >>
> > >>
> >
> >>------------------------------------------------------------
> ---------
> > >>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > >>For additional commands, e-mail: users-help@maven.apache.org
> > >>
> > >>
> > >
> > >
> > >
> >
> >---------------------------------------------------------------------
> > >To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > >For additional commands, e-mail: users-help@maven.apache.org
> > >
> > >
> > >
> > >
> > >
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
RE: aspectj plugin & maven 1.0 rc2
Posted by Vincent Massol <vm...@pivolis.com>.
Hi Charles / Carlos,
Carlos has sent a big patch a few days back. I'm still fighting to find
some time to read it, analyze it and decide whether we should apply it
as is or with some tweaks (I think we agree to remove the autoweave
feature for example). There are several parameters that come into
account, one of them being the fact that the new version of AspectJ
supports weaving aspects into directories (and not only jars).
Anyway, I have to admit I am a bit overwhelmed and would appreciate help
on this. If Carlos and you could talk this over and jointly submit a
patch that satisfies everyone (possibly using the latest version of
AspectJ), it would help tremendously. The patch should also include
updates to xdocs and the changes.xml file.
Many thanks
-Vincent
> -----Original Message-----
> From: Charles N. Harvey III [mailto:charlieh@alloy.com]
> Sent: 22 April 2004 18:11
> To: Maven Users List
> Subject: Re: aspectj plugin & maven 1.0 rc2
>
> A while back I inserted <injars> into my plugin.jelly file for the
aspecj
> plugin and its been going great. It gives me the ability to weave an
> aspect into a pre-compiled jar. This feature is available when using
iajc
> so it is not something I made up.
>
> Thing is, each time I upgrade or build from CVS I completely forget
that
> I had added it and my builds stop working. Is there any way to get
this
> added to the maven-aspectj-plugin/plugin.jelly file permanently? It
would
> be part of the weave-internal task.
>
>
> <!-- Private goal used to that when the jar:jar postgoal is called
we
> don't
> have to call aspectj:init and jar:jar twice -->
> <goal name="aspectj:weave-internal">
>
> <!-- fork to avoid BCEL library version conflict with maven
-->
> <ant:iajc fork="true" debug="${maven.aspectj.debug}"
> outjar="${maven.aspectj.outjar}"
> injars="${maven.aspectj.injar.nonweaved}"
>
sourceRootCopyFilter="${maven.aspectj.sourceRootCopyFilters}"
> emacssym="${maven.aspectj.emacssym}">
>
> <!-- Look for aspect libraries to weave into -->
> <ant:injars>
> <j:forEach var="artifact" items="${pom.artifacts}">
> <j:set var="dep" value="${artifact.dependency}"/>
> <j:if test="${dep.getProperty('aspect.injar')=='true'}">
> <ant:pathelement location="${artifact.path}"/>
> </j:if>
> </j:forEach>
> </ant:injars>
>
> </ant:iajc>
>
> </goal>
>
>
> It would require jars that are being weaved into to have a <property>
> defined in the project.xml. I have called this property
"aspect.injar".
> So:
>
> <dependency>
> <groupId>myjar</groupId>
> <type>jar</type>
> <artifactId>myjar</artifactId>
> <version>2.0</version>
> <properties>
> <aspect.injar>true</aspect.injar>
> </properties>
> </dependency>
>
> How 'bout it? Should I file this in JIRA? Is the mailing list good
> enough?
> Also, you can get rid of
> copyInjars="true"
> from the <ant:iajc> task since it is no longer required by
aspectj-1.1.1.
>
> Let me know your thoughts, I would really like to see this get added.
>
> Thanks a lot.
>
>
> Charlie
>
>
> Vincent Massol wrote:
>
> >Yes, that's required. I guess we should add a check in the plugin to
> >verify it's defined. Maybe you could file a JIRA issue on the aspectj
> >plugin for this.
> >
> >Thanks
> >-Vincent
> >
> >
> >
> >>-----Original Message-----
> >>From: Daniel Henrique Alves Lima
[mailto:email_daniel_h@yahoo.com.br]
> >>Sent: 22 April 2004 00:11
> >>To: Maven Users List
> >>Subject: Re: aspectj plugin & maven 1.0 rc2
> >>
> >>I've added the following line in my project.xml and the error seems
to
> >>stop :
> >>
> >> <aspectSourceDirectory>src/java</aspectSourceDirectory>
> >>
> >>
> >>Daniel Henrique Alves Lima wrote:
> >>
> >>
> >>
> >>> Now i'm getting this "already defined" message for all my
> >>>
> >>>
> >classes...
> >
> >
> >>> Can be a configuration problem ? I don't have any aspectj plugin
> >>>property defined in my project.properties and i'm trying to run
> >>>"maven aspectj:compile" or just "maven aspectj".
> >>>
> >>>[iajc] couldn't find aspectjrt.jar on classpath, checked:
> >>> [iajc] /projects/new_project/database/RowIterator.jav
> >>>a:14 The type RowIterator is already defined
> >>> [iajc] public interface RowIterator extends Iterator {
> >>> [iajc]
> >>>Vincent Massol wrote:
> >>>
> >>>
> >>
> >>
>
>>---------------------------------------------------------------------
> >>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> >>For additional commands, e-mail: users-help@maven.apache.org
> >>
> >>
> >
> >
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> >For additional commands, e-mail: users-help@maven.apache.org
> >
> >
> >
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
RE: aspectj plugin & maven 1.0 rc2
Posted by Carlos Sanchez <ap...@carlos.cousas.net>.
I agree that it should be added, I added a comment to my patch where I
suggested changing
<aspectj.weave>true</aspectj.weave>
to
<aspectj.weaveWith>true</aspectj.weaveWith>
so people don't confuse weawing with the aspects from a jar with weaving the
clases of a jar.
I think Vincent would appreciate if you post the patch in JIRA and document
it.
> -----Mensaje original-----
> De: Charles N. Harvey III [mailto:charlieh@alloy.com]
> Enviado el: jueves, 22 de abril de 2004 18:11
> Para: Maven Users List
> Asunto: Re: aspectj plugin & maven 1.0 rc2
>
> A while back I inserted <injars> into my plugin.jelly file
> for the aspecj plugin and its been going great. It gives me
> the ability to weave an aspect into a pre-compiled jar. This
> feature is available when using iajc so it is not something I made up.
>
> Thing is, each time I upgrade or build from CVS I completely
> forget that I had added it and my builds stop working. Is
> there any way to get this added to the
> maven-aspectj-plugin/plugin.jelly file permanently? It would
> be part of the weave-internal task.
>
>
> <!-- Private goal used to that when the jar:jar postgoal is
> called we don't
> have to call aspectj:init and jar:jar twice -->
> <goal name="aspectj:weave-internal">
>
> <!-- fork to avoid BCEL library version conflict with
> maven -->
> <ant:iajc fork="true" debug="${maven.aspectj.debug}"
> outjar="${maven.aspectj.outjar}"
> injars="${maven.aspectj.injar.nonweaved}"
>
> sourceRootCopyFilter="${maven.aspectj.sourceRootCopyFilters}"
> emacssym="${maven.aspectj.emacssym}">
>
> <!-- Look for aspect libraries to weave into -->
> <ant:injars>
> <j:forEach var="artifact" items="${pom.artifacts}">
> <j:set var="dep" value="${artifact.dependency}"/>
> <j:if test="${dep.getProperty('aspect.injar')=='true'}">
> <ant:pathelement location="${artifact.path}"/>
> </j:if>
> </j:forEach>
> </ant:injars>
>
> </ant:iajc>
>
> </goal>
>
>
> It would require jars that are being weaved into to have a
> <property> defined in the project.xml. I have called this
> property "aspect.injar".
> So:
>
> <dependency>
> <groupId>myjar</groupId>
> <type>jar</type>
> <artifactId>myjar</artifactId>
> <version>2.0</version>
> <properties>
> <aspect.injar>true</aspect.injar>
> </properties>
> </dependency>
>
> How 'bout it? Should I file this in JIRA? Is the mailing
> list good enough?
> Also, you can get rid of
> copyInjars="true"
> from the <ant:iajc> task since it is no longer required by
> aspectj-1.1.1.
>
> Let me know your thoughts, I would really like to see this get added.
>
> Thanks a lot.
>
>
> Charlie
>
>
> Vincent Massol wrote:
>
> >Yes, that's required. I guess we should add a check in the plugin to
> >verify it's defined. Maybe you could file a JIRA issue on
> the aspectj
> >plugin for this.
> >
> >Thanks
> >-Vincent
> >
> >
> >
> >>-----Original Message-----
> >>From: Daniel Henrique Alves Lima
> [mailto:email_daniel_h@yahoo.com.br]
> >>Sent: 22 April 2004 00:11
> >>To: Maven Users List
> >>Subject: Re: aspectj plugin & maven 1.0 rc2
> >>
> >>I've added the following line in my project.xml and the
> error seems to
> >>stop :
> >>
> >> <aspectSourceDirectory>src/java</aspectSourceDirectory>
> >>
> >>
> >>Daniel Henrique Alves Lima wrote:
> >>
> >>
> >>
> >>> Now i'm getting this "already defined" message for all my
> >>>
> >>>
> >classes...
> >
> >
> >>> Can be a configuration problem ? I don't have any
> aspectj plugin
> >>>property defined in my project.properties and i'm trying to run
> >>>"maven aspectj:compile" or just "maven aspectj".
> >>>
> >>>[iajc] couldn't find aspectjrt.jar on classpath, checked:
> >>> [iajc] /projects/new_project/database/RowIterator.jav
> >>>a:14 The type RowIterator is already defined
> >>> [iajc] public interface RowIterator extends Iterator {
> >>> [iajc]
> >>>Vincent Massol wrote:
> >>>
> >>>
> >>
> >>
> >>------------------------------------------------------------
> ---------
> >>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> >>For additional commands, e-mail: users-help@maven.apache.org
> >>
> >>
> >
> >
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> >For additional commands, e-mail: users-help@maven.apache.org
> >
> >
> >
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: aspectj plugin & maven 1.0 rc2
Posted by "Charles N. Harvey III" <ch...@alloy.com>.
A while back I inserted <injars> into my plugin.jelly file for the aspecj
plugin and its been going great. It gives me the ability to weave an
aspect into a pre-compiled jar. This feature is available when using iajc
so it is not something I made up.
Thing is, each time I upgrade or build from CVS I completely forget that
I had added it and my builds stop working. Is there any way to get this
added to the maven-aspectj-plugin/plugin.jelly file permanently? It would
be part of the weave-internal task.
<!-- Private goal used to that when the jar:jar postgoal is called we
don't
have to call aspectj:init and jar:jar twice -->
<goal name="aspectj:weave-internal">
<!-- fork to avoid BCEL library version conflict with maven -->
<ant:iajc fork="true" debug="${maven.aspectj.debug}"
outjar="${maven.aspectj.outjar}"
injars="${maven.aspectj.injar.nonweaved}"
sourceRootCopyFilter="${maven.aspectj.sourceRootCopyFilters}"
emacssym="${maven.aspectj.emacssym}">
<!-- Look for aspect libraries to weave into -->
<ant:injars>
<j:forEach var="artifact" items="${pom.artifacts}">
<j:set var="dep" value="${artifact.dependency}"/>
<j:if test="${dep.getProperty('aspect.injar')=='true'}">
<ant:pathelement location="${artifact.path}"/>
</j:if>
</j:forEach>
</ant:injars>
</ant:iajc>
</goal>
It would require jars that are being weaved into to have a <property>
defined in the project.xml. I have called this property "aspect.injar".
So:
<dependency>
<groupId>myjar</groupId>
<type>jar</type>
<artifactId>myjar</artifactId>
<version>2.0</version>
<properties>
<aspect.injar>true</aspect.injar>
</properties>
</dependency>
How 'bout it? Should I file this in JIRA? Is the mailing list good enough?
Also, you can get rid of
copyInjars="true"
from the <ant:iajc> task since it is no longer required by aspectj-1.1.1.
Let me know your thoughts, I would really like to see this get added.
Thanks a lot.
Charlie
Vincent Massol wrote:
>Yes, that's required. I guess we should add a check in the plugin to
>verify it's defined. Maybe you could file a JIRA issue on the aspectj
>plugin for this.
>
>Thanks
>-Vincent
>
>
>
>>-----Original Message-----
>>From: Daniel Henrique Alves Lima [mailto:email_daniel_h@yahoo.com.br]
>>Sent: 22 April 2004 00:11
>>To: Maven Users List
>>Subject: Re: aspectj plugin & maven 1.0 rc2
>>
>>I've added the following line in my project.xml and the error seems to
>>stop :
>>
>> <aspectSourceDirectory>src/java</aspectSourceDirectory>
>>
>>
>>Daniel Henrique Alves Lima wrote:
>>
>>
>>
>>> Now i'm getting this "already defined" message for all my
>>>
>>>
>classes...
>
>
>>> Can be a configuration problem ? I don't have any aspectj plugin
>>>property defined in my project.properties and i'm trying to run
>>>"maven aspectj:compile" or just "maven aspectj".
>>>
>>>[iajc] couldn't find aspectjrt.jar on classpath, checked:
>>> [iajc] /projects/new_project/database/RowIterator.jav
>>>a:14 The type RowIterator is already defined
>>> [iajc] public interface RowIterator extends Iterator {
>>> [iajc]
>>>Vincent Massol wrote:
>>>
>>>
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>For additional commands, e-mail: users-help@maven.apache.org
>>
>>
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>For additional commands, e-mail: users-help@maven.apache.org
>
>
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
RE: aspectj plugin & maven 1.0 rc2
Posted by Vincent Massol <vm...@pivolis.com>.
Yes, that's required. I guess we should add a check in the plugin to
verify it's defined. Maybe you could file a JIRA issue on the aspectj
plugin for this.
Thanks
-Vincent
> -----Original Message-----
> From: Daniel Henrique Alves Lima [mailto:email_daniel_h@yahoo.com.br]
> Sent: 22 April 2004 00:11
> To: Maven Users List
> Subject: Re: aspectj plugin & maven 1.0 rc2
>
> I've added the following line in my project.xml and the error seems to
> stop :
>
> <aspectSourceDirectory>src/java</aspectSourceDirectory>
>
>
> Daniel Henrique Alves Lima wrote:
>
> > Now i'm getting this "already defined" message for all my
classes...
> > Can be a configuration problem ? I don't have any aspectj plugin
> > property defined in my project.properties and i'm trying to run
> > "maven aspectj:compile" or just "maven aspectj".
> >
> > [iajc] couldn't find aspectjrt.jar on classpath, checked:
> > [iajc] /projects/new_project/database/RowIterator.jav
> > a:14 The type RowIterator is already defined
> > [iajc] public interface RowIterator extends Iterator {
> > [iajc]
> > Vincent Massol wrote:
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
RE: aspectj plugin & maven 1.0 rc2
Posted by Carlos Sanchez <ap...@carlos.cousas.net>.
That line is mandatory
> -----Mensaje original-----
> De: Daniel Henrique Alves Lima [mailto:email_daniel_h@yahoo.com.br]
> Enviado el: jueves, 22 de abril de 2004 0:11
> Para: Maven Users List
> Asunto: Re: aspectj plugin & maven 1.0 rc2
>
> I've added the following line in my project.xml and the error
> seems to stop :
>
> <aspectSourceDirectory>src/java</aspectSourceDirectory>
>
>
> Daniel Henrique Alves Lima wrote:
>
> > Now i'm getting this "already defined" message for all
> my classes...
> > Can be a configuration problem ? I don't have any aspectj plugin
> > property defined in my project.properties and i'm trying to
> run "maven
> > aspectj:compile" or just "maven aspectj".
> >
> > [iajc] couldn't find aspectjrt.jar on classpath, checked:
> > [iajc] /projects/new_project/database/RowIterator.jav
> > a:14 The type RowIterator is already defined
> > [iajc] public interface RowIterator extends Iterator {
> > [iajc]
> > Vincent Massol wrote:
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: aspectj plugin & maven 1.0 rc2
Posted by Daniel Henrique Alves Lima <em...@yahoo.com.br>.
I've added the following line in my project.xml and the error seems to
stop :
<aspectSourceDirectory>src/java</aspectSourceDirectory>
Daniel Henrique Alves Lima wrote:
> Now i'm getting this "already defined" message for all my classes...
> Can be a configuration problem ? I don't have any aspectj plugin
> property defined in my project.properties and i'm trying to run
> "maven aspectj:compile" or just "maven aspectj".
>
> [iajc] couldn't find aspectjrt.jar on classpath, checked:
> [iajc] /projects/new_project/database/RowIterator.jav
> a:14 The type RowIterator is already defined
> [iajc] public interface RowIterator extends Iterator {
> [iajc]
> Vincent Massol wrote:
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: aspectj plugin & maven 1.0 rc2
Posted by Daniel Henrique Alves Lima <em...@yahoo.com.br>.
Now i'm getting this "already defined" message for all my classes...
Can be a configuration problem ? I don't have any aspectj plugin
property defined in my project.properties and i'm trying to run
"maven aspectj:compile" or just "maven aspectj".
[iajc] couldn't find aspectjrt.jar on classpath, checked:
[iajc] /projects/new_project/database/RowIterator.jav
a:14 The type RowIterator is already defined
[iajc] public interface RowIterator extends Iterator {
[iajc]
Vincent Massol wrote:
>Hi Daniel,
>
>You're not supposed to change the aspectj version used by the aspectj
>plugin. The dependency is automatically handled by the aspectj plugin.
>
>Could you ensure you have internet access, clean your plugin cache
>directory, call the aspectj plugin again and send us the console log?
>
>Thanks
>-Vincent
>
>
>
>>-----Original Message-----
>>From: Daniel Henrique Alves Lima [mailto:email_daniel_h@yahoo.com.br]
>>Sent: 21 April 2004 22:12
>>To: Maven Users List
>>Subject: aspectj plugin & maven 1.0 rc2
>>
>> Hi, everybody !
>>
>> I'm trying to use aspectj plugin with maven 1.0rc2 but i'm getting
>>the following error:
>>
>>aspectj:weave-internal:
>> [move] Moving 1 files to /projects/new_project/target
>>copyInjars not required since 1.1.1.
>>
>> [iajc] ignored: copyInJars at
>> [iajc] couldn't find aspectjrt.jar on classpath, checked:
>> [iajc] manifest not copied: 'META-INF/MANIFEST.MF' in JAR
>>'/projects/new_project/target/new_project-1.0-b1-notweaved.jar'
>> [iajc] ABORT
>> [iajc] Exception thrown from AspectJ 1.1.1
>>
>>
>> I've tried to add a dependency for aspectjrt.jar in my project.xml
>>
>>
>:
>
>
>> <dependency>
>> <groupId>aspectj</groupId>
>> <artifactId>aspectjrt</artifactId>
>> <version>1.1.1</version>
>> <url>http://aspectj.org/</url>
>> </dependency>
>>
>> But it doesn't work. Any glue ?
>>
>> How can i know/change the version of aspectj plugin that maven is
>>using ?
>>
>>
>>Thanks !
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>For additional commands, e-mail: users-help@maven.apache.org
>>
>>
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>For additional commands, e-mail: users-help@maven.apache.org
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
RE: aspectj plugin & maven 1.0 rc2
Posted by Vincent Massol <vm...@pivolis.com>.
Hi Daniel,
You're not supposed to change the aspectj version used by the aspectj
plugin. The dependency is automatically handled by the aspectj plugin.
Could you ensure you have internet access, clean your plugin cache
directory, call the aspectj plugin again and send us the console log?
Thanks
-Vincent
> -----Original Message-----
> From: Daniel Henrique Alves Lima [mailto:email_daniel_h@yahoo.com.br]
> Sent: 21 April 2004 22:12
> To: Maven Users List
> Subject: aspectj plugin & maven 1.0 rc2
>
> Hi, everybody !
>
> I'm trying to use aspectj plugin with maven 1.0rc2 but i'm getting
> the following error:
>
> aspectj:weave-internal:
> [move] Moving 1 files to /projects/new_project/target
> copyInjars not required since 1.1.1.
>
> [iajc] ignored: copyInJars at
> [iajc] couldn't find aspectjrt.jar on classpath, checked:
> [iajc] manifest not copied: 'META-INF/MANIFEST.MF' in JAR
> '/projects/new_project/target/new_project-1.0-b1-notweaved.jar'
> [iajc] ABORT
> [iajc] Exception thrown from AspectJ 1.1.1
>
>
> I've tried to add a dependency for aspectjrt.jar in my project.xml
:
>
> <dependency>
> <groupId>aspectj</groupId>
> <artifactId>aspectjrt</artifactId>
> <version>1.1.1</version>
> <url>http://aspectj.org/</url>
> </dependency>
>
> But it doesn't work. Any glue ?
>
> How can i know/change the version of aspectj plugin that maven is
> using ?
>
>
> Thanks !
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
RE: aspectj plugin & maven 1.0 rc2
Posted by Carlos Sanchez <ap...@carlos.cousas.net>.
Hi
You can check the new features expected to be added in version 3.0
http://jira.codehaus.org/secure/ViewIssue.jspa?key=MPASPECTJ-8
Or download from http://oness.sourceforge.net/maven-aspectj-plugin a
temporal plugin with the new features which will be available until new
official release.
> -----Mensaje original-----
> De: Daniel Henrique Alves Lima [mailto:email_daniel_h@yahoo.com.br]
> Enviado el: miƩrcoles, 21 de abril de 2004 22:12
> Para: Maven Users List
> Asunto: aspectj plugin & maven 1.0 rc2
>
> Hi, everybody !
>
> I'm trying to use aspectj plugin with maven 1.0rc2 but
> i'm getting the following error:
>
> aspectj:weave-internal:
> [move] Moving 1 files to /projects/new_project/target
> copyInjars not required since 1.1.1.
>
> [iajc] ignored: copyInJars at
> [iajc] couldn't find aspectjrt.jar on classpath, checked:
> [iajc] manifest not copied: 'META-INF/MANIFEST.MF' in JAR
> '/projects/new_project/target/new_project-1.0-b1-notweaved.jar'
> [iajc] ABORT
> [iajc] Exception thrown from AspectJ 1.1.1
>
>
> I've tried to add a dependency for aspectjrt.jar in my
> project.xml :
>
> <dependency>
> <groupId>aspectj</groupId>
> <artifactId>aspectjrt</artifactId>
> <version>1.1.1</version>
> <url>http://aspectj.org/</url>
> </dependency>
>
> But it doesn't work. Any glue ?
>
> How can i know/change the version of aspectj plugin that maven is
> using ?
>
>
> Thanks !
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org