Woohooo, it works great! Thanks. 2008/3/28, Stuart McCulloch <[EMAIL PROTECTED]>: > > On 28/03/2008, Sebastien ARBOGAST <[EMAIL PROTECTED]> wrote: > > > > I'm trying to build a bundle that I intend to deploy to Solstice ( > > http://www.arum.co.uk/solstice.php).Basically, the idea is to expose > OSGi > > services via BlazeDS and Flex. > > When I had to embed a Flex UI in a normal web-app, I would have two > Maven > > modules: > > - one for the Flex project, built with Israfil flex mojos > > - one for the webapp itself, where I would embed the swf produced by the > > first module > > Something like that: > > > > > http://www.israfil.net/projects/mojo/maven-flex2-plugin/examples/simple_war_project.html > > > > Now I'm trying to do something similar except it's not a WAR but a JAR > > bundle that I want in the second module. > > This second module was created with spring-osgi-bundle-archetype: > > > > <project> > > <parent> > > <artifactId>basement-people</artifactId> > > <groupId>org.epseelon.basement</groupId> > > <version>1.0</version> > > </parent> > > <modelVersion>4.0.0</modelVersion> > > <groupId>org.epseelon.basement</groupId> > > <artifactId>org.epseelon.basement.people</artifactId> > > <packaging>bundle</packaging> > > <name>Spring OSGi Bundle</name> > > <version>1.0.0</version> > > <url>http://www.springframework.org/osgi</url> > > <build> > > <resources> > > <resource> > > <directory>src/main/resources</directory> > > </resource> > > <resource> > > <directory>.</directory> > > <includes> > > <include>plugin.xml</include> > > <include>META-INF/*</include> > > </includes> > > </resource> > > </resources> > > <plugins> > > <plugin> > > <groupId>org.apache.felix</groupId> > > <artifactId>maven-bundle-plugin</artifactId> > > <version>1.0.0</version> > > > > have you tried a more recent version of the bundleplugin, like 1.4.0 ? > > > <extensions>true</extensions> > > <configuration> > > <manifestLocation>META-INF</manifestLocation> > > <instructions> > > <Export-Package>!org.epseelon.basement.impl, > > org.epseelon.basement*</Export-Package> > > <Import-Package>*</Import-Package> > > > > <Include-Resource>src/main/resources</Include-Resource> > > <Solstice-Type>App</Solstice-Type> > > </instructions> > > </configuration> > > </plugin> > > <plugin> > > <groupId>org.apache.felix</groupId> > > <artifactId>maven-bundle-plugin</artifactId> > > <executions> > > <execution> > > <id>bundle-manifest</id> > > <phase>process-classes</phase> > > <goals> > > <goal>manifest</goal> > > </goals> > > </execution> > > </executions> > > </plugin> > > </plugins> > > </build> > > <dependencies> > > ... > > </dependencies> > > > > </project> > > > > Based on that, what I want is to embed the swf package produced by > another > > module into the bundle package produced by this one. > > > > 2008/3/28, Felix Meschberger <[EMAIL PROTECTED]>: > > > > > > > > Hi Sebastien, > > > > > > Am Donnerstag, den 27.03.2008, 20:42 +0100 schrieb Sebastien ARBOGAST: > > > > > > > Is there a way to embed a swf file (so not a java file) into the > > target > > > > bundle, knowing that this swf file is produced by another maven > > module? > > > > When I try to add the swf module as a dependency, I get the > following > > > > message: > > > > > > > > > Not sure, what exactly you are doing, hence it is difficult to help. > > > Maybe it would be worth it providing your pom.xml file. > > > > > > Regards > > > Felix > > > > > > > > > > > > > > org.apache.maven.lifecycle.LifecycleExecutionException: Error > > > calculating > > > > classpath for project MavenProject: > > > > org.epseelon.basement:org.epseelon.basement.people:1.0.0 @ > > > > /Users/sarbogast/dev/basement/people/bundle/pom.xml > > > > at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals( > > > > DefaultLifecycleExecutor.java:564) > > > > at > > > > > > > > > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle > > > > (DefaultLifecycleExecutor.java:480) > > > > at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal( > > > > DefaultLifecycleExecutor.java:459) > > > > at > > > > > > > > > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures > > > > (DefaultLifecycleExecutor.java:311) > > > > at > > > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments( > > > > DefaultLifecycleExecutor.java:278) > > > > at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute( > > > > DefaultLifecycleExecutor.java:143) > > > > at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:333) > > > > at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:126) > > > > at org.apache.maven.cli.MavenCli.main(MavenCli.java:282) > > > > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > > > > at sun.reflect.NativeMethodAccessorImpl.invoke( > > > NativeMethodAccessorImpl.java > > > > :39) > > > > at sun.reflect.DelegatingMethodAccessorImpl.invoke( > > > > DelegatingMethodAccessorImpl.java:25) > > > > at java.lang.reflect.Method.invoke(Method.java:597) > > > > at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java > :315) > > > > at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) > > > > at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java > > :430) > > > > at org.codehaus.classworlds.Launcher.main(Launcher.java:375) > > > > Caused by: org.apache.maven.plugin.MojoExecutionException: Error > > > calculating > > > > classpath for project MavenProject: > > > > org.epseelon.basement:org.epseelon.basement.people:1.0.0 @ > > > > /Users/sarbogast/dev/basement/people/bundle/pom.xml > > > > at org.apache.felix.bundleplugin.BundlePlugin.execute( > > BundlePlugin.java > > > :126) > > > > at org.apache.felix.bundleplugin.BundlePlugin.execute( > > BundlePlugin.java > > > :118) > > > > at org.apache.maven.plugin.DefaultPluginManager.executeMojo( > > > > DefaultPluginManager.java:447) > > > > at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals( > > > > DefaultLifecycleExecutor.java:539) > > > > ... 16 more > > > > Caused by: java.util.zip.ZipException: error in opening zip file > > > > at java.util.zip.ZipFile.open(Native Method) > > > > at java.util.zip.ZipFile.<init>(ZipFile.java:114) > > > > at java.util.zip.ZipFile.<init>(ZipFile.java:131) > > > > at aQute.lib.osgi.ZipResource.build(ZipResource.java:39) > > > > at aQute.lib.osgi.ZipResource.build(ZipResource.java:32) > > > > at aQute.lib.osgi.Jar.<init>(Jar.java:31) > > > > at org.apache.felix.bundleplugin.BundlePlugin.getClasspath( > > > BundlePlugin.java > > > > :295) > > > > at org.apache.felix.bundleplugin.BundlePlugin.execute( > > BundlePlugin.java > > > :123) > > > > ... 19 more > > > > > > > > Any idea? > > > > > > > > > > > > > > > > --------------------------------------------------------------------- > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > > > > -- > > Sébastien Arbogast > > > > http://sebastien-arbogast.com > > > > > > > -- > Cheers, Stuart >
-- Sébastien Arbogast http://sebastien-arbogast.com

