Adapt to changes in Argeo TP.
authorMathieu Baudier <mbaudier@argeo.org>
Sun, 6 Oct 2019 09:15:11 +0000 (11:15 +0200)
committerMathieu Baudier <mbaudier@argeo.org>
Sun, 6 Oct 2019 09:15:11 +0000 (11:15 +0200)
demo/slc_demo_rap.properties
dep/org.argeo.slc.dep.backend/pom.xml
dep/org.argeo.slc.dep.e4.rap/pom.xml
org.argeo.slc.repo/pom.xml
org.argeo.slc.repo/src/org/argeo/slc/repo/osgi/ArchiveWrapper.java
org.argeo.slc.repo/src/org/argeo/slc/repo/osgi/BndWrapper.java

index 99e2f565918e64629066a19554c8ce4496174d00..ce864990d2d850a2b792da7e449bd19b62dbaae1 100644 (file)
@@ -48,4 +48,12 @@ org.eclipse.equinox.http.jetty.autostart=false
 org.eclipse.rap.workbenchAutostart=false
 
 # Avoid errors logs (see https://issues.apache.org/jira/browse/JCR-2226)
-org.apache.jackrabbit.core.statementcache=false
\ No newline at end of file
+org.apache.jackrabbit.core.statementcache=false
+
+org.osgi.framework.bootdelegation=com.sun.jndi.ldap,\
+com.sun.jndi.ldap.sasl,\
+com.sun.security.jgss,\
+com.sun.jndi.dns,\
+com.sun.nio.file,\
+com.sun.nio.sctp,\
+com.sun.crypto.provider
\ No newline at end of file
index abed9d2c572dbeffc789fd965c12bf8a1ad683b1..baee5f8455084e13d1e6b90d6444c41a2c260e22 100644 (file)
@@ -1,4 +1,6 @@
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+       xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
        <modelVersion>4.0.0</modelVersion>
        <parent>
                <groupId>org.argeo.slc</groupId>
                </plugins>
        </build>
        <dependencies>
-               <!-- Parent dependencies -->
-               <dependency>
-                       <groupId>org.argeo.commons</groupId>
-                       <artifactId>org.argeo.dep.cms.sdk</artifactId>
-                       <version>${version.argeo-commons}</version>
-               </dependency>
+               <!-- SLC Minimal -->
                <dependency>
                        <groupId>org.argeo.slc</groupId>
                        <artifactId>org.argeo.slc.dep.minimal</artifactId>
                        <version>2.1.17-SNAPSHOT</version>
                </dependency>
 
+               <!-- Legacy Argeo Commons platform (Eclipse 3) -->
+               <dependency>
+                       <groupId>org.argeo.commons</groupId>
+                       <artifactId>org.argeo.dep.cms.platform</artifactId>
+                       <version>${version.argeo-commons}</version>
+               </dependency>
+
+               <dependency>
+                       <groupId>org.argeo.tp.sdk</groupId>
+                       <artifactId>biz.aQute.bndlib</artifactId>
+               </dependency>
+               <dependency>
+                       <groupId>org.argeo.tp.sdk</groupId>
+                       <artifactId>org.junit</artifactId>
+               </dependency>
+               <dependency>
+                       <groupId>org.argeo.tp.sdk</groupId>
+                       <artifactId>org.redline-rpm</artifactId>
+               </dependency>
+               <dependency>
+                       <groupId>org.argeo.tp.misc</groupId>
+                       <artifactId>com.googlecode.javaewah.JavaEWAH</artifactId>
+               </dependency>
+               <dependency>
+                       <groupId>org.argeo.tp.misc</groupId>
+                       <artifactId>org.eclipse.jgit</artifactId>
+               </dependency>
+
+
                <!-- For target platform generation -->
                <dependency>
                        <groupId>org.argeo.slc</groupId>
index da7d737d30fd046ca5e3b0616fa9eb959a3bf80d..8ae8da5246ae74d3f05af51745dc7c2c04382b17 100644 (file)
@@ -67,7 +67,7 @@
                <!-- </dependency> -->
                <dependency>
                        <groupId>org.argeo.tp.sdk</groupId>
-                       <artifactId>biz.aQute.bnd</artifactId>
+                       <artifactId>biz.aQute.bndlib</artifactId>
                </dependency>
                <dependency>
                        <groupId>org.argeo.tp.sdk</groupId>
                        <groupId>org.argeo.tp.sdk</groupId>
                        <artifactId>org.redline-rpm</artifactId>
                </dependency>
-
-               <!-- SLC Libs -->
-               <!-- <dependency> -->
-               <!-- <groupId>org.argeo.slc</groupId> -->
-               <!-- <artifactId>org.argeo.slc.lib.repo</artifactId> -->
-               <!-- <version>1.1.14-SNAPSHOT</version> -->
-               <!-- </dependency> -->
-               <!-- <dependency> -->
-               <!-- <groupId>org.argeo.slc</groupId> -->
-               <!-- <artifactId>org.argeo.slc.lib.jcr</artifactId> -->
-               <!-- <version>1.1.14-SNAPSHOT</version> -->
-               <!-- </dependency> -->
-
-               <!-- Extensions <dependency> <groupId>org.argeo.slc</groupId> <artifactId>org.argeo.slc.support</artifactId> 
-                       <version>2.1.13-SNAPSHOT</version> </dependency> -->
-               <!-- UI <dependency> <groupId>org.argeo.slc</groupId> <artifactId>org.argeo.slc.client.ui</artifactId> 
-                       <version>2.1.13-SNAPSHOT</version> </dependency> <dependency> <groupId>org.argeo.slc</groupId> 
-                       <artifactId>org.argeo.slc.client.ui.dist</artifactId> <version>2.1.13-SNAPSHOT</version> 
-                       </dependency> <dependency> <groupId>org.argeo.slc</groupId> <artifactId>org.argeo.slc.client.rap</artifactId> 
-                       <version>2.1.13-SNAPSHOT</version> </dependency> -->
-
-               <!-- For target platform generation <dependency> <groupId>org.argeo.slc</groupId> 
-                       <artifactId>org.argeo.slc.unit</artifactId> <version>2.1.13-SNAPSHOT</version> 
-                       <scope>test</scope> </dependency> -->
+               <dependency>
+                       <groupId>org.argeo.tp.misc</groupId>
+                       <artifactId>com.googlecode.javaewah.JavaEWAH</artifactId>
+               </dependency>
+               <dependency>
+                       <groupId>org.argeo.tp.misc</groupId>
+                       <artifactId>org.eclipse.jgit</artifactId>
+               </dependency>
        </dependencies>
        <profiles>
                <profile>
index 6270c1cf4e7f1f773b15adb7b0bac95947b403af..ab207def92462476597e0db80d61771801006abe 100644 (file)
@@ -38,7 +38,7 @@
                <!-- BND -->
                <dependency>
                        <groupId>org.argeo.tp.sdk</groupId>
-                       <artifactId>biz.aQute.bnd</artifactId>
+                       <artifactId>biz.aQute.bndlib</artifactId>
                </dependency>
        </dependencies>
 </project>
\ No newline at end of file
index d53078ec5622ce8d4799e1cbea74e4a73c777844..5469487a18239cfb080ef42cb2be92232ec7e564 100644 (file)
@@ -253,10 +253,12 @@ public class ArchiveWrapper implements Runnable, ModuleSet, Distribution {
                                }
                        }
 
-                       if (nothingWasDone)
-                               throw new SlcException("Nothing was done");
+                       if (nothingWasDone) {
+                               log.error("Nothing was done when wrapping " + uri + ". THE DISTRIBUTION IS INCONSISTENT.");
+                               // throw new SlcException("Nothing was done");
+                               // TODO Fail if not all wrappers matched
+                       }
 
-                       // FIXME Fail if not all wrappers matched
                } catch (Exception e) {
                        throw new SlcException("Cannot wrap distribution " + uri, e);
                } finally {
index 3d83c07e7ea736e099b2736b3029e265110559ab..56dda5bdf7d37cba0c1c395274da517fae628647 100644 (file)
@@ -44,7 +44,7 @@ public class BndWrapper implements Constants, CategorizedNameVersion,
                try {
                        byte[] jarBytes = IOUtils.toByteArray(in);
 
-                       jar = new Jar(null, new ByteArrayInputStream(jarBytes));
+                       jar = new Jar(name, new ByteArrayInputStream(jarBytes));
                        Manifest sourceManifest = jar.getManifest();
 
                        Version versionToUse;