You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by nibblenabbler <pa...@gmail.com> on 2014/11/03 20:21:40 UTC

Custom Distribution 3.0.1 vs 3.0.2. Difference?

I have custom distribution that compiled successfully with Karaf v3.0.1 but
now does not not with v3.0.2.  It has a problem referencing a features xml
file from a dependent Kar.  It's almost like it's not looking inside the Kar
for the features xml file.  Ultimately, what I'm trying to do is install a
feature from the dependent Kar.  Again, this exact same POM works with
v3.0.1.  All versions in POM are specified in a parent POM so that is why
they are not seen there.  Essentially for the 3.0.2 test, the version of the
karaf-maven-plugin, and the karaf standard and framework dependencies were
bumped to 3.0.2.  Any help is appreciated.

Error during compilation of custom distro:

Caused by: org.eclipse.aether.transfer.ArtifactNotFoundException: Could not
find artifact
com.samstercode.karafrecipes:karaf-app:xml:features:1.0.0-SNAPSHOT in nexus
(http://localhost:8081/nexus/content/groups/karaf-recipes)

Here is the pom.xml file for the custom distro:

<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>

    <parent>
        <groupId>com.samstercode.karafrecipes</groupId>
        <artifactId>karaf-recipes</artifactId>
        <version>1.0.0-SNAPSHOT</version>
    </parent>

    <artifactId>karaf-distro</artifactId>
    <packaging>karaf-assembly</packaging>
    <name>KARAF RECIPES :: DISTRO</name>
    <description>Karaf Recipes Distribution</description>

    <dependencies>
        <dependency>
            
            <groupId>org.apache.karaf.features</groupId>
            <artifactId>framework</artifactId>
            <type>kar</type>
        </dependency>
        <dependency>
            
            <groupId>org.apache.karaf.features</groupId>
            <artifactId>standard</artifactId>
            <classifier>features</classifier>
            <type>xml</type>
            <scope>runtime</scope>
        </dependency>
        <dependency>
            <groupId>org.apache.cxf.karaf</groupId>
            <artifactId>apache-cxf</artifactId>
            <classifier>features</classifier>
            <type>xml</type>
            <scope>runtime</scope>
       </dependency>
        <dependency>
            <groupId>com.samstercode.karafrecipes</groupId>
            <artifactId>karaf-app</artifactId>
            <version>${project.version}</version>
            <type>kar</type>
        </dependency>
    </dependencies>

    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.karaf.tooling</groupId>
                <artifactId>karaf-maven-plugin</artifactId>
                <extensions>true</extensions>
                <configuration>
                    
                    <bootFeatures>
                        <feature>standard</feature>
                        <feature>management</feature>
                        <feature>webconsole</feature>
                        <feature>cxf-rs-security-cors</feature>
                        <feature>war</feature>
                        <feature>karaf-app</feature>
                    </bootFeatures>
                    
                </configuration>
            </plugin>
        </plugins>
    </build>

</project>







--
View this message in context: http://karaf.922171.n3.nabble.com/Custom-Distribution-3-0-1-vs-3-0-2-Difference-tp4036225.html
Sent from the Karaf - User mailing list archive at Nabble.com.