From c3fd5740457482031f6c2bcd150a2cf28e8fb3cb Mon Sep 17 00:00:00 2001 From: Olivier Lamy Date: Fri, 9 Dec 2011 20:48:32 +0000 Subject: [PATCH] =?utf8?q?[MRM-1562]=20Update=20to=20Archiva=20as=20OSGi?= =?utf8?q?=20compliant=20application=20Submitted=20by=20Jean-Baptiste=20On?= =?utf8?q?ofr=C3=A9=20(jbonofre)?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1212622 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/main/resources/features.xml | 57 +++++++ .../archiva-web/archiva-webapp-common/pom.xml | 47 +++++- .../archiva-web/archiva-webapp/pom.xml | 157 ++++++++++++++++-- 3 files changed, 242 insertions(+), 19 deletions(-) diff --git a/archiva-modules/archiva-karaf/archiva-features/src/main/resources/features.xml b/archiva-modules/archiva-karaf/archiva-features/src/main/resources/features.xml index 92aeab2b4..0fc8af09e 100644 --- a/archiva-modules/archiva-karaf/archiva-features/src/main/resources/features.xml +++ b/archiva-modules/archiva-karaf/archiva-features/src/main/resources/features.xml @@ -426,4 +426,61 @@ mvn:org.apache.archiva/npanday-support/${project.version} + + war + spring + spring-web + archiva-common + archiva-plexus-bridge + archiva-configuration + archiva-repository-layer + archiva-security + mvn:org.apache.archiva/archiva-webapp-common/${project.version} + + + + archiva-common + archiva-checksum + archiva-policies + archiva-configuration + archiva-model + archiva-plexus-bridge + archiva-repository-admin-api + archiva-metadata + archiva-audit + archiva-xml-tools + archiva-repository-layer + archiva-maven2-repository + archiva-consumers-api + archiva-consumers + archiva-reports + archiva-proxy-common + archiva-proxy + archiva-scheduler-api + archiva-repository-statistics + archiva-repository-scanner + archiva-scheduler + archiva-repository-admin-default + archiva-transaction + archiva-artifact-converter + archiva-indexer + archiva-security-common + archiva-rest-api + archiva-rest-service + archiva-rss + archiva-security + archiva-webdav + archiva-xmlrpc-api + archiva-xmlrpc-security + archiva-stage-repository + archiva-xmlrpc-services + archiva-generic-metadata-support + archiva-metadata-store-jcr + archiva-npanday-support + archiva-webapp-common + mvn:org.apache.struts/struts2-core/${struts.version} + mvn:org.apache.struts.xwork/xwork-core/${struts.version} + mvn:org.apache.archiva/archiva-webapp/${project.version}/war + + \ No newline at end of file diff --git a/archiva-modules/archiva-web/archiva-webapp-common/pom.xml b/archiva-modules/archiva-web/archiva-webapp-common/pom.xml index d60fceec8..5f273f684 100644 --- a/archiva-modules/archiva-web/archiva-webapp-common/pom.xml +++ b/archiva-modules/archiva-web/archiva-webapp-common/pom.xml @@ -8,7 +8,7 @@ archiva-webapp-common - + bundle archiva-webapp-common @@ -89,4 +89,49 @@ + + + + org.apache.felix + maven-bundle-plugin + + + org.apache.archiva.webapp.common + ${project.version} + + org.apache.archiva.web.spring;version=${project.version}, + org.apache.archiva.web.startup;version=${project.version} + + + javax.annotation, + javax.inject, + javax.servlet, + org.apache.archiva.common;version=${project.version}, + org.apache.archiva.common.plexusbridge;version=${project.version}, + org.apache.archiva.configuration;version=${project.version}, + org.apache.archiva.repository.events;version=${project.version}, + org.apache.archiva.scheduler.repository;version=${project.version}, + org.apache.archiva.security.common;version=${project.version}, + org.apache.commons.collections;version="[3.2,4)", + org.apache.commons.lang;version="[2.4,3)", + org.apache.maven.index, + org.apache.maven.index.context, + org.codehaus.plexus.redback.rbac, + org.codehaus.plexus.redback.role, + org.codehaus.plexus.redback.system.check, + org.codehaus.plexus.registry, + org.codehaus.plexus.taskqueue, + org.codehaus.plexus.taskqueue.execution, + org.codehaus.redback.components.scheduler, + org.quartz;version="[2,3)", + org.slf4j;resolution:=optional, + org.springframework*;version="[3,4)", + org.springframework.web*;version="[3,4)" + + + + + + + diff --git a/archiva-modules/archiva-web/archiva-webapp/pom.xml b/archiva-modules/archiva-web/archiva-webapp/pom.xml index bdbe0ac81..27145d070 100644 --- a/archiva-modules/archiva-web/archiva-webapp/pom.xml +++ b/archiva-modules/archiva-web/archiva-webapp/pom.xml @@ -18,7 +18,8 @@ ~ under the License. --> - + 4.0.0 org.apache.archiva @@ -30,8 +31,8 @@ Archiva Web :: Application - - + + ${basedir}/src/test/tomcat/tomcat-context-archiva.xml @@ -877,9 +878,9 @@ compile - + - + @@ -892,7 +893,7 @@ - + @@ -904,18 +905,14 @@ maven-war-plugin 2.1.1 - false - META-INF/**,WEB-INF/web.xml,WEB-INF/classes/xwork.xml,WEB-INF/lib/** + META-INF/**,WEB-INF/web.xml,WEB-INF/classes/xwork.xml,WEB-INF/lib/** + WEB-INF/lib/xalan-*.jar,WEB-INF/lib/velocity-dep-*.jar,WEB-INF/lib/xml-apis-*.jar,WEB-INF/lib/wstx-asl-*.jar,WEB-INF/lib/stax-utils-*.jar,WEB-INF/lib/xercesImpl-*.jar,WEB-INF/lib/commons-lang-*.jar,WEB-INF/lib/commons-configuration-*.jar,WEB-INF/lib/jetty-*.jar - - true - true - + ${project.build.outputDirectory}/META-INF/MANIFEST.MF @@ -931,6 +928,126 @@ + + org.apache.felix + maven-bundle-plugin + + + bundle-manifest + process-classes + + manifest + + + + org.apache.archiva.webapp + ${project.version} + + org.apache.archiva.web.action*;version=${project.version}, + org.apache.archiva.web.interceptor*;version=${project.version}, + org.apache.archiva.web.mapper*;version=${project.version}, + org.apache.archiva.web.rss*;version=${project.version}, + org.apache.archiva.web.tags*;version=${project.version}, + org.apache.archiva.web.util*;version=${project.version}, + org.apache.archiva.web.validator*;version=${project.version} + + + com.opensymphony.xwork2, + com.opensymphony.xwork2.config, + com.opensymphony.xwork2.interceptor, + com.opensymphony.xwork2.util, + com.opensymphony.xwork2.validator, + com.opensymphony.xwork2.validator.validators, + com.sun.syndication.feed.synd, + com.sun.syndication.io, + javax.annotation, + javax.inject, + javax.servlet, + javax.servlet.http, + javax.servlet.jsp, + javax.servlet.jsp.tagext, + org.apache.archiva.admin.model;version=${project.version}, + org.apache.archiva.admin.model.admin;version=${project.version}, + org.apache.archiva.admin.model.beans;version=${project.version}, + org.apache.archiva.admin.model.group;version=${project.version}, + org.apache.archiva.admin.model.managed;version=${project.version}, + org.apache.archiva.admin.model.networkproxy;version=${project.version}, + org.apache.archiva.admin.model.proxyconnector;version=${project.version}, + org.apache.archiva.admin.model.remote;version=${project.version}, + org.apache.archiva.admin.repository;version=${project.version}, + org.apache.archiva.admin.repository.admin;version=${project.version}, + org.apache.archiva.admin.repository.utils;version=${project.version}, + org.apache.archiva.audit;version=${project.version}, + org.apache.archiva.checksum;version=${project.version}, + org.apache.archiva.common;version=${project.version}, + org.apache.archiva.common.utils;version=${project.version}, + org.apache.archiva.configuration;version=${project.version}, + org.apache.archiva.consumers;version=${project.version}, + org.apache.archiva.dependency.tree.maven2;version=${project.version}, + org.apache.archiva.indexer.search;version=${project.version}, + org.apache.archiva.metadata.generic;version=${project.version}, + org.apache.archiva.metadata.model;version=${project.version}, + org.apache.archiva.metadata.repository;version=${project.version}, + org.apache.archiva.metadata.repository.filter;version=${project.version}, + org.apache.archiva.metadata.repository.stats;version=${project.version}, + org.apache.archiva.metadata.repository.storage.maven2;version=${project.version}, + org.apache.archiva.model;version=${project.version}, + org.apache.archiva.policies;version=${project.version}, + org.apache.archiva.reports;version=${project.version}, + org.apache.archiva.repository;version=${project.version}, + org.apache.archiva.repository.metadata;version=${project.version}, + org.apache.archiva.repository.scanner;version=${project.version}, + org.apache.archiva.rest.api.model;version=${project.version}, + org.apache.archiva.rest.api.services;version=${project.version}, + org.apache.archiva.rss.processor;version=${project.version}, + org.apache.archiva.scheduler;version=${project.version}, + org.apache.archiva.scheduler.indexing;version=${project.version}, + org.apache.archiva.scheduler.repository;version=${project.version}, + org.apache.archiva.security;version=${project.version}, + org.apache.archiva.stagerepository.merge;version=${project.version}, + org.apache.commons.codec;version="[1.3,2)", + org.apache.commons.codec.binary;version="[1.3,2)", + org.apache.commons.collections;version="[3.2,4)", + org.apache.commons.io;version="[1.4,2)", + org.apache.commons.lang*;version="[2.4,3)", + org.apache.maven.artifact, + org.apache.maven.artifact.versioning, + org.apache.maven.model, + org.apache.maven.model.io.xpp3, + org.apache.maven.shared.dependency.tree, + org.apache.maven.shared.dependency.tree.traversal, + org.apache.struts2*;version="[2.2,3)", + org.apache.taglibs.standard.tag.common.core, + org.apache.taglibs.standard.tag.el.core, + org.codehaus.plexus.cache, + org.codehaus.plexus.redback.authentication, + org.codehaus.plexus.redback.authorization, + org.codehaus.plexus.redback.policy, + org.codehaus.plexus.redback.system, + org.codehaus.plexus.redback.users, + org.codehaus.plexus.registry, + org.codehaus.plexus.taskqueue, + org.codehaus.plexus.util, + org.codehaus.redback.components.scheduler, + org.codehaus.redback.integration.filter.authentication, + org.codehaus.redback.integration.interceptor, + org.codehaus.redback.rest.services, + org.slf4j;resolution:=optional, + org.springframework*;version="[3,4)", + org.springframework.web*;version="[3,4)" + + + + + + + + jar + bundle + war + + + org.codehaus.mojo tomcat-maven-plugin @@ -1176,9 +1293,11 @@ - - - + + + @@ -1385,7 +1504,8 @@ ${basedir}/appserver-base ${project.build.directory}/appserver-home ${basedir}/appserver-base/logs - ${basedir}/target/auto-admin-creation.properties + ${basedir}/target/auto-admin-creation.properties + ${project.build.directory} @@ -1415,7 +1535,8 @@ ${basedir}/appserver-base ${project.build.directory}/appserver-home ${basedir}/appserver-base/logs - ${basedir}/target/auto-admin-creation.properties + ${basedir}/target/auto-admin-creation.properties + ${project.build.directory} -- 2.39.5