Sure, here you go:

<?xml version="1.0" encoding="UTF-8"?>
<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/xsd/maven-4.0.0.xsd";>

        <modelVersion>4.0.0</modelVersion>

        <groupId>com.envera.east.server</groupId>
        <artifactId>grand-central.distribution</artifactId>
        <version>1.0</version>
        <packaging>karaf-assembly</packaging>

        <properties>
                <karaf.version>4.0.5</karaf.version>
        </properties>

        <dependencies>
        
                <!-- Karaf framework features repo -->
                <!-- scope is compile so all features (there is only one) are 
installed into startup.properties and the feature repo itself is not added in 
etc/org.apache.karaf.features.cfg file -->
                <dependency>
                        <groupId>org.apache.karaf.features</groupId>
                        <artifactId>framework</artifactId>
                        <version>${karaf.version}</version>
                        <type>kar</type>
                </dependency>
                
                <!-- Karaf standard features repo -->
                <!-- scope is runtime so the feature repo is listed in 
etc/org.apache.karaf.features.cfg file, and features will installed into the 
system directory -->
                <dependency>
                        <groupId>org.apache.karaf.features</groupId>
                        <artifactId>standard</artifactId>
                        <classifier>features</classifier>
                        <type>xml</type>
                        <scope>runtime</scope>
                        <version>${karaf.version}</version>
                </dependency>

                <!-- Karaf enterprise features repo -->
                <dependency>
                        <groupId>org.apache.karaf.features</groupId>
                        <artifactId>enterprise</artifactId>
                        <classifier>features</classifier>
                        <type>xml</type>
                        <scope>runtime</scope>
                        <version>${karaf.version}</version>
                </dependency>

                <!-- DOSGi repo -->
                <dependency>
                        <groupId>org.apache.cxf.dosgi</groupId>
                        <artifactId>cxf-dosgi</artifactId>
                        <classifier>features</classifier>
                        <type>xml</type>
                        <scope>runtime</scope>
                        <version>1.7.0</version>
                </dependency>

                <!-- My repo -->
                <dependency>
                        <groupId>com.my.server</groupId>
                        <artifactId>my-feature</artifactId>
                        <classifier>features</classifier>
                        <type>xml</type>
                        <scope>runtime</scope>
                        <version>${karaf.version}</version>
                </dependency>

        </dependencies>

        <build>
                <!-- if you want to include resources in the distribution -->
                <resources>
                        <resource>
                                <directory>src/main/resources</directory>
                                <filtering>false</filtering>
                                <includes>
                                        <include>**/*</include>
                                </includes>
                        </resource>
                        <resource>
                                
<directory>src/main/filtered-resources</directory>
                                <filtering>true</filtering>
                                <includes>
                                        <include>**/*</include>
                                </includes>
                        </resource>
                </resources>

                <plugins>
                        <!-- if you want to include resources in the 
distribution -->
                        <plugin>
                                <groupId>org.apache.maven.plugins</groupId>
                                <artifactId>maven-resources-plugin</artifactId>
                                <version>2.6</version>
                                <executions>
                                        <execution>
                                                <id>process-resources</id>
                                                <goals>
                                                        <goal>resources</goal>
                                                </goals>
                                        </execution>
                                </executions>
                        </plugin>
                        <plugin>
                                <groupId>org.apache.karaf.tooling</groupId>
                                <artifactId>karaf-maven-plugin</artifactId>
                                <version>${karaf.version}</version>
                                <extensions>true</extensions>
                                <configuration>
                                        <startupFeatures>
                                                <!-- No startup Features -->
                                        </startupFeatures>
                                        <bootFeatures>
                                                <feature>minimal</feature>
                                                
<feature>aries-blueprint</feature>
                                                <feature>scr</feature>
                                                <feature>webconsole</feature>
                                                <feature>eventadmin</feature>
                                                <feature>jndi</feature>
                                                <feature>jpa</feature>
                                                <feature>jdbc</feature>
                                                <feature>eclipselink</feature>
                                                
<feature>cxf-dosgi-discovery-local</feature>
                                                <feature>my-feature</feature>
                                        </bootFeatures>
                                        <installedFeatures>
                                                <!-- No installed Features -->
                                        </installedFeatures>
                                </configuration>
                        </plugin>
                </plugins>
        </build>
</project>



> On Jul 16, 2016, at 15:37, Jean-Baptiste Onofré <[email protected]> wrote:
> 
> Can you share your pom xml ?
> 
> 
> 
> Sent from my Samsung device
> 
> 
> -------- Original message --------
> From: Erwin Hogeweg <[email protected]> 
> Date: 16/07/2016 21:36 (GMT+01:00) 
> To: [email protected] 
> Subject: Re: 4.0.5 Custom Distro not Starting (properly). - IGNORE 
> 
> Hi -
> 
> Did some more analysis. The ‘already installed’ msgs don’t really seem to be 
> an issue. The features appear to be installed and running and I don’t see 
> them on subsequent framework restarts.
> 
> The non-responsive console still IS an issue, but that seems to be related to 
> my own feature, so please ignore ;-)
> 
> Erwin
> 
>> On Jul 16, 2016, at 11:04, Erwin Hogeweg <[email protected] 
>> <mailto:[email protected]>> wrote:
>> 
>> Hi,
>> 
>> I am trying to create a custom distro, following the examples in the 4.0 
>> manual (BTW… the online and PDF versions are different), but I can’t get a 
>> working system up and running.
>> 
>> This is the section in the pom where I define the bootfeatures.
>> 
>>      <plugin>
>>      <groupId>org.apache.karaf.tooling</groupId>
>>      <artifactId>karaf-maven-plugin</artifactId>
>>      <version>${karaf.version}</version>
>>      <extensions>true</extensions>
>>      <configuration>
>>              <!-- no startupFeatures -->
>>              <bootFeatures>
>>                      <feature>minimal</feature>
>>                      <feature>aries-blueprint</feature>
>>                      <feature>cxf-dosgi-discovery-local</feature>
>>                      <feature>webconsole</feature>
>>                      <feature>eventadmin</feature>
>>                      <feature>scr</feature>
>>                      <feature>jndi</feature>
>>                      <feature>jpa</feature>
>>                      <feature>jdbc</feature>
>>                      <feature>eclipselink</feature>
>>              </bootFeatures>
>>              <installedFeatures>
>>                      <!—feature>my-feature</feature-->
>>              </installedFeatures>
>>      </configuration>
>> </plugin>
>> 
>> And this is what Karaf tells me: After the msgs the console is ‘dead’. 
>> 
>>   Apache Karaf (4.0.5)
>> 
>> Hit '<tab>' for a list of available commands
>> and '[cmd] --help' for help on a specific command.
>> Hit '<ctrl-d>' or type 'system:shutdown' or 'logout' to shutdown Karaf.
>> 
>> karaf@root()> The specified feature: 'minimal' version '4.0.5' is already 
>> installed
>> The specified feature: 'cxf-dosgi-discovery-local' version '1.7.0' is 
>> already installed
>> The specified feature: 'scr' version '4.0.5' is already installed
>> The specified feature: 'eventadmin' version '4.0.5' is already installed
>> The specified feature: 'eclipselink' version '2.6.1' is already installed
>> The specified feature: 'jndi' version '4.0.5' is already installed
>> The specified feature: 'jpa' version '2.3.0' is already installed
>> The specified feature: 'jdbc' version '4.0.5' is already installed
>> The specified feature: 'webconsole' version '4.0.5' is already installed
>> The specified feature: 'aries-blueprint' version '4.0.5' is already installed
>> la
>> <nothing>
>> 
>> I tried to remove the ‘minimal’ feature and replace it with required 
>> features, with similar result.
>> 
>> The logfile looks ‘normal’ except for the fact that bundles are stopped 
>> right when the configuration is complete (see below).
>> 
>> I am sure it is something stupid, but I haven’t been able to figure it out 
>> yet.
>> 
>> Any insight would be greatly appreciated.
>> 
>> 
>> Regards,
>> 
>> Erwin
>> 
>> 
>> ===== LOG excerpt
>> 
>> 2016-07-16 10:38:28,308 | INFO  | pool-8-thread-1  | FeaturesServiceImpl     
>>          | 7 - org.apache.karaf.features.core - 4.0.5 |   
>> mvn:org.jledit/core/0.2.1
>> 2016-07-16 10:38:28,311 | INFO  | pool-8-thread-1  | FeaturesServiceImpl     
>>          | 7 - org.apache.karaf.features.core - 4.0.5 |   
>> mvn:org.ow2.asm/asm-all/5.0.4
>> 2016-07-16 10:38:28,313 | INFO  | pool-8-thread-1  | FeaturesServiceImpl     
>>          | 7 - org.apache.karaf.features.core - 4.0.5 |   
>> mvn:org.ops4j.pax.web/pax-web-api/4.2.6
>> 2016-07-16 10:38:28,314 | INFO  | pool-8-thread-1  | FeaturesServiceImpl     
>>          | 7 - org.apache.karaf.features.core - 4.0.5 |   
>> mvn:org.ops4j.pax.web/pax-web-jetty/4.2.6
>> 2016-07-16 10:38:28,318 | INFO  | pool-8-thread-1  | FeaturesServiceImpl     
>>          | 7 - org.apache.karaf.features.core - 4.0.5 |   
>> mvn:org.ops4j.pax.web/pax-web-runtime/4.2.6
>> 2016-07-16 10:38:28,320 | INFO  | pool-8-thread-1  | FeaturesServiceImpl     
>>          | 7 - org.apache.karaf.features.core - 4.0.5 |   
>> mvn:org.ops4j.pax.web/pax-web-spi/4.2.6
>> 2016-07-16 10:38:28,323 | INFO  | pool-8-thread-1  | FeaturesServiceImpl     
>>          | 7 - org.apache.karaf.features.core - 4.0.5 |   
>> mvn:org.codehaus.woodstox/stax2-api/3.1.4
>> 2016-07-16 10:38:28,325 | INFO  | pool-8-thread-1  | FeaturesServiceImpl     
>>          | 7 - org.apache.karaf.features.core - 4.0.5 |   
>> mvn:org.codehaus.woodstox/woodstox-core-asl/4.4.1
>> 2016-07-16 10:38:28,352 | INFO  | pool-8-thread-1  | FeaturesServiceImpl     
>>          | 7 - org.apache.karaf.features.core - 4.0.5 | Creating 
>> configuration file /Users/erwin/work/…/my.distribution-1.0//etc/jetty.xml
>> 2016-07-16 10:38:28,353 | INFO  | pool-8-thread-1  | FeaturesServiceImpl     
>>          | 7 - org.apache.karaf.features.core - 4.0.5 | Stopping bundles:
>> 2016-07-16 10:38:28,354 | INFO  | pool-8-thread-1  | FeaturesServiceImpl     
>>          | 7 - org.apache.karaf.features.core - 4.0.5 |   
>> org.ops4j.pax.jdbc.config/0.8.0
>> 2016-07-16 10:38:28,354 | INFO  | pool-8-thread-1  | FeaturesServiceImpl     
>>          | 7 - org.apache.karaf.features.core - 4.0.5 |   
>> org.ops4j.pax.jdbc/0.8.0
>> 2016-07-16 10:38:28,354 | INFO  | pool-8-thread-1  | FeaturesServiceImpl     
>>          | 7 - org.apache.karaf.features.core - 4.0.5 |   
>> org.apache.servicemix.bundles.jasypt/1.9.2.1
>> 2016-07-16 10:38:28,354 | INFO  | pool-8-thread-1  | FeaturesServiceImpl     
>>          | 7 - org.apache.karaf.features.core - 4.0.5 |   
>> org.apache.sshd.core/0.14.0
>> 2016-07-16 10:38:28,354 | INFO  | pool-8-thread-1  | FeaturesServiceImpl     
>>          | 7 - org.apache.karaf.features.core - 4.0.5 |   
>> org.apache.karaf.features.core/4.0.5
>> 2016-07-16 10:38:28,357 | INFO  | pool-8-thread-1  | FeaturesServiceImpl     
>>          | 7 - org.apache.karaf.features.core - 4.0.5 |   
>> org.apache.felix.fileinstall/3.5.4
>> 2016-07-16 10:38:28,360 | INFO  | pool-8-thread-1  | FeaturesServiceImpl     
>>          | 7 - org.apache.karaf.features.core - 4.0.5 |   
>> org.apache.felix.configadmin/1.8.8
>> 2016-07-16 10:38:28,360 | INFO  | pool-8-thread-1  | FeaturesServiceImpl     
>>          | 7 - org.apache.karaf.features.core - 4.0.5 |   
>> org.ops4j.pax.logging.pax-logging-api/1.8.5
>> 2016-07-16 10:38:28,361 | INFO  | pool-8-thread-1  | Activator               
>>          | 1 - org.ops4j.pax.logging.pax-logging-api - 1.8.5 | Disabling 
>> SLF4J API support.
>> 2016-07-16 10:38:28,361 | INFO  | pool-8-thread-1  | Activator               
>>          | 1 - org.ops4j.pax.logging.pax-logging-api - 1.8.5 | Disabling 
>> Jakarta Commons Logging API support.
>> 2016-07-16 10:38:28,361 | INFO  | pool-8-thread-1  | Activator               
>>          | 1 - org.ops4j.pax.logging.pax-logging-api - 1.8.5 | Disabling 
>> Log4J API support.
>> 2016-07-16 10:38:28,361 | INFO  | pool-8-thread-1  | Activator               
>>          | 1 - org.ops4j.pax.logging.pax-logging-api - 1.8.5 | Disabling 
>> Avalon Logger API support.
>> 2016-07-16 10:38:28,361 | INFO  | pool-8-thread-1  | Activator               
>>          | 1 - org.ops4j.pax.logging.pax-logging-api - 1.8.5 | Disabling 
>> JULI Logger API support.
>> 2016-07-16 10:38:28,362 | INFO  | pool-8-thread-1  | Activator               
>>          | 1 - org.ops4j.pax.logging.pax-logging-api - 1.8.5 | Disabling 
>> Log4J v2 API support.
>> 
>> 
> 

Reply via email to