|
View:
New views
1 Messages
—
Rating Filter:
Alert me
|
|
|
[SE-dev] Maven + OSGi + aspectJHi 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. Do you have any idea how we may solve our problem ? Cheers, Romain --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
| Free embeddable forum powered by Nabble | Forum Help |