Hi all, sorry for the very late answer, I had skiped this mail.
Actually when I mention in the pom: > <export.packages>org.simexplorer.core.commons.tools.caching;aspects=CachingAspect;aspect-policy:=opt-out;uses:="org.aspectj.lang.annotation,org.aspectj.lang";version="0.3"</export.packages> In the resulting manifest I get: > Export-Package: org.simexplorer.core.commons.tools.caching;aspects=Cac > hingAspect;uses:="org.aspectj.lang.annotation,org.aspectj.lang";versi > on="0.3" No trace of the aspect-policy. Any idea why ? Cheers, Romain Le dimanche 06 décembre 2009 à 14:55 +0800, Stuart McCulloch a écrit : > 2009/11/9 Romain <[email protected]> > > > Hi all, > > > > our project SimExplorer (www.simexplorer.org) is based on equinoxe and > > uses aspectJ. We are trying to manage the dependancies using maven but > > we still have some poblems. > > > > We are using the maven-bundle-plugin to automatically generate the > > manifests of the bundle. In some bundles containing aspects, we need to > > add some information to Export-Package in order to get the aspect > > working in equinoxe, for instance: > > > > > Export-Package: > > org.simexplorer.tools,org.simexplorer.tools.methodcache;aspects=CachingAspect;aspect-policy:=opt-out > > > > To package our bundles we are using this configuration of > > maven-bundle-plugin: > > > > > <plugin> > > > <groupId>org.apache.felix</groupId> > > > <artifactId>maven-bundle-plugin</artifactId> > > > <extensions>true</extensions> > > > <configuration> > > > <manifestLocation>target/META-INF</manifestLocation> > > > <finalName>${symbolic.name > > }_${project.version}</finalName> > > > <instructions> > > > <Bundle-Name>${bundle.name}</Bundle-Name> > > > <Bundle-SymbolicName>${symbolic.name > > }</Bundle-SymbolicName> > > > > > <Bundle-Description>${bundle.description}</Bundle-Description> > > > > > <Import-Package>${import.packages}</Import-Package> > > > > > <Export-Package>!${bundle.namespace}.internal.*,${bundle.namespace}.*;version="${pom.version}",${export.packages}</Export-Package> > > > > > <Include-Resource>${include.resources}</Include-Resource> > > > > > <Require-Bundle>${require.bundle}</Require-Bundle> > > > > > <Eclipse-BuddyPolicy>${eclipse.buddypolicy}</Eclipse-BuddyPolicy> > > > > > <Bundle-Activator>${bundle.activator}</Bundle-Activator> > > > > > <Bundle-ActivationPolicy>${bundle.activationpolicy}</Bundle-ActivationPolicy> > > > </instructions> > > > </configuration> > > > </plugin> > > > > Then the properties are defined in each bundle. In this context, we cannot > > find > > a way to add the "aspects=CachingAspect;aspect-policy:=opt-out" string in > > the > > manifest of the bundle containing the caching aspect. > > > > can't you just add it to your export.packages property for that bundle, ie: > > export.packages = org.foo.*;aspects=CachingAspect;aspect-policy:=opt-out > > or something like that... > > > > Do you have any idea how we may solve our problem ? > > > > Cheers, > > Romain > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [email protected] > > For additional commands, e-mail: [email protected] > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]

