Hi all,

I was able to get rid of above issue by adding below code to the
p2-profile-jen/pom.xml

<execution>
                        <id>publishing product</id>
                        <phase>package</phase>
                        <goals>
                            <goal>publish-product</goal>
                        </goals>
                        <configuration>

<productConfigurationFile>${basedir}/carbon.product
                            </productConfigurationFile>
                            <executable>

${basedir}/target/org.eclipse.equinox.executable_3.5.0.v20110530-7P7NFUFFLWUl76mart
                            </executable>

<metadataRepository>file:${basedir}/target/p2-repo</metadataRepository>

<artifactRepository>file:${basedir}/target/p2-repo</artifactRepository>
                        </configuration>
                    </execution>


But still I am getting below error.

Installing carbon.product.id 4.3.0.
Installation failed.
Cannot complete the install because one or more required items could not be
found.
 Software being installed: Carbon Product 4.3.0 (carbon.product.id 4.3.0)
 Missing requirement: ECF HttpClient Filetransfer Provider
4.0.200.v20120319-0616 (org.eclipse.ecf.provider.filetransfer.httpclient
4.0.200.v20120319-0616) requires 'package org.apache.commons.httpclient
[3.0.1,3.1.0]' but it could not be found
 Cannot satisfy dependency:
  From: Carbon Product 4.3.0 (carbon.product.id 4.3.0)
  To: org.wso2.carbon.core.runtime.feature.group [4.3.0]
 Cannot satisfy dependency:
  From: WSO2 Carbon - Carbon Runtime Feature 4.3.0
(org.wso2.carbon.core.runtime.feature.group 4.3.0)
  To: org.eclipse.ecf.provider.filetransfer.httpclient
[4.0.200.v20120319-0616]
Application failed, log file location:
/home/ayesha/WORK/cleanm3/org/eclipse/tycho/tycho-p2-runtime/0.13.0/eclipse/configuration/1423719273294.log

Any Idea about this?



On Mon, Jan 5, 2015 at 9:50 PM, Ayesha Dissanayaka <aye...@wso2.com> wrote:

> Hi,
>
> In order to enable worker profile for WSO2 ES clustering, I have looked
> into WSO2-AS implementation and added below executors in
> *<ES_SOURCE>/modules/p2-profile-gen/pom.xml*
>
> <execution>
>    <id>creating-worker-profile</id>
>    .......
> </execution>
>
> and
>
> <execution>
>    <id>p2-profile-generation-for-worker-profile</id>
>    .......
> </execution>
>
> as mentioned in [1].
>
> I also placed carbon.product file [2] into
> *<ES_SOURCE>/modules/p2-profile-gen* directory.
>
> When I build the source, it fails at p2-profile-gen giving below error.
>
> [INFO] Command line:
>     /bin/sh -c cd
> /home/ayesha/WORK/ES/SOURCE/product-es/enterprise-store/modules/p2-profile-gen
> && /usr/lib/jvm/jdk1.6.0_31/jre/bin/java -jar
> /home/ayesha/WORK/cleanm3/org/eclipse/tycho/tycho-p2-runtime/0.13.0/eclipse/plugins/org.eclipse.equinox.launcher_1.2.0.v20110725-1610.jar
> -nosplash -application org.eclipse.equinox.p2.director -metadataRepository
> file:/home/ayesha/WORK/ES/SOURCE/product-es/enterprise-store/modules/p2-profile-gen/target/p2-repo
> -artifactRepository
> file:/home/ayesha/WORK/ES/SOURCE/product-es/enterprise-store/modules/p2-profile-gen/target/p2-repo
> -installIU carbon.product.id -profileProperties
> org.eclipse.update.install.features=true -profile worker -bundlepool
> file:/home/ayesha/WORK/ES/SOURCE/product-es/enterprise-store/modules/p2-profile-gen/target/wso2carbon-core-4.3.0-SNAPSHOT/repository/components
> -shared
> file:/home/ayesha/WORK/ES/SOURCE/product-es/enterprise-store/modules/p2-profile-gen/target/wso2carbon-core-4.3.0-SNAPSHOT/repository/components/p2
> -destination
> file:/home/ayesha/WORK/ES/SOURCE/product-es/enterprise-store/modules/p2-profile-gen/target/wso2carbon-core-4.3.0-SNAPSHOT/repository/components/worker
> -p2.os linux -p2.ws gtk -p2.arch x86 -roaming
> [INFO] Command line:
>     /bin/sh -c cd
> /home/ayesha/WORK/ES/SOURCE/product-es/enterprise-store/modules/p2-profile-gen
> && /usr/lib/jvm/jdk1.6.0_31/jre/bin/java -jar
> /home/ayesha/WORK/cleanm3/org/eclipse/tycho/tycho-p2-runtime/0.13.0/eclipse/plugins/org.eclipse.equinox.launcher_1.2.0.v20110725-1610.jar
> -nosplash -application org.eclipse.equinox.p2.director -metadataRepository
> file:/home/ayesha/WORK/ES/SOURCE/product-es/enterprise-store/modules/p2-profile-gen/target/p2-repo
> -artifactRepository
> file:/home/ayesha/WORK/ES/SOURCE/product-es/enterprise-store/modules/p2-profile-gen/target/p2-repo
> -installIU carbon.product.id -profileProperties
> org.eclipse.update.install.features=true -profile worker -bundlepool
> file:/home/ayesha/WORK/ES/SOURCE/product-es/enterprise-store/modules/p2-profile-gen/target/wso2carbon-core-4.3.0-SNAPSHOT/repository/components
> -shared
> file:/home/ayesha/WORK/ES/SOURCE/product-es/enterprise-store/modules/p2-profile-gen/target/wso2carbon-core-4.3.0-SNAPSHOT/repository/components/p2
> -destination
> file:/home/ayesha/WORK/ES/SOURCE/product-es/enterprise-store/modules/p2-profile-gen/target/wso2carbon-core-4.3.0-SNAPSHOT/repository/components/worker
> -p2.os linux -p2.ws gtk -p2.arch x86 -roaming
>
> Installation failed.
> The installable unit carbon.product.id has not been found.
> Application failed, log file location:
> /home/ayesha/WORK/cleanm3/org/eclipse/tycho/tycho-p2-runtime/0.13.0/eclipse/configuration/1420474389637.log
>
> I couldn't figure out what is "carbon.product.id" mentioned in [2], which
> causes the build error.
>
> Can someone point out whether I am following a correct approach or what
> might be going wrong here?
>
> [1]
> https://github.com/wso2-dev/product-as/blob/master/modules/p2-profile-gen/pom.xml
> [2]
> https://github.com/wso2-dev/product-as/blob/master/modules/p2-profile-gen/carbon.product
>
>
> Thanks!
> - Ayesha
> --
> *Ayesha Dissanayaka*
> Software Engineer,
> WSO2, Inc : http://wso2.com
> <http://www.google.com/url?q=http%3A%2F%2Fwso2.com&sa=D&sntz=1&usg=AFQjCNEZvyc0uMD1HhBaEGCBxs6e9fBObg>
> 20, Palmgrove Avenue, Colombo 3
> E-Mail: aye...@wso2.com <ayshsa...@gmail.com>
>



-- 
*Ayesha Dissanayaka*
Software Engineer,
WSO2, Inc : http://wso2.com
<http://www.google.com/url?q=http%3A%2F%2Fwso2.com&sa=D&sntz=1&usg=AFQjCNEZvyc0uMD1HhBaEGCBxs6e9fBObg>
20, Palmgrove Avenue, Colombo 3
E-Mail: aye...@wso2.com <ayshsa...@gmail.com>
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to