Add jsch and joda-time for maven central in the base distribution.
[gpl/argeo-tp.git] / META-INF / spring / distribution.xml
index d9ae45fb8d9073a9e90574224a80ec2897d2bb6a..01c3c92f9f22303f1d49823c7e438570a10f1a6b 100644 (file)
        http://www.argeo.org/schema/slc-flow http://www.argeo.org/schema/slc-flow-1.2.xsd">
 
        <!-- REGISTER -->
-       <bean id="org.argeo.tp" class="org.argeo.slc.repo.osgi.ArgeoOsgiDistribution"
+       <bean id="argeo-tp" class="org.argeo.slc.repo.osgi.ArgeoOsgiDistributionImpl"
                init-method="init" destroy-method="destroy">
-               <constructor-arg value="org.argeo.tp:org.argeo.tp:2.1.1" />
+               <constructor-arg value="org.argeo.tp:argeo-tp:2.1.2" />
                <property name="modules">
-                       <set>
-                               <!-- <ref bean="org.slf4j.log4j12" /> -->
-                               <!-- <ref bean="org.slf4j.api" /> -->
-                               <!-- <ref bean="org.slf4j.commons.logging" /> -->
-                       </set>
+                       <list>
+                               <ref bean="apache/org.apache.log4j" />
+                               <ref bean="misc/org.slf4j" />
+                               <ref bean="org.aopalliance" />
+                               <ref bean="org.junit" />
+                               <ref bean="org.h2" />
+                               <ref bean="joda-time" />
+                               <ref bean="com.jcraft.jsch" />
+                               <ref bean="EDU.oswego.cs.dl.util.concurrent" />
+                               <ref bean="javax.el" />
+                               <ref bean="javax.inject" />
+                               <ref bean="misc/org.aspectj" />
+                               <ref bean="misc/org.bouncycastle" />
+                               <ref bean="spring/org.springframework" />
+                               <ref bean="org.springframework.ldap" />
+                               <ref bean="spring/org.springframework.security" />
+                               <ref bean="apache/org.apache.ant" />
+                               <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.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.exec" />
+                               <!-- 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" /> -->
+                               <!-- Eclipse -->
+                               <ref bean="eclipse/org.argeo.tp.jetty" />
+                               <ref bean="eclipse/org.argeo.tp.equinox" />
+                               <ref bean="eclipse/org.argeo.tp.gemini" />
+                               <!-- <ref bean="org.argeo.tp.gemini/org.gemini.web" /> -->
+                               <!-- <ref bean="org.eclipse.gemini.web.core" /> -->
+                               <!-- <ref bean="org.eclipse.gemini.web.extender" /> -->
+                               <!-- <ref bean="org.eclipse.gemini.web.tomcat" /> -->
+                               <!-- Jackrabbit -->
+                               <ref bean="javax/javax.jcr" />
+                               <ref bean="apache/org.apache.tika" />
+                               <ref bean="apache/org.apache.lucene" />
+                               <ref bean="apache/org.apache.jackrabbit" />
+                       </list>
                </property>
        </bean>
 
        <!-- Factory -->
        <bean id="osgiFactory" class="org.argeo.slc.repo.osgi.OsgiFactoryImpl"
                init-method="init" destroy-method="destroy">
-               <property name="workspace" value="org.argeo.tp-2.1.x" />
+               <property name="workspace" value="argeo-tp-2.1" />
                <property name="nodeIndexers">
                        <list>
-                               <bean class="org.argeo.slc.repo.ArtifactIndexer" />
+                               <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>
+               <property name="mirrors">
+                       <map>
+                               <entry key="http://archive.apache.org/dist">
+                                       <list>
+                                               <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>
+                                       </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>
 
+       <flow:flow name="processDistribution">
+               <bean class="org.argeo.slc.repo.osgi.ProcessDistribution">
+                       <property name="osgiDistribution" ref="argeo-tp" />
+                       <property name="osgiFactory" ref="osgiFactory" />
+               </bean>
+       </flow:flow>
+
+       <!-- Security -->
        <bean
                class="org.argeo.security.core.AuthenticatedApplicationContextInitialization">
                <property name="authenticationManager" ref="authenticationManager" />
                        </list>
                </property>
        </bean>
-
-       <!-- Specs and templates -->
-       <flow:spec id="spec.version">
-               <flow:primitive name="version" isParameter="true" />
-       </flow:spec>
-
-       <bean id="template.archiveWrapper" class="org.argeo.slc.repo.osgi.ArchiveWrapper"
-               init-method="init" destroy-method="destroy" abstract="true">
-               <property name="version" value="@{version}" />
-               <property name="osgiFactory" ref="osgiFactory" />
-       </bean>
-
-       <!-- Must be a prototype since wrapper are stateful objects, properties 
-               such as version can be set by caller. -->
-       <bean id="template.bndWrapper" class="org.argeo.slc.repo.osgi.BndWrapper"
-               abstract="true" scope="prototype">
-               <property name="bndProperties">
-                       <props>
-                               <prop key="Export-Package">*</prop>
-                       </props>
-               </property>
-       </bean>
-
 </beans>
\ No newline at end of file