Very easy :) Place this inside the $CARBON_HOME directory and run.

Then inside the extracted-jars directory, do a grep

#!/bin/sh


find repository/components/plugins -iname *.jar > jar-list.txt


mkdir extracted-jars

cd extracted-jars


while read p; do

  a=${p#repository/components/plugins/}

  unzip ../$p -d $a

done < ../jar-list.txt

On Tue, Jan 13, 2015 at 6:01 PM, Pamod Sylvester <pa...@wso2.com> wrote:

> Hi All,
>
> When building we're experiencing the following,
>
> Status ERROR: org.eclipse.equinox.p2.artifact.repository code=0 Format
> "format(n[.n=0;[.n=0;[.S=[A-Za-z0-9_-];='';]]])" was unable to parse
> 0.0.0.${wso2_kernel_version} java.lang.IllegalArgumentException: Format
> "format(n[.n=0;[.n=0;[.S=[A-Za-z0-9_-];='';]]])" was unable to parse
> 0.0.0.${wso2_kernel_version}
>
> SupunM pointed out its possibly due to the property not being grabbed from
> the parent pom, as a solution it requires to search through the jars and
> figure out which jar has the string {wso2_kernel_version} in Manifest
> instead of the version. By any chance do any of you have a script written
> already to do that ?
>
> Thanks,
> Pamod
>
>
> On Tue, Jan 13, 2015 at 9:10 AM, Chandana Napagoda <chand...@wso2.com>
> wrote:
>
>> Thanks Kasun.
>>
>> Regards,
>> Chandana
>>
>> On Tue, Jan 13, 2015 at 9:06 AM, KasunG Gajasinghe <kas...@wso2.com>
>> wrote:
>>
>>> Hi Chandana,
>>>
>>> Merged the PR.
>>>
>>> On Tue, Jan 13, 2015 at 9:05 AM, Chandana Napagoda <chand...@wso2.com>
>>> wrote:
>>>
>>>> Adding Dev,
>>>>
>>>> On Tue, Jan 13, 2015 at 6:54 AM, Chandana Napagoda <chand...@wso2.com>
>>>> wrote:
>>>>
>>>>> Hi Kalpa,
>>>>>
>>>>> Your PR was not automatically merged into wso2 repo. Can you please
>>>>> merge it[1]?
>>>>>
>>>>> [1]. https://github.com/wso2/carbon-qos/pull/10
>>>>>
>>>>> Thanks
>>>>>
>>>>>
>>>>>
>>>>> On Wed, Jan 7, 2015 at 3:58 PM, Kalpa Welivitigoda <kal...@wso2.com>
>>>>> wrote:
>>>>>
>>>>>> Hi Pulasthi,
>>>>>>
>>>>>> Fixed it and sent a PR https://github.com/wso2-dev/carbon-qos/pull/7
>>>>>>
>>>>>> On Wed, Jan 7, 2015 at 3:15 PM, Pulasthi Supun <pulas...@wso2.com>
>>>>>> wrote:
>>>>>>
>>>>>>> Hi,
>>>>>>>
>>>>>>> The greg build is falling with the following error. It seems this is
>>>>>>> because the version in the pom [1] is missing a "}". please check line 
>>>>>>> 76
>>>>>>> in the pom.xml. please correct this ASAP.
>>>>>>>
>>>>>>>
>>>>>>> [INFO] Running Equinox P2 Publisher Application for Repository
>>>>>>> Generation
>>>>>>> [INFO] Command line:
>>>>>>> /bin/sh -c cd
>>>>>>> /home/pulasthi/wso2/gitsource/greg/product-greg/modules/p2-profile-gen 
>>>>>>> &&
>>>>>>> /home/pulasthi/software/java/jdk1.6.0_45/jre/bin/java -jar
>>>>>>> /home/pulasthi/.m2/repository/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.publisher.FeaturesAndBundlesPublisher -source
>>>>>>> /home/pulasthi/wso2/gitsource/greg/product-greg/modules/p2-profile-gen/target/tmp.1420622170707/featureExtract
>>>>>>> -metadataRepository
>>>>>>> file:/home/pulasthi/wso2/gitsource/greg/product-greg/modules/p2-profile-gen/target/p2-repo
>>>>>>> -metadataRepositoryName governance-profile-gen -artifactRepository
>>>>>>> file:/home/pulasthi/wso2/gitsource/greg/product-greg/modules/p2-profile-gen/target/p2-repo
>>>>>>> -artifactRepositoryName governance-profile-gen -publishArtifacts
>>>>>>> -publishArtifactRepository -compress -append
>>>>>>> Generating metadata for ..
>>>>>>> Status ERROR: org.eclipse.equinox.p2.artifact.repository code=0
>>>>>>> Format "format(n[.n=0;[.n=0;[.S=[A-Za-z0-9_-];='';]]])" was unable to 
>>>>>>> parse
>>>>>>> 0.0.0.${carbon_kernel_version java.lang.IllegalArgumentException: Format
>>>>>>> "format(n[.n=0;[.n=0;[.S=[A-Za-z0-9_-];='';]]])" was unable to parse
>>>>>>> 0.0.0.${carbon_kernel_version
>>>>>>>
>>>>>>> Product publishing ended with the following exception:
>>>>>>> java.lang.IllegalArgumentException: Format
>>>>>>> "format(n[.n=0;[.n=0;[.S=[A-Za-z0-9_-];='';]]])" was unable to parse
>>>>>>> 0.0.0.${carbon_kernel_version
>>>>>>> at
>>>>>>> org.eclipse.equinox.internal.p2.metadata.VersionFormat.parse(VersionFormat.java:275)
>>>>>>> at
>>>>>>> org.eclipse.equinox.internal.p2.metadata.VersionParser.parse(VersionParser.java:89)
>>>>>>> at org.eclipse.equinox.p2.metadata.Version.create(Version.java:79)
>>>>>>> at
>>>>>>> org.eclipse.equinox.p2.metadata.Version.parseVersion(Version.java:141)
>>>>>>> at
>>>>>>> org.eclipse.equinox.p2.publisher.eclipse.FeatureEntry.<init>(FeatureEntry.java:63)
>>>>>>> at
>>>>>>> org.eclipse.equinox.p2.publisher.eclipse.FeatureEntry.createRequires(FeatureEntry.java:40)
>>>>>>> at
>>>>>>> org.eclipse.equinox.internal.p2.publisher.eclipse.FeatureManifestParser.processImport(FeatureManifestParser.java:194)
>>>>>>> at
>>>>>>> org.eclipse.equinox.internal.p2.publisher.eclipse.FeatureManifestParser.startElement(FeatureManifestParser.java:280)
>>>>>>> at
>>>>>>> com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:501)
>>>>>>> at
>>>>>>> com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(AbstractXMLDocumentParser.java:179)
>>>>>>> at
>>>>>>> com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:377)
>>>>>>> at
>>>>>>> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2756)
>>>>>>> at
>>>>>>> com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:647)
>>>>>>> at
>>>>>>> com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:140)
>>>>>>> at
>>>>>>> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:511)
>>>>>>> at
>>>>>>> com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:808)
>>>>>>> at
>>>>>>> com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)
>>>>>>> at
>>>>>>> com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:119)
>>>>>>> at
>>>>>>> com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205)
>>>>>>> at
>>>>>>> com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522)
>>>>>>> at javax.xml.parsers.SAXParser.parse(SAXParser.java:395)
>>>>>>> at
>>>>>>> org.eclipse.equinox.internal.p2.publisher.eclipse.FeatureManifestParser.parse(FeatureManifestParser.java:126)
>>>>>>> at
>>>>>>> org.eclipse.equinox.internal.p2.publisher.eclipse.FeatureParser.parse(FeatureParser.java:60)
>>>>>>> at
>>>>>>> org.eclipse.equinox.p2.publisher.eclipse.FeaturesAction.getFeatures(FeaturesAction.java:518)
>>>>>>> at
>>>>>>> org.eclipse.equinox.p2.publisher.eclipse.FeaturesAction.perform(FeaturesAction.java:604)
>>>>>>> at
>>>>>>> org.eclipse.equinox.p2.publisher.Publisher$ArtifactProcess.run(Publisher.java:207)
>>>>>>> at
>>>>>>> org.eclipse.equinox.internal.p2.artifact.repository.simple.SimpleArtifactRepository.executeBatch(SimpleArtifactRepository.java:1294)
>>>>>>> at
>>>>>>> org.eclipse.equinox.p2.publisher.Publisher.publish(Publisher.java:231)
>>>>>>> at
>>>>>>> org.eclipse.equinox.p2.publisher.AbstractPublisherApplication.run(AbstractPublisherApplication.java:283)
>>>>>>> at
>>>>>>> org.eclipse.equinox.p2.publisher.AbstractPublisherApplication.run(AbstractPublisherApplication.java:253)
>>>>>>> at
>>>>>>> org.eclipse.equinox.p2.publisher.AbstractPublisherApplication.start(AbstractPublisherApplication.java:315)
>>>>>>> at
>>>>>>> org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
>>>>>>> at
>>>>>>> org.eclipse.equinox.internal.app.AnyThreadAppLauncher.run(AnyThreadAppLauncher.java:26)
>>>>>>> at java.lang.Thread.run(Thread.java:662)
>>>>>>>
>>>>>>> Product publisher application was executed with the following
>>>>>>> arguments:
>>>>>>> -source
>>>>>>>
>>>>>>> /home/pulasthi/wso2/gitsource/greg/product-greg/modules/p2-profile-gen/target/tmp.1420622170707/featureExtract
>>>>>>> -metadataRepository
>>>>>>>
>>>>>>> file:/home/pulasthi/wso2/gitsource/greg/product-greg/modules/p2-profile-gen/target/p2-repo
>>>>>>> -metadataRepositoryName
>>>>>>> governance-profile-gen
>>>>>>> -artifactRepository
>>>>>>>
>>>>>>> file:/home/pulasthi/wso2/gitsource/greg/product-greg/modules/p2-profile-gen/target/p2-repo
>>>>>>> -artifactRepositoryName
>>>>>>> governance-profile-gen
>>>>>>> -publishArtifacts
>>>>>>> -publishArtifactRepository
>>>>>>> -compress
>>>>>>> -append
>>>>>>> [ERROR] P2 publisher return code was 1
>>>>>>> org.apache.maven.plugin.MojoFailureException: P2 publisher return
>>>>>>> code was 1
>>>>>>> at
>>>>>>> org.wso2.maven.p2.RepositoryGenMojo.generateRepository(RepositoryGenMojo.java:255)
>>>>>>> at
>>>>>>> org.wso2.maven.p2.RepositoryGenMojo.createRepo(RepositoryGenMojo.java:204)
>>>>>>> at
>>>>>>> org.wso2.maven.p2.RepositoryGenMojo.execute(RepositoryGenMojo.java:191)
>>>>>>> at
>>>>>>> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
>>>>>>> at
>>>>>>> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
>>>>>>> at
>>>>>>> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
>>>>>>> at
>>>>>>> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
>>>>>>> at
>>>>>>> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
>>>>>>> at
>>>>>>> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
>>>>>>> at
>>>>>>> org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
>>>>>>> at
>>>>>>> org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
>>>>>>> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
>>>>>>> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
>>>>>>> at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
>>>>>>> at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
>>>>>>> at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
>>>>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>>>> at
>>>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>>>>>> at
>>>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>>>>>> at java.lang.reflect.Method.invoke(Method.java:597)
>>>>>>> at
>>>>>>> org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
>>>>>>> at
>>>>>>> org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
>>>>>>> at
>>>>>>> org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
>>>>>>> at
>>>>>>> org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
>>>>>>> [INFO]
>>>>>>> ------------------------------------------------------------------------
>>>>>>> [INFO] Reactor Summary:
>>>>>>> [INFO]
>>>>>>> [INFO] WSO2 Governance Registry - P2 Profile Generation .. FAILURE
>>>>>>> [10:15.091s]
>>>>>>> [INFO] WSO2 Stratos - Cloud Governance Login User Interface  SKIPPED
>>>>>>> [INFO] WSO2 API Manager - BAM Toolbox .................... SKIPPED
>>>>>>> [INFO] WSO2 Governance Registry - Distribution ........... SKIPPED
>>>>>>> [INFO] WSO2 Governance Registry - Integration Tests ...... SKIPPED
>>>>>>> [INFO] Registry Admin-Clients Module ..................... SKIPPED
>>>>>>> [INFO] GREG Integration Test UI Pages .................... SKIPPED
>>>>>>> [INFO] Registry Test Utility Module ...................... SKIPPED
>>>>>>> [INFO] Registry Test Artifact Module ..................... SKIPPED
>>>>>>> [INFO] Registry Backward association handler Artifact .... SKIPPED
>>>>>>> [INFO] Registry Integration Test Module .................. SKIPPED
>>>>>>> [INFO] Registry Tests Resources Test Module .............. SKIPPED
>>>>>>> [INFO] Registry Metadata Test Module ..................... SKIPPED
>>>>>>> [INFO] Registry Lifecycle Test Module .................... SKIPPED
>>>>>>> [INFO] Registry Permission Test Module ................... SKIPPED
>>>>>>> [INFO] Registry Extensibility Test Module ................ SKIPPED
>>>>>>> [INFO] Registry Governance API Test Module ............... SKIPPED
>>>>>>> [INFO] Registry Smoke Test Module ........................ SKIPPED
>>>>>>> [INFO] Registry Public JIRA Test Module .................. SKIPPED
>>>>>>> [INFO] Registry Search and Version Test Module ........... SKIPPED
>>>>>>> [INFO] Registry TCK Test Module .......................... SKIPPED
>>>>>>> [INFO] Registry Test Reporting Module .................... SKIPPED
>>>>>>> [INFO] Registry UI Integration Test Module ............... SKIPPED
>>>>>>> [INFO] Greg UI Integration Test Module ................... SKIPPED
>>>>>>> [INFO]
>>>>>>> ------------------------------------------------------------------------
>>>>>>> [INFO] BUILD FAILURE
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> [1]
>>>>>>> https://github.com/wso2/carbon-qos/blob/1e499d2cfb4d192edbffb573b0c798051af0bdd4/features/throttle/org.wso2.carbon.throttle.server.feature/pom.xml
>>>>>>>
>>>>>>> Regards,
>>>>>>> Pulasthi
>>>>>>>
>>>>>>> --
>>>>>>> --
>>>>>>> Pulasthi Supun
>>>>>>> Software Engineer; WSO2 Inc.; http://wso2.com,
>>>>>>> Email: pulas...@wso2.com
>>>>>>> Mobile: +94 (71) 9258281
>>>>>>> Blog : http://pulasthisupun.blogspot.com/
>>>>>>> Git hub profile: https://github.com/pulasthi
>>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> Best Regards,
>>>>>>
>>>>>> Kalpa Welivitigoda
>>>>>> Software Engineer, WSO2 Inc. http://wso2.com
>>>>>> Email: kal...@wso2.com
>>>>>> Mobile: +94776509215
>>>>>>
>>>>>> _______________________________________________
>>>>>> Dev mailing list
>>>>>> Dev@wso2.org
>>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> *Chandana Napagoda*
>>>>> Senior Software Engineer
>>>>> WSO2 Inc. - http://wso2.org
>>>>>
>>>>> *Email  :  chand...@wso2.com <chand...@wso2.com>**Mobile :
>>>>> +94718169299 <%2B94718169299>*
>>>>>
>>>>> *Blog  :    http://cnapagoda.blogspot.com
>>>>> <http://cnapagoda.blogspot.com>*
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> *Chandana Napagoda*
>>>> Senior Software Engineer
>>>> WSO2 Inc. - http://wso2.org
>>>>
>>>> *Email  :  chand...@wso2.com <chand...@wso2.com>**Mobile :
>>>> +94718169299 <%2B94718169299>*
>>>>
>>>> *Blog  :    http://cnapagoda.blogspot.com
>>>> <http://cnapagoda.blogspot.com>*
>>>>
>>>>
>>>> _______________________________________________
>>>> Dev mailing list
>>>> Dev@wso2.org
>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>
>>>>
>>>
>>>
>>> --
>>>
>>> *Kasun Gajasinghe*Senior Software Engineer, WSO2 Inc.
>>> email: kasung AT spamfree wso2.com
>>> linked-in: http://lk.linkedin.com/in/gajasinghe
>>> blog: http://kasunbg.org
>>>
>>>
>>>
>>
>>
>>
>> --
>> *Chandana Napagoda*
>> Senior Software Engineer
>> WSO2 Inc. - http://wso2.org
>>
>> *Email  :  chand...@wso2.com <chand...@wso2.com>**Mobile : +94718169299
>> <%2B94718169299>*
>>
>> *Blog  :    http://cnapagoda.blogspot.com <http://cnapagoda.blogspot.com>*
>>
>>
>> _______________________________________________
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Pamod Sylvester *
>  *Senior Software Engineer *
> Integration Technologies Team, WSO2 Inc.; http://wso2.com
> email: pa...@wso2.com cell: +94 77 7779495
>



-- 
Sameera Jayasoma,
Software Architect,

WSO2, Inc. (http://wso2.com)
email: same...@wso2.com
blog: http://sameera.adahas.org
twitter: https://twitter.com/sameerajayasoma
flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
Mobile: 0094776364456

Lean . Enterprise . Middleware
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to