diff --git a/bundles/admin/pom.xml b/bundles/admin/pom.xml index 2fa95838f..6bc8c3a0c 100644 --- a/bundles/admin/pom.xml +++ b/bundles/admin/pom.xml @@ -2,36 +2,30 @@ 4.0.0 - org.apache.struts.osgi - struts2-admin-bundle - 1.0.0-SNAPSHOT + + org.apache.struts + struts2-osgi-bundles + 2.1.7-SNAPSHOT + + org.apache.struts + struts2-osgi-admin-bundle bundle Struts 2 OSGi Admin Bundle + + scm:svn:http://svn.apache.org/repos/asf/struts/struts2/trunk/bundles/admin/ + scm:svn:https://svn.apache.org/repos/asf/struts/struts2/trunk/bundles/admin/ + http://svn.apache.org/viewcvs.cgi/struts/struts2/trunk/bundles/admin/ + + org.apache.struts struts2-osgi-plugin - 1.0.0-SNAPSHOT - - - javax.servlet - servlet-api - 2.4 - provided - - - junit - junit - test - 3.8.1 - + ${pom.version} + - - - 1.5 - - + @@ -49,30 +43,6 @@ - - true - org.apache.maven.plugins - maven-source-plugin - - - attach-sources - - jar - - - - - - - - maven-compiler-plugin - - 1.5 - 1.5 - - - - diff --git a/bundles/demo/pom.xml b/bundles/demo/pom.xml index 1afa730a8..28505ba28 100644 --- a/bundles/demo/pom.xml +++ b/bundles/demo/pom.xml @@ -2,19 +2,24 @@ 4.0.0 - org.apache.struts.osgi - struts2-demo-bundle - 1.0.0-SNAPSHOT + + org.apache.struts + struts2-osgi-bundles + 2.1.7-SNAPSHOT + + org.apache.struts + struts2-osgi-demo-bundle bundle Struts 2 OSGi Demo Bundle + + scm:svn:http://svn.apache.org/repos/asf/struts/struts2/trunk/bundles/demo/ + scm:svn:https://svn.apache.org/repos/asf/struts/struts2/trunk/bundles/demo/ + http://svn.apache.org/viewcvs.cgi/struts/struts2/trunk/bundles/demo/ + + - - org.apache.struts - struts2-core - 2.1.7-SNAPSHOT - - + velocity velocity @@ -32,24 +37,25 @@ commons-digester 1.8 + + + org.apache.struts + struts2-core + ${pom.version} + org.apache.struts struts2-convention-plugin - 2.1.7-SNAPSHOT + ${pom.version} org.apache.struts struts2-osgi-plugin - 1.0.0-SNAPSHOT - - - - org.apache.struts - struts2-spring-plugin - 2.1.7-SNAPSHOT + ${pom.version} + @@ -69,16 +75,5 @@ - - - - maven-compiler-plugin - - 1.5 - 1.5 - - - - diff --git a/bundles/demo/src/main/java/actions/osgi/BundlesAction.java b/bundles/demo/src/main/java/actions/osgi/BundlesAction.java index 74feff244..0bf8b2fe1 100644 --- a/bundles/demo/src/main/java/actions/osgi/BundlesAction.java +++ b/bundles/demo/src/main/java/actions/osgi/BundlesAction.java @@ -25,7 +25,6 @@ import org.osgi.framework.Bundle; import org.apache.struts2.osgi.interceptor.BundleContextAware; import org.apache.struts2.osgi.interceptor.ServiceAware; import org.apache.struts2.convention.annotation.ResultPath; -import org.springframework.context.ApplicationContext; import java.util.List; @@ -35,22 +34,13 @@ import com.opensymphony.xwork2.ActionSupport; * This action shows how to interact with the OSGi container, using the OSGi interceptor */ @ResultPath("/content") -public class BundlesAction extends ActionSupport implements BundleContextAware, ServiceAware { +public class BundlesAction extends ActionSupport implements BundleContextAware { private BundleContext bundleContext; - private List services; - - public void setServices(List services) { - this.services = services; - } public void setBundleContext(BundleContext bundleContext) { this.bundleContext = bundleContext; } - public int getApplicationContextsCount() { - return services.size(); - } - public Bundle[] getBundles() { return bundleContext.getBundles(); } diff --git a/bundles/demo/src/main/java/actions/osgi/HelloWorldAction.java b/bundles/demo/src/main/java/actions/osgi/HelloWorldAction.java index b27ab0f9a..f38c68ac4 100644 --- a/bundles/demo/src/main/java/actions/osgi/HelloWorldAction.java +++ b/bundles/demo/src/main/java/actions/osgi/HelloWorldAction.java @@ -6,7 +6,6 @@ import org.apache.struts2.convention.annotation.ResultPath; import org.apache.struts2.osgi.interceptor.BundleContextAware; import org.apache.struts2.osgi.interceptor.ServiceAware; import org.osgi.framework.BundleContext; -import org.springframework.context.ApplicationContext; import java.util.List; diff --git a/bundles/pom.xml b/bundles/pom.xml index 98172a8ea..ac5ccf3a1 100755 --- a/bundles/pom.xml +++ b/bundles/pom.xml @@ -29,7 +29,7 @@ 2.1.7-SNAPSHOT org.apache.struts - struts2-bundles + struts2-osgi-bundles pom Struts OSGi Bundles @@ -40,7 +40,8 @@ - + admin + demo