Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] Generating category metadata, MS Windows and spaces in path

category.xml was not defined ... noob

Would expect FileNotFoundException

Regards,
Stevo.

On Wed, Aug 24, 2011 at 11:56 AM, Stevo Slavić <sslavic@xxxxxxxxx> wrote:
> Hm, it's not issue with spaces, same seems to happen (see [1]) when I
> moved project to a path without spaces
>
> If only that exception "Location must be absolute" printed the
> location it was given to validate.
>
> Regards,
> Stevo.
>
> [1] failing build output snippet, on path without spaces
>
> ...
> [INFO] Command line:
>        cmd.exe /X /C ""C:\Users\Stevo
> Slavic\Work\Java\jdk\jdk1.6.0_26-x64\jre\bin\java.exe" -jar
> "C:\Users\Stevo
> Slavic\.m2\repository\org\eclipse\tycho\tycho-p2-runtime\0.12.0\eclipse\plugins\org.eclipse.equinox.launcher_1.1.1.R36x_v20101122_1400.jar"
> -debug -consoleLog -nosplash -application
> org.eclipse.equinox.p2.publisher.CategoryPublisher -metadataRepository
> file:/C:/Temp/m2e-cxf-codegen-connector/org.bitstrings.eclipse.m2e.connectors.cxf.feature/target/site/
> -categoryDefinition
> file:/C:/Temp/m2e-cxf-codegen-connector/org.bitstrings.eclipse.m2e.connectors.cxf.feature/category.xml"
> Install location:
>    file:/c:/Users/Stevo
> Slavic/.m2/repository/org/eclipse/tycho/tycho-p2-runtime/0.12.0/eclipse/
> Configuration file:
>    file:/c:/Users/Stevo
> Slavic/.m2/repository/org/eclipse/tycho/tycho-p2-runtime/0.12.0/eclipse/configuration/config.ini
> loaded
> Configuration location:
>    file:/c:/Users/Stevo
> Slavic/.m2/repository/org/eclipse/tycho/tycho-p2-runtime/0.12.0/eclipse/configuration/
> Framework located:
>    file:/c:/Users/Stevo
> Slavic/.m2/repository/org/eclipse/tycho/tycho-p2-runtime/0.12.0/eclipse/plugins/org.eclipse.osgi_3.6.2.R36x_v20110210.jar
> Framework classpath:
>    file:/c:/Users/Stevo
> Slavic/.m2/repository/org/eclipse/tycho/tycho-p2-runtime/0.12.0/eclipse/plugins/org.eclipse.osgi_3.6.2.R36x_v20110210.jar
> Debug options:
>    file:/C:/Temp/m2e-cxf-codegen-connector/org.bitstrings.eclipse.m2e.connectors.cxf.feature/.options
> not found
> Time to load bundles: 79
> Starting application: 1536
> !SESSION 2011-08-24 11:51:44.600 -----------------------------------------------
> eclipse.buildId=unknown
> java.version=1.6.0_26
> java.vendor=Sun Microsystems Inc.
> BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
> Framework arguments:  -application
> org.eclipse.equinox.p2.publisher.CategoryPublisher -metadataRepository
> file:/C:/Temp/m2e-cxf-codegen-connector/org.bitstrings.eclipse.m2e.connectors.cxf.feature/target/site/
> -categoryDefinition
> file:/C:/Temp/m2e-cxf-codegen-connector/org.bitstrings.eclipse.m2e.connectors.cxf.feature/category.xml
> Command-line arguments:  -debug -consoleLog -application
> org.eclipse.equinox.p2.publisher.CategoryPublisher -metadataRepository
> file:/C:/Temp/m2e-cxf-codegen-connector/org.bitstrings.eclipse.m2e.connectors.cxf.feature/target/site/
> -categoryDefinition
> file:/C:/Temp/m2e-cxf-codegen-connector/org.bitstrings.eclipse.m2e.connectors.cxf.feature/category.xml
>
> !ENTRY org.eclipse.equinox.p2.core 4 0 2011-08-24 11:51:46.372
> !MESSAGE Exception during event notification
> !STACK 0
> java.lang.IllegalArgumentException: Location must be absolute:
>        at org.eclipse.equinox.internal.p2.repository.helpers.AbstractRepositoryManager.checkValidLocation(AbstractRepositoryManager.java:736)
>        at org.eclipse.equinox.internal.p2.repository.helpers.AbstractRepositoryManager.contains(AbstractRepositoryManager.java:249)
>        at org.eclipse.equinox.internal.p2.repository.helpers.AbstractRepositoryManager.addRepository(AbstractRepositoryManager.java:162)
>        at org.eclipse.equinox.internal.p2.repository.helpers.AbstractRepositoryManager.notify(AbstractRepositoryManager.java:798)
>        at org.eclipse.equinox.internal.p2.core.ProvisioningEventBus.dispatchEvent(ProvisioningEventBus.java:108)
>        at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:227)
>        at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:337)
> Generating metadata for ..
> Status ERROR: this code=0 publishing result null children=[Status
> ERROR: org.eclipse.equinox.p2.updatesite code=0 Error generating
> category xml action. org.eclipse.equinox.p2.core.ProvisionException:
> Error reading update site
> file:/C:/Temp/m2e-cxf-codegen-connector/org.bitstrings.eclipse.m2e.connectors.cxf.feature/category.xml.]
> -metadataRepository
> file:/C:/Temp/m2e-cxf-codegen-connector/org.bitstrings.eclipse.m2e.connectors.cxf.feature/target/site/
> -categoryDefinition
> file:/C:/Temp/m2e-cxf-codegen-connector/org.bitstrings.eclipse.m2e.connectors.cxf.feature/category.xml
>
> !ENTRY org.eclipse.equinox.p2.core 4 0 2011-08-24 11:51:46.429
> !MESSAGE Exception during event notification
> !STACK 0
> java.lang.IllegalArgumentException: Location must be absolute:
>        at org.eclipse.equinox.internal.p2.repository.helpers.AbstractRepositoryManager.checkValidLocation(AbstractRepositoryManager.java:736)
>        at org.eclipse.equinox.internal.p2.repository.helpers.AbstractRepositoryManager.contains(AbstractRepositoryManager.java:249)
>        at org.eclipse.equinox.internal.p2.repository.helpers.AbstractRepositoryManager.addRepository(AbstractRepositoryManager.java:162)
>        at org.eclipse.equinox.internal.p2.repository.helpers.AbstractRepositoryManager.notify(AbstractRepositoryManager.java:798)
>        at org.eclipse.equinox.internal.p2.core.ProvisioningEventBus.dispatchEvent(ProvisioningEventBus.java:108)
>        at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:227)
>        at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:337)
> [INFO] ------------------------------------------------------------------------
> [INFO] Reactor Summary:
> [INFO]
> [INFO] m2e :: Connectors :: CXF :: Parent ................ SUCCESS [0.843s]
> [INFO] m2e :: Connectors :: CXF :: Connector ............. SUCCESS [3.631s]
> [INFO] m2e :: Connectors :: CXF :: Feature ............... FAILURE [8.426s]
> [INFO] m2e :: Connectors :: CXF :: Tests ................. SKIPPED
> [INFO] ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 1:27.724s
> [INFO] Finished at: Wed Aug 24 11:51:47 EEST 2011
> [INFO] Final Memory: 99M/283M
> [INFO] ------------------------------------------------------------------------
> [ERROR] Failed to execute goal
> org.eclipse.tycho:tycho-p2-plugin:0.12.0:category-p2-metadata
> (categorization) on project
> org.bitstrings.eclipse.m2e.connectors.cxf.features: P2 publisher
> return code was 1 -> [Help 1]
> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to
> execute goal org.eclipse.tycho:tycho-p2-plugin:0.12.0:category-p2-metadata
> (categorization) on project
> org.bitstrings.eclipse.m2e.connectors.cxf.features: P2 publisher
> return code was 1
>        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:213)
>        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:319)
>        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:290)
>        at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
>        at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
>        at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
> Caused by: org.apache.maven.plugin.MojoFailureException: P2 publisher
> return code was 1
>        at org.eclipse.tycho.plugins.p2.AbstractP2MetadataMojo.generateMetadata(AbstractP2MetadataMojo.java:114)
>        at org.eclipse.tycho.plugins.p2.AbstractP2MetadataMojo.execute(AbstractP2MetadataMojo.java:88)
>        at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
>        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
>        ... 19 more
> [ERROR]
> [ERROR]
> [ERROR] For more information about the errors and possible solutions,
> please read the following articles:
> [ERROR] [Help 1]
> http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
> [ERROR]
> [ERROR] After correcting the problems, you can resume the build with the command
> [ERROR]   mvn <goals> -rf :org.bitstrings.eclipse.m2e.connectors.cxf.features
>
>
> On Wed, Aug 24, 2011 at 11:36 AM, Stevo Slavić <sslavic@xxxxxxxxx> wrote:
>> Hell Tycho users,
>>
>> I'm just starting to use tycho, and it seems tycho-p2-plugin
>> category-p2-metadata mojo or something it is using has issues with MS
>> Windows and spaces on path.
>>
>> See [1] for relevant build output. Looks like a bug to me. Where
>> should I report it?
>>
>> Thanks in advance!
>>
>> Regards,
>> Stevo.
>>
>> [1] failing build output snippet
>>
>> ...
>> [INFO] Command line:
>>        cmd.exe /X /C ""C:\Users\Stevo
>> Slavic\Work\Java\jdk\jdk1.6.0_26-x64\jre\bin\java.exe" -jar
>> "C:\Users\Stevo
>> Slavic\.m2\repository\org\eclipse\tycho\tycho-p2-runtime\0.12.0\eclipse\plugins\org.eclipse.equinox.launcher_1.1.1.R36x_v20101122_1400.jar"
>> -debug -consoleLog -nosplash -application
>> org.eclipse.equinox.p2.publisher.CategoryPublisher -metadataRepository
>> "file:/C:/Users/Stevo
>> Slavic/git/m2e-cxf-codegen-connector/org.bitstrings.eclipse.m2e.connectors.cxf.feature/target/site/"
>> -categoryDefinition "file:/C:/Users/Stevo
>> Slavic/git/m2e-cxf-codegen-connector/org.bitstrings.eclipse.m2e.connectors.cxf.feature/category.xml""
>> Install location:
>>    file:/c:/Users/Stevo
>> Slavic/.m2/repository/org/eclipse/tycho/tycho-p2-runtime/0.12.0/eclipse/
>> Configuration file:
>>    file:/c:/Users/Stevo
>> Slavic/.m2/repository/org/eclipse/tycho/tycho-p2-runtime/0.12.0/eclipse/configuration/config.ini
>> loaded
>> Configuration location:
>>    file:/c:/Users/Stevo
>> Slavic/.m2/repository/org/eclipse/tycho/tycho-p2-runtime/0.12.0/eclipse/configuration/
>> Framework located:
>>    file:/c:/Users/Stevo
>> Slavic/.m2/repository/org/eclipse/tycho/tycho-p2-runtime/0.12.0/eclipse/plugins/org.eclipse.osgi_3.6.2.R36x_v20110210.jar
>> Framework classpath:
>>    file:/c:/Users/Stevo
>> Slavic/.m2/repository/org/eclipse/tycho/tycho-p2-runtime/0.12.0/eclipse/plugins/org.eclipse.osgi_3.6.2.R36x_v20110210.jar
>> Debug options:
>>    file:/C:/Users/Stevo
>> Slavic/git/m2e-cxf-codegen-connector/org.bitstrings.eclipse.m2e.connectors.cxf.feature/.options
>> not found
>> Time to load bundles: 57
>> Starting application: 1349
>> !SESSION 2011-08-24 11:22:10.444 -----------------------------------------------
>> eclipse.buildId=unknown
>> java.version=1.6.0_26
>> java.vendor=Sun Microsystems Inc.
>> BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
>> Framework arguments:  -application
>> org.eclipse.equinox.p2.publisher.CategoryPublisher -metadataRepository
>> file:/C:/Users/Stevo
>> Slavic/git/m2e-cxf-codegen-connector/org.bitstrings.eclipse.m2e.connectors.cxf.feature/target/site/
>> -categoryDefinition file:/C:/Users/Stevo
>> Slavic/git/m2e-cxf-codegen-connector/org.bitstrings.eclipse.m2e.connectors.cxf.feature/category.xml
>> Generating metadata for ..
>> Status ERROR: this code=0 publishing result null children=[Status
>> ERROR: org.eclipse.equinox.p2.updatesite code=0 Error generating
>> category xml action. org.eclipse.equinox.p2.core.ProvisionException:
>> Error reading update site
>> file:/C:/Users/Stevo%20Slavic/git/m2e-cxf-codegen-connector/org.bitstrings.eclipse.m2e.connectors.cxf.feature/category.xml.]
>> -metadataRepository
>> file:/C:/Users/Stevo
>> Slavic/git/m2e-cxf-codegen-connector/org.bitstrings.eclipse.m2e.connectors.cxf.feature/target/site/
>> -categoryDefinition
>> file:/C:/Users/Stevo
>> Slavic/git/m2e-cxf-codegen-connector/org.bitstrings.eclipse.m2e.connectors.cxf.feature/category.xml
>> Command-line arguments:  -debug -consoleLog -application
>> org.eclipse.equinox.p2.publisher.CategoryPublisher -metadataRepository
>> file:/C:/Users/Stevo
>> Slavic/git/m2e-cxf-codegen-connector/org.bitstrings.eclipse.m2e.connectors.cxf.feature/target/site/
>> -categoryDefinition file:/C:/Users/Stevo
>> Slavic/git/m2e-cxf-codegen-connector/org.bitstrings.eclipse.m2e.connectors.cxf.feature/category.xml
>>
>> !ENTRY org.eclipse.equinox.p2.core 4 0 2011-08-24 11:22:12.097
>> !MESSAGE Exception during event notification
>> !STACK 0
>> java.lang.IllegalArgumentException: Location must be absolute:
>>        at org.eclipse.equinox.internal.p2.repository.helpers.AbstractRepositoryManager.checkValidLocation(AbstractRepositoryManager.java:736)
>>        at org.eclipse.equinox.internal.p2.repository.helpers.AbstractRepositoryManager.contains(AbstractRepositoryManager.java:249)
>>        at org.eclipse.equinox.internal.p2.repository.helpers.AbstractRepositoryManager.addRepository(AbstractRepositoryManager.java:162)
>>        at org.eclipse.equinox.internal.p2.repository.helpers.AbstractRepositoryManager.notify(AbstractRepositoryManager.java:798)
>>        at org.eclipse.equinox.internal.p2.core.ProvisioningEventBus.dispatchEvent(ProvisioningEventBus.java:108)
>>        at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:227)
>>        at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:337)
>>
>> !ENTRY org.eclipse.equinox.p2.core 4 0 2011-08-24 11:22:12.099
>> !MESSAGE Exception during event notification
>> !STACK 0
>> java.lang.IllegalArgumentException: Location must be absolute:
>>        at org.eclipse.equinox.internal.p2.repository.helpers.AbstractRepositoryManager.checkValidLocation(AbstractRepositoryManager.java:736)
>>        at org.eclipse.equinox.internal.p2.repository.helpers.AbstractRepositoryManager.contains(AbstractRepositoryManager.java:249)
>>        at org.eclipse.equinox.internal.p2.repository.helpers.AbstractRepositoryManager.addRepository(AbstractRepositoryManager.java:162)
>>        at org.eclipse.equinox.internal.p2.repository.helpers.AbstractRepositoryManager.notify(AbstractRepositoryManager.java:798)
>>        at org.eclipse.equinox.internal.p2.core.ProvisioningEventBus.dispatchEvent(ProvisioningEventBus.java:108)
>>        at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:227)
>>        at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:337)
>> [INFO] ------------------------------------------------------------------------
>> [INFO] Reactor Summary:
>> [INFO]
>> [INFO] m2e :: Connectors :: CXF :: Parent ................ SUCCESS [0.694s]
>> [INFO] m2e :: Connectors :: CXF :: Connector ............. SUCCESS [3.955s]
>> [INFO] m2e :: Connectors :: CXF :: Feature ............... FAILURE [7.619s]
>> [INFO] m2e :: Connectors :: CXF :: Tests ................. SKIPPED
>> [INFO] ------------------------------------------------------------------------
>> [INFO] BUILD FAILURE
>> [INFO] ------------------------------------------------------------------------
>> [INFO] Total time: 1:27.024s
>> [INFO] Finished at: Wed Aug 24 11:22:12 EEST 2011
>> [INFO] Final Memory: 99M/284M
>> [INFO] ------------------------------------------------------------------------
>> [ERROR] Failed to execute goal
>> org.eclipse.tycho:tycho-p2-plugin:0.12.0:category-p2-metadata
>> (categorization) on project
>> org.bitstrings.eclipse.m2e.connectors.cxf.features: P2 publisher
>> return code was 1 -> [Help 1]
>> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to
>> execute goal org.eclipse.tycho:tycho-p2-plugin:0.12.0:category-p2-metadata
>> (categorization) on project
>> org.bitstrings.eclipse.m2e.connectors.cxf.features: P2 publisher
>> return code was 1
>>        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:213)
>>        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:319)
>>        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:290)
>>        at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
>>        at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
>>        at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
>> Caused by: org.apache.maven.plugin.MojoFailureException: P2 publisher
>> return code was 1
>>        at org.eclipse.tycho.plugins.p2.AbstractP2MetadataMojo.generateMetadata(AbstractP2MetadataMojo.java:114)
>>        at org.eclipse.tycho.plugins.p2.AbstractP2MetadataMojo.execute(AbstractP2MetadataMojo.java:88)
>>        at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
>>        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
>>        ... 19 more
>> [ERROR]
>> [ERROR]
>> [ERROR] For more information about the errors and possible solutions,
>> please read the following articles:
>> [ERROR] [Help 1]
>> http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
>> [ERROR]
>> [ERROR] After correcting the problems, you can resume the build with the command
>> [ERROR]   mvn <goals> -rf :org.bitstrings.eclipse.m2e.connectors.cxf.features
>>
>


Back to the top