Skip to content

Instantly share code, notes, and snippets.

View anpieber's full-sized avatar

Andreas Pieber anpieber

  • Schmutterer+Partner Information Technology GmbH
  • Austria, Vienna
View GitHub Profile
[pieber@coprime maven-test]$ tree
.
├── pom.xml
├── test-assembly
│   ├── pom.xml
│   ├── src
│   │   └── main
│   │   └── resources
│   │   └── features.xml
│   └── target
[pieber@coprime features-maven-plugin]$ git diff
diff --git a/tooling/features-maven-plugin/src/main/java/org/apache/karaf/tooling/features/AddFeaturesToRepoMojo.java b/tooling/features
index 1c363c8..54fd190 100644
--- a/tooling/features-maven-plugin/src/main/java/org/apache/karaf/tooling/features/AddFeaturesToRepoMojo.java
+++ b/tooling/features-maven-plugin/src/main/java/org/apache/karaf/tooling/features/AddFeaturesToRepoMojo.java
@@ -54,8 +54,8 @@ import org.xml.sax.SAXException;
*
* @version $Revision$
* @goal add-features-to-repo
- * @phase compile
[DEBUG] Configuring mojo org.apache.karaf.tooling:features-maven-plugin:2.2.4-SNAPSHOT:add-features-to-repo from plugin realm ClassRealm[plugin>org.apache.karaf.tooling:features-maven-plugin:2.2.4-SNAPSHOT, parent: sun.misc.Launcher$AppClassLoader@489a44f1]
[DEBUG] Configuring mojo 'org.apache.karaf.tooling:features-maven-plugin:2.2.4-SNAPSHOT:add-features-to-repo' with basic configurator -->
[DEBUG] (f) descriptors = [file:/home/pieber/Downloads/maven-test/test-assembly/target/classes/features.xml]
[DEBUG] (f) featureArtifactType = xml
[DEBUG] (f) features = [test]
[DEBUG] (f) localRepo = id: local
url: file:///home/pieber/.m2/repository/
layout: none
[DEBUG] (f) project = MavenProject: test:test-assembly:0.0.1-SNAPSHOT @ /home/pieber/Downloads/maven-test/test-assembly/pom.xml
diff --git a/assemblies/apache-karaf/src/main/distribution/unix-shell/bin/karaf b/assemblies/apache-karaf/src/main/distribution/unix-shell/bin/karaf
index 19f47e3..5947cbc 100755
--- a/assemblies/apache-karaf/src/main/distribution/unix-shell/bin/karaf
+++ b/assemblies/apache-karaf/src/main/distribution/unix-shell/bin/karaf
@@ -20,24 +20,28 @@ DIRNAME=`dirname "$0"`
PROGNAME=`basename "$0"`
#
-# Check/Set up some easily accessible MIN/MAX params for JVM mem usage
+# Sourcing environment settings for karaf similar to tomcats setenv
<?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:context="http://www.springframework.org/schema/context" xmlns:osgi="http://www.springframework.org/schema/osgi"
xmlns:osgix="http://www.springframework.org/schema/osgi-compendium" xmlns:wicket="http://www.ops4j.org/schema/wicket"
xmlns:jaxws="http://cxf.apache.org/jaxws" xmlns:soap="http://cxf.apache.org/bindings/soap"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd
http://www.springframework.org/schema/osgi http://www.springframework.org/schema/osgi/spring-osgi-1.2.xsd
http://www.springframework.org/schema/osgi-compendium http://www.springframework.org/schema/osgi-compendium/spring-osgi-compendium-1.2.xsd
@anpieber
anpieber / gist:1363110
Created November 14, 2011 02:38
original
################################################################################
#
# 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
#Modified by paxexam
#Mon Nov 14 03:34:48 CET 2011
karaf.auto.start=startup.properties
${includes}=jre.properties custom.properties
org.osgi.framework.system.packages=org.osgi.framework.startlevel;uses\:\="org.osgi.framework";version\="1.0", org.osgi.framework.wiring;uses\:\="org.osgi.framework";version\="1.0", org.osgi.framework.hooks.bundle;uses\:\="org.osgi.framework";version\="1.0", org.osgi.framework.hooks.service;uses\:\="org.osgi.framework";version\="1.1", org.osgi.framework.hooks.resolver;uses\:\="org.osgi.framework.wiring";version\="1.0", org.osgi.framework.launch;uses\:\="org.osgi.framework";version\="1.0", org.osgi.framework;version\="1.6",org.osgi.framework.hooks.weaving;uses\:\="org.osgi.framework.wiring";version\="1.0", org.osgi.service.packageadmin;uses\:\="org.osgi.framework";version\="1.2", org.osgi.service.url;version\="1.0", org.osgi.service.startlevel;uses\:\="org.osgi.framework";version\="1.1", org.osgi.util.tracker;uses\:\="org.osgi.framework";version\="1.5", org.apache.karaf.jaas.boot;v
@Override
protected void init() {
super.init();
applicationLifecycleListener.onInit(this);
}
@Override
protected void onDestroy() {
applicationLifecycleListener.onDestroy(this);
super.onDestroy();
<?xml version="1.0" encoding="utf-8" ?>
<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0" xmlns:wicket="http://www.ops4j.org/schema/wicket">
<bean id="cdlAppFactory" class="at.ac.tuwien.ifs.cdl.ui.base.WicketApplicationFactory" />
<wicket:application id="cdlApplication" homepageClass="at.ac.tuwien.ifs.cdl.ui.base.WicketApplication"
applicationName="cdl" mountPoint="cdl" applicationFactory="cdlAppFactory" />
<!-- Part required to automatically mount wicket pages -->
<wicket:injectionProvider id="injectionProvider" applicationName="cdl" />
[DEBUG] -d /home/pieber/karaf/shell/console/target/classes -classpath /home/pieber/karaf/shell/console/target/classes:/home/pieber/.m2/repository/org/slf4j/slf4j-simple/1.6.1/slf4j-simple-1.6.1.jar:/home/pieber/.m2/repository/org/slf4j/slf4j-api/1.6.1/slf4j-api-1.6.1.jar:/home/pieber/.m2/repository/org/fusesource/jansi/jansi/1.7/jansi-1.7.jar:/home/pieber/.m2/repository/net/sf/jline/jline/2.6-SNAPSHOT/jline-2.6-SNAPSHOT.jar:/home/pieber/.m2/repository/org/osgi/org.osgi.core/4.3.0/org.osgi.core-4.3.0.jar:/home/pieber/.m2/repository/org/osgi/org.osgi.compendium/4.2.0/org.osgi.compendium-4.2.0.jar:/home/pieber/karaf/jaas/modules/target/org.apache.karaf.jaas.modules-3.0.0-SNAPSHOT.jar:/home/pieber/karaf/jaas/config/target/org.apache.karaf.jaas.config-3.0.0-SNAPSHOT.jar:/home/pieber/.m2/repository/org/apache/aries/blueprint/org.apache.aries.blueprint/0.4.1-SNAPSHOT/org.apache.aries.blueprint-0.4.1-SNAPSHOT.jar:/home/pieber/.m2/repository/org/apache/felix/org.apache.felix.gogo.runtime/0.10.0/org.apache.felix.gogo.r