You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@unomi.apache.org by sh...@apache.org on 2017/02/01 12:25:34 UTC

incubator-unomi git commit: UNOMI-75 DMF-1221 Error when starting Apache Unomi when offline

Repository: incubator-unomi
Updated Branches:
  refs/heads/master 8a01c7759 -> 12113c8b9


UNOMI-75 DMF-1221 Error when starting Apache Unomi when offline

Fixed by patching the org.apache.aries.blueprint.core to version 1.6.2 by manually replacing it in the startup.properties file.

Note that this correction will break when we upgrade Karaf !

Signed-off-by: Serge Huber <sh...@apache.org>


Project: http://git-wip-us.apache.org/repos/asf/incubator-unomi/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-unomi/commit/12113c8b
Tree: http://git-wip-us.apache.org/repos/asf/incubator-unomi/tree/12113c8b
Diff: http://git-wip-us.apache.org/repos/asf/incubator-unomi/diff/12113c8b

Branch: refs/heads/master
Commit: 12113c8b9920e8720523192b35b6e0c2f7984e42
Parents: 8a01c77
Author: Serge Huber <sh...@apache.org>
Authored: Wed Feb 1 13:25:08 2017 +0100
Committer: Serge Huber <sh...@apache.org>
Committed: Wed Feb 1 13:25:08 2017 +0100

----------------------------------------------------------------------
 package/pom.xml                                 |  9 +++
 .../src/main/resources/etc/startup.properties   | 59 ++++++++++++++++++++
 2 files changed, 68 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-unomi/blob/12113c8b/package/pom.xml
----------------------------------------------------------------------
diff --git a/package/pom.xml b/package/pom.xml
index 2d3ab3d..19a8e4c 100644
--- a/package/pom.xml
+++ b/package/pom.xml
@@ -269,6 +269,15 @@
                                             </outputDirectory>
                                             <destFileName>org.apache.unomi.plugins.mail.cfg</destFileName>
                                         </artifactItem>
+                                        <!-- UNOMI-75 : We install the blueprint core bundle in a different version to fix a problem with offline startup -->
+                                        <artifactItem>
+                                            <groupId>org.apache.aries.blueprint</groupId>
+                                            <artifactId>org.apache.aries.blueprint.core</artifactId>
+                                            <version>1.6.2</version>
+                                            <outputDirectory>
+                                                ${project.build.directory}/assembly/system/org/apache/aries/blueprint/org.apache.aries.blueprint.core/1.6.2
+                                            </outputDirectory>
+                                        </artifactItem>
                                     </artifactItems>
                                     <!-- other configurations here -->
                                 </configuration>

http://git-wip-us.apache.org/repos/asf/incubator-unomi/blob/12113c8b/package/src/main/resources/etc/startup.properties
----------------------------------------------------------------------
diff --git a/package/src/main/resources/etc/startup.properties b/package/src/main/resources/etc/startup.properties
new file mode 100644
index 0000000..e575eb4
--- /dev/null
+++ b/package/src/main/resources/etc/startup.properties
@@ -0,0 +1,59 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#      http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+# This files was patched manually to patch org.apache.aries.blueprint.core to version 1.6.2
+# to solve a problem with offline startup (UNOMI-75)
+
+#Bundles to be started on startup, with startlevel
+
+# feature: framework version: 3.0.8
+mvn\:org.ops4j.pax.url/pax-url-aether/2.4.7 = 5
+mvn\:org.ops4j.pax.url/pax-url-wrap/2.4.7/jar/uber = 5
+mvn\:org.ops4j.pax.logging/pax-logging-api/1.8.4 = 8
+mvn\:org.ops4j.pax.logging/pax-logging-service/1.8.4 = 8
+mvn\:org.apache.karaf.service/org.apache.karaf.service.guard/3.0.8 = 10
+mvn\:org.apache.felix/org.apache.felix.configadmin/1.8.4 = 10
+mvn\:org.apache.felix/org.apache.felix.fileinstall/3.5.2 = 11
+mvn\:org.ow2.asm/asm-all/5.0.3 = 12
+mvn\:org.apache.aries/org.apache.aries.util/1.1.1 = 20
+mvn\:org.apache.aries.proxy/org.apache.aries.proxy.api/1.0.1 = 20
+mvn\:org.apache.aries.blueprint/org.apache.aries.blueprint.cm/1.0.8 = 20
+mvn\:org.apache.aries.proxy/org.apache.aries.proxy.impl/1.0.4 = 20
+mvn\:org.apache.aries.blueprint/org.apache.aries.blueprint.api/1.0.1 = 20
+mvn\:org.apache.aries.blueprint/org.apache.aries.blueprint.core.compatibility/1.0.0 = 20
+mvn\:org.apache.aries.blueprint/org.apache.aries.blueprint.core/1.6.2 = 20
+mvn\:org.apache.karaf.deployer/org.apache.karaf.deployer.spring/3.0.8 = 24
+mvn\:org.apache.karaf.deployer/org.apache.karaf.deployer.blueprint/3.0.8 = 24
+mvn\:org.apache.karaf.deployer/org.apache.karaf.deployer.wrap/3.0.8 = 24
+mvn\:org.apache.karaf.region/org.apache.karaf.region.core/3.0.8 = 25
+mvn\:org.apache.karaf.features/org.apache.karaf.features.core/3.0.8 = 25
+mvn\:org.apache.karaf.deployer/org.apache.karaf.deployer.features/3.0.8 = 26
+mvn\:jline/jline/2.13 = 30
+mvn\:org.jledit/core/0.2.1 = 30
+mvn\:org.apache.karaf.features/org.apache.karaf.features.command/3.0.8 = 30
+mvn\:org.apache.karaf.bundle/org.apache.karaf.bundle.core/3.0.8 = 30
+mvn\:org.apache.karaf.bundle/org.apache.karaf.bundle.command/3.0.8 = 30
+mvn\:org.apache.karaf.shell/org.apache.karaf.shell.console/3.0.8 = 30
+mvn\:org.apache.karaf.jaas/org.apache.karaf.jaas.modules/3.0.8 = 30
+mvn\:org.apache.karaf.jaas/org.apache.karaf.jaas.config/3.0.8 = 30
+mvn\:org.apache.sshd/sshd-core/0.14.0 = 30
+mvn\:org.apache.karaf.shell/org.apache.karaf.shell.help/3.0.8 = 30
+mvn\:org.apache.karaf.shell/org.apache.karaf.shell.table/3.0.8 = 30
+mvn\:org.apache.karaf.system/org.apache.karaf.system.core/3.0.8 = 30
+mvn\:org.apache.karaf.system/org.apache.karaf.system.command/3.0.8 = 30
+mvn\:org.apache.karaf.shell/org.apache.karaf.shell.commands/3.0.8 = 30
+mvn\:org.apache.aries.quiesce/org.apache.aries.quiesce.api/1.0.0 = 30