Of course, but first thanks for your support:

<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>karaf.try</groupId>
        <artifactId>karaf.assembly</artifactId>
        <version>0.0.1-SNAPSHOT</version>
        <packaging>karaf-assembly</packaging>
        
        <dependencies>
                <dependency>
                        <groupId>my.company</groupId>
                        <artifactId>my.company.feature</artifactId>
                        <version>1.0-SNAPSHOT</version>
                        <classifier>features</classifier>
                        <type>xml</type>
                        <scope>runtime</scope>
                </dependency>
                <dependency>
                        <groupId>org.apache.karaf.features</groupId>
                        <artifactId>framework</artifactId>
                        <version>${karaf.version}</version>
                        <type>kar</type>
                </dependency>
                <dependency>
                        <groupId>org.apache.karaf.features</groupId>
                        <artifactId>standard</artifactId>
                        <version>${karaf.version}</version>
                        <classifier>features</classifier>
                        <type>xml</type>
                        <scope>runtime</scope>
                </dependency>
                <dependency>
                        <groupId>org.apache.karaf.features</groupId>
                        <artifactId>enterprise</artifactId>
                        <version>${karaf.version}</version>
                        <type>xml</type>
                        <classifier>features</classifier>
                        <scope>runtime</scope>
                </dependency>
        </dependencies>

        <build>
                
                <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>
                        
                        <plugin>
                                <groupId>org.apache.maven.plugins</groupId>
                                <artifactId>maven-resources-plugin</artifactId>
                                <version>2.7</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>
                                <extensions>true</extensions>
                                <version>${karaf.version}</version>
                                <configuration>
                                
                                <bootFeatures>
                                                <feature>standard</feature>
                                                <feature>management</feature>
                                                <feature>jndi</feature>
                                                <feature>jdbc</feature>
                                                
<feature>my.company.feature</feature>
                                                <feature>jpa</feature>
                                                <feature>openjpa</feature>
                                </bootFeatures>
                                </configuration>
                        </plugin>
                </plugins>
        </build>

        <properties>
                <karaf.version>3.0.3</karaf.version>
        </properties>
</project>



Here is my feature pom.xml (autogenerated by karaf-feature-archetype)
<groupId>my.company</groupId>
    <artifactId>my.company.feature</artifactId>
    <version>1.0-SNAPSHOT</version>
    <packaging>feature</packaging>

    <name>my.company.feature-feature</name>
    <description>my.company.feature details</description>

    <dependencies>
        
    </dependencies>

    <build>
        <pluginManagement>
            <plugins>
                <plugin>
                    <groupId>org.apache.karaf.tooling</groupId>
                    <artifactId>karaf-maven-plugin</artifactId>
                    <version>3.0.3</version>
                    <extensions>true</extensions>
                </plugin>
            </plugins>
        </pluginManagement>
        <plugins>
            <plugin>
                <groupId>org.apache.karaf.tooling</groupId>
                <artifactId>karaf-maven-plugin</artifactId>

                <configuration>
                    <startLevel>50</startLevel>
                    <aggregateFeatures>true</aggregateFeatures>
                    <resolver>(obr)</resolver>
                    <checkDependencyChange>true</checkDependencyChange>
                    <failOnDependencyChange>false</failOnDependencyChange>
                    <logDependencyChanges>true</logDependencyChanges>
                   
<overwriteChangedDependencies>true</overwriteChangedDependencies>
                </configuration>
            </plugin>
        </plugins>
    </build>





--
View this message in context: 
http://karaf.922171.n3.nabble.com/karaf-assembly-and-installed-feature-tp4038346p4038357.html
Sent from the Karaf - Dev mailing list archive at Nabble.com.

Reply via email to