You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by vi...@wipro.com on 2014/08/25 14:51:41 UTC

Building custom distribution using karaf-maven-plugin failing

Trying to build Karaf custom distribution as mentioned in http://karaf.apache.org/manual/latest/developers-guide/custom-distribution.html and getting following error

Failure to find org.eclipse:org.eclipse.osgi:jar:3.8.2.v20130124-134944

pom.xml is as follows which just a copy paste of what available in developer-guide with version tag added in line 26 and 36.

<?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>org.apache.karaf</groupId>
    <artifactId>apache-karaf-minimal</artifactId>
    <version>3.0.2-SNAPSHOT</version>
    <packaging>karaf-assembly</packaging>
    <name>Apache Karaf :: Assemblies :: Minimal Distribution</name>

    <dependencies>
        <dependency>
        <!-- scope is compile so all features (there is only one) are installed into startup.properties and the feature repo itself is not installed -->
            <groupId>org.apache.karaf.features</groupId>
            <artifactId>framework</artifactId>
            <version>3.0.2-SNAPSHOT</version>
            <type>kar</type>
        </dependency>
        <dependency>
        <!-- scope is runtime so the feature repo is listed in the features service config file, and features may be installed using the karaf-maven-plugin configuration -->
            <groupId>org.apache.karaf.features</groupId>
            <artifactId>standard</artifactId>
            <classifier>features</classifier>
            <type>xml</type>
            <scope>runtime</scope>
            <version>3.0.2-SNAPSHOT</version>
        </dependency>
    </dependencies>

    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.karaf.tooling</groupId>
                <artifactId>karaf-maven-plugin</artifactId>
                <extensions>true</extensions>
                <version>3.0.2-SNAPSHOT</version>
                <configuration>
                    <!-- no startupFeatures -->
                    <bootFeatures>
                        <feature>standard</feature>
                        <feature>management</feature>
                    </bootFeatures>
                    <!-- no installedFeatures -->
                </configuration>
            </plugin>
        </plugins>
    </build>
</project>



The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. 

WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.

www.wipro.com

RE: Building custom distribution using karaf-maven-plugin failing

Posted by vi...@wipro.com.
Its working after adding the SMX M2 repo.

Thanks
Vinu

-----Original Message-----
From: Jean-Baptiste Onofré [mailto:jb@nanthrax.net] 
Sent: Monday, August 25, 2014 6:27 PM
To: user@karaf.apache.org
Subject: Re: Building custom distribution using karaf-maven-plugin failing

Hi,

The equinox 3.8.2 artifact is on SMX M2 repo:

http://svn.apache.org/repos/asf/servicemix/m2-repo/org/eclipse/org.eclipse.osgi/3.8.2.v20130124-134944/

You have to add this repo in your pom.xml:

<repository>
<id>smx.m2</id>
<url>http://svn.apache.org/repos/asf/servicemix/m2-repo/</url>
</repository>

Regards
JB

On 08/25/2014 02:51 PM, vinuraj.maroli@wipro.com wrote:
> Trying to build Karaf custom distribution as mentioned in 
> http://karaf.apache.org/manual/latest/developers-guide/custom-distribu
> tion.html
> and getting following error
>
> Failure to find 
> org.eclipse:org.eclipse.osgi:jar:3.8.2.v20130124-134944
>
> pom.xml is as follows which just a copy paste of what available in 
> developer-guide with version tag added in line 26 and 36.
>
> <?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>org.apache.karaf</groupId>
>
>      <artifactId>apache-karaf-minimal</artifactId>
>
>      <version>3.0.2-SNAPSHOT</version>
>
>      <packaging>karaf-assembly</packaging>
>
>      <name>Apache Karaf :: Assemblies :: Minimal Distribution</name>
>
>      <dependencies>
>
>          <dependency>
>
>          <!-- scope is compile so all features (there is only one) are 
> installed into startup.properties and the feature repo itself is not 
> installed -->
>
>              <groupId>org.apache.karaf.features</groupId>
>
>              <artifactId>framework</artifactId>
>
>              <version>3.0.2-SNAPSHOT</version>
>
>              <type>kar</type>
>
>          </dependency>
>
>          <dependency>
>
>          <!-- scope is runtime so the feature repo is listed in the 
> features service config file, and features may be installed using the 
> karaf-maven-plugin configuration -->
>
>              <groupId>org.apache.karaf.features</groupId>
>
>              <artifactId>standard</artifactId>
>
>              <classifier>features</classifier>
>
>              <type>xml</type>
>
>              <scope>runtime</scope>
>
>              <version>3.0.2-SNAPSHOT</version>
>
>          </dependency>
>
>      </dependencies>
>
>      <build>
>
>          <plugins>
>
>              <plugin>
>
>                  <groupId>org.apache.karaf.tooling</groupId>
>
>                  <artifactId>karaf-maven-plugin</artifactId>
>
>                  <extensions>true</extensions>
>
>                  <version>3.0.2-SNAPSHOT</version>
>
>                  <configuration>
>
>                      <!-- no startupFeatures -->
>
>                      <bootFeatures>
>
>                          <feature>standard</feature>
>
>                          <feature>management</feature>
>
>                      </bootFeatures>
>
>                      <!-- no installedFeatures -->
>
>                  </configuration>
>
>              </plugin>
>
>          </plugins>
>
>      </build>
>
> </project>
>
> The information contained in this electronic message and any 
> attachments to this message are intended for the exclusive use of the 
> addressee(s) and may contain proprietary, confidential or privileged 
> information. If you are not the intended recipient, you should not 
> disseminate, distribute or copy this e-mail. Please notify the sender 
> immediately and destroy all copies of this message and any attachments.
>
> WARNING: Computer viruses can be transmitted via email. The recipient 
> should check this email and any attachments for the presence of viruses.
> The company accepts no liability for any damage caused by any virus 
> transmitted by this email.
>
> www.wipro.com
>

--
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com

The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. 

WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.

www.wipro.com

Re: Building custom distribution using karaf-maven-plugin failing

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi,

The equinox 3.8.2 artifact is on SMX M2 repo:

http://svn.apache.org/repos/asf/servicemix/m2-repo/org/eclipse/org.eclipse.osgi/3.8.2.v20130124-134944/

You have to add this repo in your pom.xml:

<repository>
<id>smx.m2</id>
<url>http://svn.apache.org/repos/asf/servicemix/m2-repo/</url>
</repository>

Regards
JB

On 08/25/2014 02:51 PM, vinuraj.maroli@wipro.com wrote:
> Trying to build Karaf custom distribution as mentioned in
> http://karaf.apache.org/manual/latest/developers-guide/custom-distribution.html
> and getting following error
>
> Failure to find org.eclipse:org.eclipse.osgi:jar:3.8.2.v20130124-134944
>
> pom.xml is as follows which just a copy paste of what available in
> developer-guide with version tag added in line 26 and 36.
>
> <?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>org.apache.karaf</groupId>
>
>      <artifactId>apache-karaf-minimal</artifactId>
>
>      <version>3.0.2-SNAPSHOT</version>
>
>      <packaging>karaf-assembly</packaging>
>
>      <name>Apache Karaf :: Assemblies :: Minimal Distribution</name>
>
>      <dependencies>
>
>          <dependency>
>
>          <!-- scope is compile so all features (there is only one) are
> installed into startup.properties and the feature repo itself is not
> installed -->
>
>              <groupId>org.apache.karaf.features</groupId>
>
>              <artifactId>framework</artifactId>
>
>              <version>3.0.2-SNAPSHOT</version>
>
>              <type>kar</type>
>
>          </dependency>
>
>          <dependency>
>
>          <!-- scope is runtime so the feature repo is listed in the
> features service config file, and features may be installed using the
> karaf-maven-plugin configuration -->
>
>              <groupId>org.apache.karaf.features</groupId>
>
>              <artifactId>standard</artifactId>
>
>              <classifier>features</classifier>
>
>              <type>xml</type>
>
>              <scope>runtime</scope>
>
>              <version>3.0.2-SNAPSHOT</version>
>
>          </dependency>
>
>      </dependencies>
>
>      <build>
>
>          <plugins>
>
>              <plugin>
>
>                  <groupId>org.apache.karaf.tooling</groupId>
>
>                  <artifactId>karaf-maven-plugin</artifactId>
>
>                  <extensions>true</extensions>
>
>                  <version>3.0.2-SNAPSHOT</version>
>
>                  <configuration>
>
>                      <!-- no startupFeatures -->
>
>                      <bootFeatures>
>
>                          <feature>standard</feature>
>
>                          <feature>management</feature>
>
>                      </bootFeatures>
>
>                      <!-- no installedFeatures -->
>
>                  </configuration>
>
>              </plugin>
>
>          </plugins>
>
>      </build>
>
> </project>
>
> The information contained in this electronic message and any attachments
> to this message are intended for the exclusive use of the addressee(s)
> and may contain proprietary, confidential or privileged information. If
> you are not the intended recipient, you should not disseminate,
> distribute or copy this e-mail. Please notify the sender immediately and
> destroy all copies of this message and any attachments.
>
> WARNING: Computer viruses can be transmitted via email. The recipient
> should check this email and any attachments for the presence of viruses.
> The company accepts no liability for any damage caused by any virus
> transmitted by this email.
>
> www.wipro.com
>

-- 
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com