Update Javax APIs in order to build with Java 11 constraints. OSGi
[gpl/argeo-tp.git] / META-INF / spring / distribution.xml
index b5cd3191ed3d59f7796e889520caefec0354eb54..d765fb09293c5edbbcdf6278ec0ffb6a435ec538 100644 (file)
 <?xml version="1.0" encoding="UTF-8"?>
 <beans xmlns="http://www.springframework.org/schema/beans"
-       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://www.springframework.org/schema/p"
-       xmlns:util="http://www.springframework.org/schema/util" xmlns:flow="http://www.argeo.org/schema/slc-flow"
+       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+       xmlns:p="http://www.springframework.org/schema/p"
+       xmlns:util="http://www.springframework.org/schema/util"
+       xmlns:flow="http://www.argeo.org/schema/slc-flow"
        xsi:schemaLocation="
        http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
        http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-2.5.xsd
        http://www.argeo.org/schema/slc-flow http://www.argeo.org/schema/slc-flow-1.2.xsd">
 
        <!-- REGISTER -->
-       <bean id="argeo-tp" class="org.argeo.slc.repo.osgi.ArgeoOsgiDistributionImpl"
+       <bean id="argeo-tp"
+               class="org.argeo.slc.repo.osgi.ArgeoOsgiDistributionImpl"
                init-method="init" destroy-method="destroy">
-               <constructor-arg value="org.argeo.tp:argeo-tp:2.1.1" />
+               <constructor-arg
+                       value="org.argeo.tp:argeo-tp:2.1.26-SNAPSHOT" />
                <property name="modules">
                        <list>
-                               <ref bean="org.argeo.tp/org.apache.log4j" />
-                               <ref bean="org.argeo.tp/org.slf4j" />
-                               <ref bean="org.argeo.tp.apache.tomcat/org.apache.tomcat" />
-                               <ref bean="org.argeo.tp/org.aopalliance" />
-                               <ref bean="org.argeo.tp/org.aspectj" />
-                               <ref bean="org.argeo.tp.spring/org.springframework" />
-                               <ref bean="org.argeo.tp.apache.ant/org.apache.ant" />
-                               <!-- Felix -->
-                               <ref bean="org.apache.felix.framework" />
-                               <ref bean="org.apache.felix.bundlerepository" />
-                               <ref bean="org.apache.felix.gogo.command" />
-                               <ref bean="org.apache.felix.gogo.runtime" />
-                               <ref bean="org.apache.felix.gogo.shell" />
+                               <!-- Javax -->
+                               <ref bean="javax.jcr" />
+                               <ref bean="javax.el-api" />
+                               <ref bean="javax.interceptor-api" />
+                               <ref bean="javax.enterprise.cdi-api" />
+                               <ref bean="javax.transaction-api" />
+                               <ref bean="javax.mail" />
+                               <!-- Javax4hipsters -->
+                               <ref bean="javax.websocket" />
+                               <!-- <ref bean="javax.persistence" /> -->
+                               <!-- <ref bean="javax.xml.bind" /> -->
+                               <!-- <ref bean="javax.ws.rs" /> -->
+                               <!-- <ref bean="javax.annotation" /> -->
+
+                               <!-- Standalone projects -->
+                               <ref bean="misc/org.slf4j" />
+                               <ref bean="slf4j.osgi" />
+                               <ref bean="org.aopalliance" />
+                               <ref bean="com.jcraft.jsch" />
+                               <ref bean="EDU.oswego.cs.dl.util.concurrent" />
+                               <ref bean="org.objectweb.asm" />
+                               <ref bean="org.aspectj.weaver" />
+                               <ref bean="misc/org.bouncycastle" />
+                               <ref bean="bitronix.tm" />
+                               <ref bean="com.googlecode.javaewah.JavaEWAH" />
+                               <ref bean="org.w3c.dom.svg" />
+                               <ref bean="org.tukaani.xz" />
+                               <ref bean="net.i2p.crypto.eddsa" />
+                               <ref bean="org.yaml.snakeyaml" />
+
+                               <!-- Apache -->
+                               <ref bean="apache/org.apache.log4j" />
+                               <ref bean="apache/org.apache.xmlgraphics" />
+                               <ref bean="apache/org.apache.batik" />
+                               <ref bean="apache/org.apache.httpcomponents.httpcore" />
+                               <ref bean="apache/org.apache.httpcomponents.httpclient" />
+                               <ref bean="org.apache.mina.core" />
+                               <ref bean="apache/org.apache.sshd" />
+                               <ref bean="org.apache.tomcat.jni" />
+
+                               <!-- Apache Commons -->
+                               <ref bean="apache/org.apache.commons.io" />
+                               <ref bean="apache/org.apache.commons.fileupload" />
+                               <ref bean="apache/org.apache.commons.collections" />
+                               <ref bean="apache/org.apache.commons.collections4" />
+                               <ref bean="apache/org.apache.commons.dbcp" />
+                               <ref bean="apache/org.apache.commons.pool" />
+                               <ref bean="apache/org.apache.commons.codec" />
+                               <ref bean="apache/org.apache.commons.httpclient" />
+                               <ref bean="apache/org.apache.commons.vfs" />
+                               <ref bean="apache/org.apache.commons.net" />
+                               <ref bean="apache/org.apache.commons.exec" />
+                               <ref bean="apache/org.apache.commons.math3" />
+                               <ref bean="apache/org.apache.commons.cli" />
+                               <ref bean="apache/org.apache.commons.compress" />
+                               <ref bean="apache/org.apache.commons.lang3" />
+
+                               <!-- Web services -->
+                               <ref bean="ws/jackson" />
+                               <!-- <ref bean="ws/hk2" /> -->
+                               <!-- <ref bean="ws/jersey" /> -->
+
+                               <!-- Google -->
+                               <ref bean="com.google.guava" />
+                               <ref bean="com.google.guava.failureaccess" />
+                               <ref bean="com.google.gson" />
+
+                               <!-- Eclipse -->
+                               <ref bean="eclipse/org.argeo.tp.jetty" />
+                               <ref bean="eclipse/org.argeo.tp.equinox" />
+
+                               <!-- Jackrabbit -->
+                               <ref bean="apache/org.apache.tika" />
+                               <ref bean="apache/org.apache.lucene" />
+                               <ref bean="apache/org.apache.jackrabbit" />
+                               <ref bean="apache/org.apache.jackrabbit.vault" />
+
+                               <!-- Document generation and management -->
+                               <ref bean="net.sf.jxl" />
+                               <ref bean="apache/org.apache.pdfbox" />
+                               <ref bean="org.apache.xml.security" />
+                               <ref bean="org.apache.xmlbeans" />
+                               <ref bean="org.apache.xalan" />
+                               <ref bean="org.apache.xalan.serializer" />
+                               <ref bean="org.apache.xml.resolver" />
+                               <ref bean="org.apache.xerces" />
+                               <ref bean="apache/org.apache.poi" />
+                               <ref bean="org.jsoup" />
+                               <ref bean="misc/com.vladsch.flexmark" />
+                               <ref bean="org.freemarker" />
+
+                               <!-- Databases -->
+                               <ref bean="org.postgresql.jdbc42" />
+                               <ref bean="org.h2" />
+
+                               <!-- ALM -->
+                               <ref bean="org.junit" />
+                               <ref bean="org.hamcrest" />
+                               <ref bean="osgi.annotation" />
+                               <ref bean="org.osgi.service.metatype.annotations" />
+                               <ref bean="org.osgi.service.component.annotations" />
+                               <ref bean="biz.aQute.bndlib" />
+                               <ref bean="org.redline-rpm" />
+                               <ref bean="org.eclipse.jgit" />
                        </list>
                </property>
        </bean>
 
-       <!-- Factory -->
-       <bean id="osgiFactory" class="org.argeo.slc.repo.osgi.OsgiFactoryImpl"
+       <bean id="argeo-tp-rap-e4"
+               class="org.argeo.slc.repo.osgi.ArgeoOsgiDistributionImpl"
+               init-method="init" destroy-method="destroy">
+               <constructor-arg
+                       value="org.argeo.tp:argeo-tp-rap-e4:2.1.26-SNAPSHOT" />
+               <property name="modules">
+                       <list>
+                               <ref bean="eclipse/org.argeo.tp.rap.e4" />
+                       </list>
+               </property>
+       </bean>
+
+       <bean id="argeo-tp-rcp-e4"
+               class="org.argeo.slc.repo.osgi.ArgeoOsgiDistributionImpl"
                init-method="init" destroy-method="destroy">
-               <property name="workspace" value="argeo-tp-2.1" />
+               <constructor-arg
+                       value="org.argeo.tp:argeo-tp-rcp-e4:2.1.26-SNAPSHOT" />
+               <property name="modules">
+                       <list>
+                               <ref bean="eclipse/org.argeo.tp.rcp.e4" />
+                               <ref bean="org.eclipse.text" />
+                               <ref bean="org.eclipse.jface.text" />
+                       </list>
+               </property>
+       </bean>
+
+       <bean id="argeo-tp-rap-e3"
+               class="org.argeo.slc.repo.osgi.ArgeoOsgiDistributionImpl"
+               init-method="init" destroy-method="destroy">
+               <constructor-arg
+       value="org.argeo.tp:argeo-tp-rap-e3:2.1.26-SNAPSHOT" />
+               <property name="modules">
+                       <list>
+                               <ref bean="eclipse/org.argeo.tp.rap.platform" />
+                       </list>
+               </property>
+       </bean>
+
+       <!-- Factory -->
+       <bean id="osgiFactory"
+               class="org.argeo.slc.repo.osgi.OsgiFactoryImpl" init-method="init"
+               destroy-method="destroy">
+               <property name="workspace" value="argeo-2.1" />
                <property name="nodeIndexers">
                        <list>
-                               <bean class="org.argeo.slc.repo.ArtifactIndexer" />
-                               <bean class="org.argeo.slc.repo.JarFileIndexer" />
                                <bean class="org.argeo.slc.repo.ModularDistributionIndexer" />
+                               <bean class="org.argeo.slc.repo.JarFileIndexer" />
+                               <bean class="org.argeo.slc.repo.ArtifactIndexer" />
                                <bean class="org.argeo.slc.repo.PdeSourcesIndexer" />
                        </list>
                </property>
                        <map>
                                <entry key="http://archive.apache.org/dist">
                                        <list>
-                                               <value>http://mirror.derwebwolf.net/apache</value>
+                                               <value>http://mirror.netcologne.de/apache.org</value>
                                                <value>http://archive.apache.org/dist</value>
                                        </list>
                                </entry>
                                <entry key="http://www.eclipse.org/downloads">
                                        <list>
-                                               <value>http://mirror.netcologne.de/eclipse</value>
-                                               <value>http://mirror.selfnet.de/eclipse</value>
-                                               <value><![CDATA[http://www.eclipse.org/downloads/download.php?file=]]></value>
+                                               <value>http://ftp-stud.hs-esslingen.de/Mirrors/eclipse/</value>
+                                               <value>http://ftp.fau.de/eclipse/</value>
+                                               <!-- <value>http://eclipse.mirror.garr.it/mirrors/eclipse</value> -->
+                                               <!-- <value>http://mirror.netcologne.de/eclipse</value> -->
+                                               <!-- <value>http://mirror.selfnet.de/eclipse</value> -->
+                                               <!-- <value><![CDATA[http://www.eclipse.org/downloads/download.php?file=]]></value> -->
                                        </list>
                                </entry>
                        </map>
                </property>
+               <property name="mavenRepositories">
+                       <list>
+                               <value>http://repo1.maven.org/maven2/</value>
+                               <value>http://download.eclipse.org/gemini/mvn/</value>
+                       </list>
+               </property>
                <property name="javaRepository" ref="javaRepository" />
                <property name="distRepository" ref="distRepository" />
        </bean>
                        <property name="osgiDistribution" ref="argeo-tp" />
                        <property name="osgiFactory" ref="osgiFactory" />
                </bean>
+               <bean class="org.argeo.slc.repo.osgi.ProcessDistribution">
+                       <property name="osgiDistribution" ref="argeo-tp-rap-e4" />
+                       <property name="osgiFactory" ref="osgiFactory" />
+               </bean>
+               <bean class="org.argeo.slc.repo.osgi.ProcessDistribution">
+                       <property name="osgiDistribution" ref="argeo-tp-rcp-e4" />
+                       <property name="osgiFactory" ref="osgiFactory" />
+               </bean>
+               <bean class="org.argeo.slc.repo.osgi.ProcessDistribution">
+                       <property name="osgiDistribution" ref="argeo-tp-rap-e3" />
+                       <property name="osgiFactory" ref="osgiFactory" />
+               </bean>
        </flow:flow>
 
        <!-- Security -->
        <bean
-               class="org.argeo.security.core.AuthenticatedApplicationContextInitialization">
-               <property name="authenticationManager" ref="authenticationManager" />
-               <property name="beanNames">
-                       <list>
-                               <value>osgiFactory</value>
-                       </list>
-               </property>
-       </bean>
+               class="org.argeo.cms.spring.AuthenticatedApplicationContextInitialization" />
 </beans>
\ No newline at end of file