|
Switched from eclipse-application to eclipse-repository because former
wasn't picking up launch arguments from the product definition. Now I'm getting two errors. The first appears to be due to the space in the path (note how ' ' is substituted first with '%20' and then '%2520') and disappears when I relocate the project elsewhere (i.e. to a path without spaces). But I can't get rid of the second error ("unable to parse 1.0.0"). Any ideas what cold be going wrong here? !SESSION 2010-10-11 18:32:25.659 ----------------------------------------------- eclipse.buildId=unknown java.version=1.6.0_21 java.vendor=Sun Microsystems Inc. BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US Framework arguments: -application org.sonatype.tycho.p2.publisher.ProductPublisher -artifactRepository file:/C:/Users/Eric/Test%20Project/build/target/repository -metadataRepository file:/C:/Users/Eric/Test%20Project/build/target/repository -contextMetadata file:/C:/Users/Eric/Test%20Project/build/target/targetMetadataRepository/ -append -publishArtifacts -compress -productFile C:\Users\Eric\Test Project\build\target\products\null\build.product -executables C:\Users\Eric\Test Project\eclipse_all\features\org.eclipse.equinox.executable_3.4.1.R36x_v20100823-7M7K7JF90dnJ-WLf3cf4yi -flavor tooling -configs win32.win32.x86,win32.win32.x86_64 Command-line arguments: -application org.sonatype.tycho.p2.publisher.ProductPublisher -consoleLog -artifactRepository file:/C:/Users/Eric/Test%20Project/build/target/repository -metadataRepository file:/C:/Users/Eric/Test%20Project/build/target/repository -contextMetadata file:/C:/Users/Eric/Test%20Project/build/target/targetMetadataRepository/ -append -publishArtifacts -compress -productFile C:\Users\Eric\Test Project\build\target\products\null\build.product -executables C:\Users\Eric\Test Project\eclipse_all\features\org.eclipse.equinox.executable_3.4.1.R36x_v20100823-7M7K7JF90dnJ-WLf3cf4yi -flavor tooling -configs win32.win32.x86,win32.win32.x86_64 !ENTRY org.eclipse.equinox.p2.core 4 0 2010-10-11 18:32:27.572 !MESSAGE Provisioning exception !STACK 1 org.eclipse.equinox.p2.core.ProvisionException: No repository found at file:/C:/Users/Eric/Test%2520Project/build/target/targetMetadataRepository. at org.eclipse.equinox.internal.p2.repository.helpers.AbstractRepositoryManager.fail(AbstractRepositoryManager.java:392) at org.eclipse.equinox.internal.p2.repository.helpers.AbstractRepositoryManager.loadRepository(AbstractRepositoryManager.java:676) at org.eclipse.equinox.internal.p2.metadata.repository.MetadataRepositoryManager.loadRepository(MetadataRepositoryManager.java:96) at org.eclipse.equinox.internal.p2.metadata.repository.MetadataRepositoryManager.loadRepository(MetadataRepositoryManager.java:92) at org.eclipse.equinox.internal.p2.metadata.repository.CompositeMetadataRepository.addChild(CompositeMetadataRepository.java:153) at org.eclipse.equinox.internal.p2.metadata.repository.CompositeMetadataRepository.addChild(CompositeMetadataRepository.java:172) at org.eclipse.equinox.p2.publisher.AbstractPublisherApplication.processMetadataRepositoryList(AbstractPublisherApplication.java:217) at org.eclipse.equinox.p2.publisher.AbstractPublisherApplication.processParameter(AbstractPublisherApplication.java:183) at org.eclipse.equinox.p2.publisher.eclipse.ProductPublisherApplication.processParameter(ProductPublisherApplication.java:51) at org.eclipse.equinox.p2.publisher.AbstractPublisherApplication.processCommandLineArguments(AbstractPublisherApplication.java:149) at org.eclipse.equinox.p2.publisher.AbstractPublisherApplication.run(AbstractPublisherApplication.java:270) at org.eclipse.equinox.p2.publisher.AbstractPublisherApplication.start(AbstractPublisherApplication.java:323) 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:619) !SUBENTRY 1 org.eclipse.equinox.p2.metadata.repository 4 1000 2010-10-11 18:32:27.573 !MESSAGE No repository found at file:/C:/Users/Eric/Test%2520Project/build/target/targetMetadataRepository. 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 1.0.0. java.lang.IllegalArgumentException: Format "format(n[.n=0;[.n=0;[.S=[A-Za-z0-9_-];='';]]])" was unable to parse 1.0.0. -artifactRepository file:/C:/Users/Eric/Test%20Project/build/target/repository -metadataRepository file:/C:/Users/Eric/Test%20Project/build/target/repository -contextMetadata file:/C:/Users/Eric/Test%20Project/build/target/targetMetadataRepository/ -append -publishArtifacts -compress -productFile C:\Users\Eric\Test Project\build\target\products\null\build.product -executables C:\Users\Eric\Test Project\eclipse_all\features\org.eclipse.equinox.executable_3.4.1.R36x_v20100823-7M7K7JF90dnJ-WLf3cf4yi -flavor tooling -configs win32.win32.x86,win32.win32.x86_64 |
|
the whitespace handling is a bug
https://issues.sonatype.org/browse/TYCHO-503 for the second problem I can't tell for sure because the logs are not complete / seem mixed up with the first problem. I suspect that line -productFile C:\Users\Eric\Test Project\build\target\products\null\build.product (note the "null") indicates that you have an invalid .product file (uid attribute missing). check if you can open the file with the eclipse pde product editor and make sure you have a uid attribute as e.g. in http://github.com/sonatype/sonatype-tycho/blob/master/tycho-demo/itp04-rcp/eclipse-repository/example.product . If that does not help please provide a sample project along with full debug log. Regards Jan -----Original Message----- From: Eric Jain [mailto:[hidden email]] Sent: Dienstag, 12. Oktober 2010 18:50 To: [hidden email] Subject: [Tycho Users] Can't build eclipse-repository (0.10.0) Switched from eclipse-application to eclipse-repository because former wasn't picking up launch arguments from the product definition. Now I'm getting two errors. The first appears to be due to the space in the path (note how ' ' is substituted first with '%20' and then '%2520') and disappears when I relocate the project elsewhere (i.e. to a path without spaces). But I can't get rid of the second error ("unable to parse 1.0.0"). Any ideas what cold be going wrong here? !SESSION 2010-10-11 18:32:25.659 ----------------------------------------------- eclipse.buildId=unknown java.version=1.6.0_21 java.vendor=Sun Microsystems Inc. BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US Framework arguments: -application org.sonatype.tycho.p2.publisher.ProductPublisher -artifactRepository file:/C:/Users/Eric/Test%20Project/build/target/repository -metadataRepository file:/C:/Users/Eric/Test%20Project/build/target/repository -contextMetadata file:/C:/Users/Eric/Test%20Project/build/target/targetMetadataRepository/ -append -publishArtifacts -compress -productFile C:\Users\Eric\Test Project\build\target\products\null\build.product -executables C:\Users\Eric\Test Project\eclipse_all\features\org.eclipse.equinox.executable_3.4.1.R36x_v20100823-7M7K7JF90dnJ-WLf3cf4yi -flavor tooling -configs win32.win32.x86,win32.win32.x86_64 Command-line arguments: -application org.sonatype.tycho.p2.publisher.ProductPublisher -consoleLog -artifactRepository file:/C:/Users/Eric/Test%20Project/build/target/repository -metadataRepository file:/C:/Users/Eric/Test%20Project/build/target/repository -contextMetadata file:/C:/Users/Eric/Test%20Project/build/target/targetMetadataRepository/ -append -publishArtifacts -compress -productFile C:\Users\Eric\Test Project\build\target\products\null\build.product -executables C:\Users\Eric\Test Project\eclipse_all\features\org.eclipse.equinox.executable_3.4.1.R36x_v20100823-7M7K7JF90dnJ-WLf3cf4yi -flavor tooling -configs win32.win32.x86,win32.win32.x86_64 !ENTRY org.eclipse.equinox.p2.core 4 0 2010-10-11 18:32:27.572 !MESSAGE Provisioning exception !STACK 1 org.eclipse.equinox.p2.core.ProvisionException: No repository found at file:/C:/Users/Eric/Test%2520Project/build/target/targetMetadataRepository. at org.eclipse.equinox.internal.p2.repository.helpers.AbstractRepositoryManager.fail(AbstractRepositoryManager.java:392) at org.eclipse.equinox.internal.p2.repository.helpers.AbstractRepositoryManager.loadRepository(AbstractRepositoryManager.java:676) at org.eclipse.equinox.internal.p2.metadata.repository.MetadataRepositoryManager.loadRepository(MetadataRepositoryManager.java:96) at org.eclipse.equinox.internal.p2.metadata.repository.MetadataRepositoryManager.loadRepository(MetadataRepositoryManager.java:92) at org.eclipse.equinox.internal.p2.metadata.repository.CompositeMetadataRepository.addChild(CompositeMetadataRepository.java:153) at org.eclipse.equinox.internal.p2.metadata.repository.CompositeMetadataRepository.addChild(CompositeMetadataRepository.java:172) at org.eclipse.equinox.p2.publisher.AbstractPublisherApplication.processMetadataRepositoryList(AbstractPublisherApplication.java:217) at org.eclipse.equinox.p2.publisher.AbstractPublisherApplication.processParameter(AbstractPublisherApplication.java:183) at org.eclipse.equinox.p2.publisher.eclipse.ProductPublisherApplication.processParameter(ProductPublisherApplication.java:51) at org.eclipse.equinox.p2.publisher.AbstractPublisherApplication.processCommandLineArguments(AbstractPublisherApplication.java:149) at org.eclipse.equinox.p2.publisher.AbstractPublisherApplication.run(AbstractPublisherApplication.java:270) at org.eclipse.equinox.p2.publisher.AbstractPublisherApplication.start(AbstractPublisherApplication.java:323) 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:619) !SUBENTRY 1 org.eclipse.equinox.p2.metadata.repository 4 1000 2010-10-11 18:32:27.573 !MESSAGE No repository found at file:/C:/Users/Eric/Test%2520Project/build/target/targetMetadataRepository. 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 1.0.0. java.lang.IllegalArgumentException: Format "format(n[.n=0;[.n=0;[.S=[A-Za-z0-9_-];='';]]])" was unable to parse 1.0.0. -artifactRepository file:/C:/Users/Eric/Test%20Project/build/target/repository -metadataRepository file:/C:/Users/Eric/Test%20Project/build/target/repository -contextMetadata file:/C:/Users/Eric/Test%20Project/build/target/targetMetadataRepository/ -append -publishArtifacts -compress -productFile C:\Users\Eric\Test Project\build\target\products\null\build.product -executables C:\Users\Eric\Test Project\eclipse_all\features\org.eclipse.equinox.executable_3.4.1.R36x_v20100823-7M7K7JF90dnJ-WLf3cf4yi -flavor tooling -configs win32.win32.x86,win32.win32.x86_64 |
|
On Tue, Oct 12, 2010 at 14:13, Sievers, Jan <[hidden email]> wrote:
> I suspect that line > -productFile C:\Users\Eric\Test > Project\build\target\products\null\build.product > > (note the "null") indicates that you have an invalid .product file (uid attribute missing). > > check if you can open the file with the eclipse pde product editor and make sure you have a uid attribute as e.g. in > http://github.com/sonatype/sonatype-tycho/blob/master/tycho-demo/itp04-rcp/eclipse-repository/example.product . The product was indeed missing the uid attribute (the Eclipse build doesn't seem to care about it). But after adding it I still get the same error: 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 1.0.0. java.lang.IllegalArgumentException: Format "format(n[.n=0;[.n=0;[.S=[A-Za-z0-9_-];='';]]])" was unable to parse 1.0.0. If I remove the ".qualifier" from the version attribute in the .product file this error doesn't occur, though I run into this error a short while later: Installing test.product.id 1.0.0. Installation failed. Cannot complete the install because one or more required items could not be found. Software being installed: Test 1.0.0 (test.product.id 1.0.0) Missing requirement: Test 1.0.0 (test.product.id 1.0.0) requires 'org.eclipse.swt.gtk.linux.x86 0.0.0' but it could not be found This bundle exists in the target platform, but is not copied to the repository because I don't mention that platform in the parent POM: <plugin> <groupId>org.sonatype.tycho</groupId> <artifactId>target-platform-configuration</artifactId> <version>0.10.0</version> <configuration> <environments> <environment> <os>win32</os> <ws>win32</ws> <arch>x86</arch> </environment> <environment> <os>win32</os> <ws>win32</ws> <arch>x86_64</arch> </environment> </environments> </configuration> </plugin> So why does Tycho still think I want that environment? |
|
On Tue, Oct 12, 2010 at 15:16, Eric Jain <[hidden email]> wrote:
> The product was indeed missing the uid attribute (the Eclipse build > doesn't seem to care about it). But after adding it I still get the > same error: > > Â 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 > 1.0.0. java.lang.IllegalArgumentException: Format > "format(n[.n=0;[.n=0;[.S=[A-Za-z0-9_-];='';]]])" was unable to parse > 1.0.0. Traced that back to having <version>1.0.0</version> in the pom.xml. If I change that to <version>1.0.0-SNAPSHOT</version>, I can use 1.0.0.qualifier in the .product file. |
|
I was able to reproduce your bug, created
https://issues.sonatype.org/browse/TYCHO-504 Regards Jan -----Original Message----- From: Eric Jain [mailto:[hidden email]] Sent: Mittwoch, 13. Oktober 2010 00:47 To: [hidden email] Subject: Re: [Tycho Users] Can't build eclipse-repository (0.10.0) On Tue, Oct 12, 2010 at 15:16, Eric Jain <[hidden email]> wrote: > The product was indeed missing the uid attribute (the Eclipse build > doesn't seem to care about it). But after adding it I still get the > same error: > > Â 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 > 1.0.0. java.lang.IllegalArgumentException: Format > "format(n[.n=0;[.n=0;[.S=[A-Za-z0-9_-];='';]]])" was unable to parse > 1.0.0. Traced that back to having <version>1.0.0</version> in the pom.xml. If I change that to <version>1.0.0-SNAPSHOT</version>, I can use 1.0.0.qualifier in the .product file. |
|
In reply to this post by ejain
On Tue, Oct 12, 2010 at 15:16, Eric Jain <[hidden email]> wrote:
> Installing test.product.id 1.0.0. > Installation failed. > Cannot complete the install because one or more required items could > not be found. > Â Software being installed: Test 1.0.0 (test.product.id 1.0.0) > Â Missing requirement: Test 1.0.0 (test.product.id 1.0.0) requires > 'org.eclipse.swt.gtk.linux.x86 0.0.0' but it could not be found > > This bundle exists in the target platform, but is not copied to the > repository because I don't mention that platform in the parent POM: Update: If I add gtk-linux-x86 to the list of environments in the parent pom.xml, I can see org.eclipse.swt.gtk.linux.x86_3.6.1.v3655c.jar showing up in target/repository/plugins/, but I still get the same error... |
|
On Wed, Oct 13, 2010 at 16:00, Eric Jain <[hidden email]> wrote:
> Update: If I add gtk-linux-x86 to the list of environments in the > parent pom.xml, I can see > org.eclipse.swt.gtk.linux.x86_3.6.1.v3655c.jar showing up in > target/repository/plugins/, but I still get the same error... Turns out I had been referencing that bundle from the .product file. If I remove that reference the build works. But I do need to do build the product for several platforms... Perhaps there is an issue with how I create the target platform: I unzip the eclipse-rcp-helios-SR1-win32-x86_64.zip and eclipse-3.6.1-delta-pack.zip into a directory and copy a few required third-party bundles into the plugins dir. Anything wrong with that approach? |
|
In reply to this post by Sievers, Jan
Hi,
there have already been a few questions regarding the new packaging type "eclipse-repository" on the mailing list. It seems that documentation is missing here. While we have written documentation, it is not on the right place at the moment. (It is currently on the github wiki pages from jlohre: http://github.com/jlohre/sonatype-tycho/wiki/_pages ). So we believe it would make much more sense to integrate what we have written into the official documentation into the tycho wiki, for example here: https://docs.sonatype.org/display/TYCHO/PackagingTypes and here: https://docs.sonatype.org/display/TYCHO/Tycho+reference+card . How can we do this? Would you grant us write permission in the tycho wiki so that we can integrate the documentation? Best regards, Holger. |
|
Sure, sign as a user at issues.sonatype.org and then give me the user id and I'll give you access.
On Oct 20, 2010, at 7:01 AM, Oehm, Holger wrote:
Thanks, Jason ---------------------------------------------------------- Jason van Zyl Founder, Apache Maven http://twitter.com/jvanzyl --------------------------------------------------------- To do two things at once is to do neither. -—Publilius Syrus, Roman slave, first century B.C. |
|
Everything is wired up with Crowd via JIRA which is why you have to signup through JIRA and not Confluence. Should have explained that.
On Oct 20, 2010, at 10:39 AM, Jason van Zyl wrote:
Thanks, Jason ---------------------------------------------------------- Jason van Zyl Founder, Apache Maven http://twitter.com/jvanzyl --------------------------------------------------------- |
|
Hi Jason, my username on https://issues.sonatype.org/secure/ViewProfile.jspa
is just holger. Thank you and best regards, Holger. From: Jason van Zyl [mailto:[hidden email]] Everything is wired up with Crowd via JIRA which is why you
have to signup through JIRA and not Confluence. Should have explained that. On Oct 20, 2010, at 10:39 AM, Jason van Zyl wrote:
Sure, sign as a user at issues.sonatype.org
and then give me the user id and I'll give you access. On Oct 20, 2010, at 7:01 AM, Oehm, Holger wrote:
Hi, Thanks, To do two things at once is to do neither. Thanks, |
|
There you go.
On Oct 20, 2010, at 11:34 AM, Oehm, Holger wrote: holger Thanks, Jason ---------------------------------------------------------- Jason van Zyl Founder, Apache Maven http://twitter.com/jvanzyl --------------------------------------------------------- People develop abstractions by generalizing from concrete examples. Every attempt to determine the correct abstraction on paper without actually developing a running system is doomed to failure. No one is that smart. A framework is a resuable design, so you develop it by looking at the things it is supposed to be a design of. The more examples you look at, the more general your framework will be. -- Ralph Johnson & Don Roberts, Patterns for Evolving Frameworks |
| Powered by Nabble | Edit this page |
