> -----Original Message----- > From: Charles N. Harvey III [mailto:[EMAIL PROTECTED] > Sent: Tuesday, January 27, 2004 11:27 PM > To: Maven Users List > Subject: Re: aspectj injars > > > Seriously though... > Anybody know how to do this? > > Project A creates a jar - projectA.jar > > Project B wants to weave into projectA.jar >
What about using 3rd project to do this (let's call it projectC)? E.g. 1. Project A creates a jar (let's call it projectA.jar) and puts it to the repository 2. Project B1 creates an artifact with aspectj stuff in it (projectB1.aspect) and puts it to the repository 2. Project B2 creates an aspectj artifact (projectB1.aspect) and puts it the to repository 3. Project C woves projectB1.aspect projectB2.aspect into projectA.jar > Where do I list this? What property do I set in project.properties > or project.xml to make this happen? Two months ago I hacked apart > the aspectj plugin.jelly and then added <aspectj.injar> as a property > of the <dependency> jars. I lost that work because I didn't save it > anywhere. > > Is there a correct way to do this? The only place in > plugin.jelly that > has inJars it has it set to "maven.aspectj.injar.nonweaved". > That doesn't > make any sense. When I set that variable maven creates two jars, one > with the aspects in it, and one without. Neither of which includes > projectA.jar. > > Any ideas at all would be extremely helpful. > First remark is that jars with aspectj stuff inside them IMHO deserve their own type and no special properties in the POM have to be used. So POM of projectC can look like: <dependency> <groupId>projectA</groupId> <artifactId>projectA</artifactId> <version>1.0</version> <type>jar</type> </dependency> <dependency> <groupId>projectB1</groupId> <artifactId>projectB1</artifactId> <version>1.0</version> <type>aspectj</type> </dependency> <dependency> <groupId>projectB2</groupId> <artifactId>projectB2</artifactId> <version>1.0</version> <type>aspectj</type> </dependency> Now aspectj plugin plugin will get a single jar listed in this POM (projectA) and use all aspectj libs (projectB1, projectB2) and introduce them in the projectA. Michal --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
