Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] 0.15.0 assemble-repository failing in certain instances

Simon,

Thank you for the answer.

Ben

On Fri, Jun 22, 2012 at 5:48 AM, Simon Goodall
<simon.goodall@xxxxxxxxxxxxxxx> wrote:
> I had the same issue and I now run ;
>
> mvn clean integration-test
>
> the package goal will be executed as a pre-cursor to the integration-test.
>
> Simon
>
> On 21 June 2012 23:24, Ben Abernathy <ben.abernathy@xxxxxxxxx> wrote:
>> Hello,
>>
>> I'm in the process of upgrading our project from Tycho 0.14.1 to
>> 0.15.0 and ran into a problem. Our way of doing a build on our CI
>> server is the following:
>>
>> mvn clean package integration-test
>>
>> However, this results in the error and the asosciated stack trace when
>> building the target platform. I've found that doing the following
>> works:
>>
>> mvn clean package
>> mvn integration-test
>>
>> My question is, have I been doing things wrong all along and I should
>> have been accomplishing our integration test in a separate invocation
>> of Maven (which doens't seem right) or is something not quite right
>> someplace else (either in Tycho, our POM, etc).
>>
>> Any advice would be greatly appreciated.
>>
>> Ben
>>
>> Module being built when error occurs:
>>
>> [INFO] ------------------------------------------------------------------------
>> [INFO] Building myproject.target.platform 3.0.0
>> [INFO] ------------------------------------------------------------------------
>> [INFO]
>> [INFO] --- tycho-packaging-plugin:0.15.0:build-qualifier
>> (default-build-qualifier) @ myproject.target.platform ---
>> [INFO]
>> [INFO] --- maven-clean-plugin:2.4.1:clean (default-clean-1) @
>> myproject.target.platform ---
>> [INFO] Deleting
>> C:\Users\ben.abernathy\src\myproject\ext\trunk\svn\platform\myproject.target.platform\target
>> [INFO]
>> [INFO] --- tycho-p2-publisher-plugin:0.15.0:publish-products
>> (default-publish-products) @ myproject.target.platform ---
>> [INFO]
>> [INFO] --- tycho-p2-publisher-plugin:0.15.0:publish-categories
>> (default-publish-categories) @ myproject.target.platform ---
>> [INFO]
>> [INFO] --- tycho-p2-repository-plugin:0.15.0:assemble-repository
>> (default-assemble-repository) @ myproject.target.platform ---
>> [INFO]
>> [INFO] --- tycho-p2-repository-plugin:0.15.0:archive-repository
>> (default-archive-repository) @ myproject.target.platform ---
>> [INFO] Building zip:
>> C:\Users\ben.abernathy\src\myproject\ext\trunk\svn\platform\myproject.target.platform\target\myproject.target.platform-3.0.0.zip
>> [INFO]
>> [INFO] --- tycho-packaging-plugin:0.15.0:build-qualifier
>> (default-build-qualifier) @ myproject.target.platform ---
>> [INFO]
>> [INFO] --- maven-clean-plugin:2.4.1:clean (default-clean-1) @
>> myproject.target.platform ---
>> [INFO] Deleting
>> C:\Users\ben.abernathy\src\myproject\ext\trunk\svn\platform\myproject.target.platform\target
>> [INFO]
>> [INFO] --- tycho-p2-publisher-plugin:0.15.0:publish-products
>> (default-publish-products) @ myproject.target.platform ---
>> [INFO]
>> [INFO] --- tycho-p2-publisher-plugin:0.15.0:publish-categories
>> (default-publish-categories) @ myproject.target.platform ---
>> [INFO]
>> [INFO] --- tycho-p2-repository-plugin:0.15.0:assemble-repository
>> (default-assemble-repository) @ myproject.target.platform ---
>>
>>
>> And the associated stack trace is:
>>
>>
>> [ERROR] Failed to execute goal
>> org.eclipse.tycho:tycho-p2-repository-plugin:0.15.0:assemble-repository
>> (default-assemble-repository) on project myproject.target.platform:
>> Could not assemble p2 repository: Mirroring failed: No repository
>> found at file:/C:/Users/ben.abernathy/src/myproject/ext/trunk/svn/platform/myproject.target.platform/target/.
>> -> [Help 1]
>> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to
>> execute goal org.eclipse.tycho:tycho-p2-repository-plugin:0.15.0:assemble-repository
>> (default-assemble-repository) on project myproject.target.platform:
>> Could not assemble p2 repository
>>    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217)
>>    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: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.MojoExecutionException: Could not
>> assemble p2 repository
>>    at org.eclipse.tycho.plugins.p2.repository.AssembleRepositoryMojo.execute(AssembleRepositoryMojo.java:95)
>>    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
>>    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
>>    ... 19 more
>> Caused by: org.eclipse.tycho.p2.tools.FacadeException: Mirroring
>> failed: No repository found at
>> file:/C:/Users/ben.abernathy/src/myproject/ext/trunk/svn/platform/myproject.target.platform/target/.
>>    at org.eclipse.tycho.p2.tools.mirroring.MirrorApplicationServiceImpl.mirrorReactor(MirrorApplicationServiceImpl.java:145)
>>    at org.eclipse.tycho.plugins.p2.repository.AssembleRepositoryMojo.execute(AssembleRepositoryMojo.java:92)
>>    ... 21 more
>> Caused by: org.eclipse.equinox.p2.core.ProvisionException: No
>> repository found at
>> file:/C:/Users/ben.abernathy/src/myproject/ext/trunk/svn/platform/myproject.target.platform/target/.
>>    at org.eclipse.equinox.internal.p2.repository.helpers.AbstractRepositoryManager.fail(AbstractRepositoryManager.java:393)
>>    at org.eclipse.equinox.internal.p2.repository.helpers.AbstractRepositoryManager.loadRepository(AbstractRepositoryManager.java:675)
>>    at org.eclipse.equinox.internal.p2.artifact.repository.ArtifactRepositoryManager.loadRepository(ArtifactRepositoryManager.java:104)
>>    at org.eclipse.equinox.p2.internal.repository.tools.AbstractApplication.addRepository(AbstractApplication.java:147)
>>    at org.eclipse.equinox.p2.internal.repository.tools.AbstractApplication.initializeRepos(AbstractApplication.java:119)
>>    at org.eclipse.equinox.p2.internal.repository.tools.MirrorApplication.run(MirrorApplication.java:183)
>>    at org.eclipse.tycho.p2.tools.mirroring.MirrorApplicationServiceImpl.mirrorReactor(MirrorApplicationServiceImpl.java:140)
>>    ... 22 more
>> _______________________________________________
>> tycho-user mailing list
>> tycho-user@xxxxxxxxxxx
>> https://dev.eclipse.org/mailman/listinfo/tycho-user
>
>
>
> --
> Simon Goodall
> _______________________________________________
> tycho-user mailing list
> tycho-user@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/tycho-user


Back to the top