Hello JB,

I try with a reduced version of my pom and i can reproduce problem. The only 
catch is running the assembly in VM a isolated from internet. This is the pom:

<?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>test</groupId>
    <artifactId>assembly</artifactId>
    <packaging>karaf-assembly</packaging>
    <version>1.0.0-SNAPSHOT</version>

    <properties>
        <karaf.version>3.0.2-SNAPSHOT</karaf.version>
    </properties>

    <name>Test :: Assembly</name>
    <dependencies>
        <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>
            <version>${karaf.version}</version>
            <artifactId>standard</artifactId>
            <classifier>features</classifier>
            <type>xml</type>
            <scope>runtime</scope>
        </dependency>
        <dependency>
            <groupId>org.apache.karaf.features</groupId>
            <version>${karaf.version}</version>
            <artifactId>enterprise</artifactId>
            <classifier>features</classifier>
            <type>xml</type>
            <scope>runtime</scope>
        </dependency>
    </dependencies>
    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.karaf.tooling</groupId>
                <artifactId>karaf-maven-plugin</artifactId>
                <version>${karaf.version}</version>
                <extensions>true</extensions>
                <configuration>
                    <resourcesDir>${basedir}/target/resources</resourcesDir>
                </configuration>
            </plugin>
        </plugins>
    </build>
</project>

Regards,
Rodrigo

El 24/09/2014, a las 09:22, Jean-Baptiste Onofré <[email protected]> escribió:

> Hi Rodrigo,
> 
> unfortunately, I can't fully test your pom as it depends to other artifacts 
> (sgc-features or osgi-derby-feature).
> 
> Anyway, it looks good to me (I tested something similar with camel and it 
> works fine).
> So maybe you have some artifacts resolution issue (at bundle level).
> 
> If you can send to me (private) the output of mvn -X clean install of your 
> assembly, I can take a look.
> 
> Thanks,
> Regards
> JB
> 
> On 09/24/2014 11:38 AM, Rodrigo Serra wrote:
>> <?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>
>>     <parent>
>>         <artifactId>sgc</artifactId>
>>         <groupId>ar.com.jlab</groupId>
>>         <version>1.1.13-SNAPSHOT</version>
>>     </parent>
>> 
>>     <groupId>ar.com.jlab.sgc.sgc-assembly</groupId>
>>     <artifactId>sgc</artifactId>
>>     <packaging>karaf-assembly</packaging>
>> 
>>     <name>SGC :: Assembly</name>
>>     <dependencies>
>>         <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>
>>             <version>${karaf.version}</version>
>>             <artifactId>standard</artifactId>
>>             <classifier>features</classifier>
>>             <type>xml</type>
>>             <scope>runtime</scope>
>>         </dependency>
>>         <dependency>
>>             <groupId>org.apache.karaf.features</groupId>
>>             <version>${karaf.version}</version>
>>             <artifactId>enterprise</artifactId>
>>             <classifier>features</classifier>
>>             <type>xml</type>
>>             <scope>runtime</scope>
>>         </dependency>
>>         <dependency>
>>             <groupId>ar.com.jlab.sgc.sgc-features</groupId>
>>             <artifactId>sgc</artifactId>
>>             <version>1.1.13-SNAPSHOT</version>
>>             <classifier>features</classifier>
>>             <type>xml</type>
>>             <scope>runtime</scope>
>>         </dependency>
>>         <dependency>
>>             <groupId>ar.com.jlab.osgi.derby</groupId>
>>             <artifactId>osgi-derby-feature</artifactId>
>>             <version>${osgi-derby.version}</version>
>>             <classifier>features</classifier>
>>             <type>xml</type>
>>             <scope>runtime</scope>
>>         </dependency>
>>     </dependencies>
>>     <build>
>>         <resources>
>>             <resource>
>>                 <directory>${pom.basedir}/src/main</directory>
>>                 <filtering>true</filtering>
>>                 <includes>
>>                     <include>**/*</include>
>>                 </includes>
>>             </resource>
>>         </resources>
>>         <plugins>
>>             <plugin>
>>                 <artifactId>maven-antrun-plugin</artifactId>
>>                 <version>1.7</version>
>>                 <executions>
>>                     <execution>
>>                         <phase>validate</phase>
>>                         <goals>
>>                             <goal>run</goal>
>>                         </goals>
>>                         <configuration>
>>                             <tasks>
>>                                 <property name="versionNumerica" 
>> value="${project.version}" />
>>                                 <script language="javascript">
>>                                     var versionNumerica = 
>> project.getProperty("versionNumerica");
>>                                     project.setProperty("versionNumerica", 
>> versionNumerica.replaceAll("-", "."));
>>                                 </script>
>>                             </tasks>
>>                             <exportAntProperties>true</exportAntProperties>
>>                         </configuration>
>>                     </execution>
>>                 </executions>
>>             </plugin>
>>             <plugin>
>>                 <groupId>org.apache.maven.plugins</groupId>
>>                 <artifactId>maven-resources-plugin</artifactId>
>>                 <version>2.6</version>
>>                 <executions>
>>                     <execution>
>>                         <id>resource</id>
>>                         <phase>prepare-package</phase>
>>                         <goals>
>>                             <goal>copy-resources</goal>
>>                         </goals>
>>                         <configuration>
>>                             <resources>
>>                                 <resource>
>>                                     <filtering>true</filtering>
>>                                     
>> <directory>src/main/resources/</directory>
>>                                 </resource>
>>                             </resources>
>>                             
>> <outputDirectory>target/assembly</outputDirectory>
>>                         </configuration>
>>                     </execution>
>>                 </executions>
>>             </plugin>
>> 
>>             <plugin>
>>                 <groupId>org.apache.karaf.tooling</groupId>
>>                 <artifactId>karaf-maven-plugin</artifactId>
>>                 <version>${karaf.version}</version>
>>                 <extensions>true</extensions>
>>                 <configuration>
>>                     <resourcesDir>${basedir}/target/resources</resourcesDir>
>>                     <bootFeatures>
>>                         <feature>wrapper</feature>
>>                         <feature>derby-server</feature>
>>                         <feature>sgc</feature>
>>                     </bootFeatures>
>>                 </configuration>
>>             </plugin>
>>         </plugins>
>>     </build>
>> </project>
> 
> -- 
> Jean-Baptiste Onofré
> [email protected]
> http://blog.nanthrax.net
> Talend - http://www.talend.com

Reply via email to