Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] AspectJ weaving with org.eclipse.equinox.weaving.hook and frameworkextension

> Have you solved it? I am trying to achieve the same thing, but weaving
doesn't happen in my tests..
>
> thanks,
> iulian

Hi iulian,

I ended up having tycho resolve the weaving hook with p2 into the local
Maven repository to install it in a pre-integration-test step manually.
Afterwards it can be referenced like a regular maven dependency.
Only downside is, that you depend on a specific version that might
change over time.

Markus

<plugins>
 <plugin>
  <groupId>org.apache.maven.plugins</groupId>
  <artifactId>maven-install-plugin</artifactId>
  <version>2.2</version>
   <executions>
	<execution>
	 <id>it-preparation</id>
	 <phase>pre-integration-test</phase>
	 <goals>
	  <goal>install-file</goal>
	 </goals>
	 <configuration>
	
<file>${settings.localRepository}/p2/osgi/bundle/org.eclipse.equinox.weaving.hook/1.0.0.v20100503/org.eclipse.equinox.weaving.hook-1.0.0.v20100503.jar</file>
         <groupId>yourcustomFoobarGroupID</groupId>
	 <artifactId>org.eclipse.equinox.weaving.hook</artifactId>
         <version>1.0.0.v20100503</version>
         <packaging>jar</packaging>
	</configuration>
       </execution>
     </executions>
   </plugin>

....

<!-- Enable JDT weaving -->
<frameworkExtensions>
 <frameworkExtension>
  <groupId>tlatoolbox</groupId>
  <artifactId>org.eclipse.equinox.weaving.hook</artifactId>
  <version>1.0.0.v20100503</version>
 </frameworkExtension>
</frameworkExtensions>




Back to the top