THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
Add these lines to MANIFEST.MF:
No Format |
---|
BundleStruts2-ActivatorEnabled: org.apache.struts2.osgi.StrutsActivatortrue Export-Package: com.mycompany.myapp.actions Bundle-Version: 1.0.0 Bundle-SymbolicName: foo.actions Import-Package: com.opensymphony.xwork2 |
...
Code Block | ||||
---|---|---|---|---|
| ||||
<build>
<plugins>
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<extensions>true</extensions>
<version>2.0.0</version>
<configuration>
<instructions>
<manifestLocation>META-INF</manifestLocation>
<Struts2-Enabled>true</Struts2-Enabled>
<Export-Package>org.apache.struts2.osgi.demo</Export-Package>
<Import-Package>*,com.opensymphony.xwork2</Import-Package>
<Bundle-Activator>org.apache.struts2.osgi.StrutsActivator</Bundle-Activator>
<Spring-Context>*;create-asynchronously:=false</Spring-Context>
</instructions>
</configuration>
</plugin>
</plugins>
</build>
|
...