Hi,

yes I tested with your pom, and as you didn't provide any boot/startup/install features, it tries to load all, so some requirements to Spring bundles.

It's up to you to define the features that you want installed, and part of boot or startup features. We do the standard Karaf distribution, you have to decide the features in your custom distribution.

Regards
JB

On 09/25/2014 01:07 PM, Rodrigo Serra wrote:
Helo JB,

You make the tests with the pom from my previous mail?

I found the problem. I compare the dependencies from my test pom vs  dependencies in 
module "Apache Karaf :: Assemblies :: Default Distribution” and i found a 
dependency to spring feature:
         <dependency>
             <groupId>org.apache.karaf.features</groupId>
             <artifactId>spring</artifactId>
             <classifier>features</classifier>
             <type>xml</type>
             <scope>runtime</scope>
         </dependency>

When include this dependency to my pom the resulting assembly works. No more 
missing bundles.

This is the expected behavior?

Regards,
Rodrigo

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

By the way, I tested both Java7 and Java8 successfully (again on CentOS 7 
without Internet connection) ;)

Regards
JB

On 09/24/2014 02:59 PM, Rodrigo Serra wrote:
Hi JB, the resulting distribution. Regards, Rodrigo

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

Hi Rodrigo,

you mean you launch mvn without Internet ?
or the resulting distribution on a vm without Internet ?

Regards
JB

On 09/24/2014 02:41 PM, Rodrigo Serra wrote:
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


--
Jean-Baptiste Onofré
[email protected]
http://blog.nanthrax.net
Talend - http://www.talend.com


--
Jean-Baptiste Onofré
[email protected]
http://blog.nanthrax.net
Talend - http://www.talend.com


--
Jean-Baptiste Onofré
[email protected]
http://blog.nanthrax.net
Talend - http://www.talend.com

Reply via email to