Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[tycho-dev] tycho-extras MirrorMojoTest failures

Can somebody familiar with tycho-p2-extras-plugin unit tests check why
it started to fail all of a sudden? From what I can tell, the test can't
resolve tycho-p2-runtime, but I don't quite understand how it is
supposed to work. Attached see full surefire report of the failed tests.

--
Regards,
Igor
-------------------------------------------------------------------------------
Test set: org.eclipse.tycho.plugins.p2.extras.MirrorMojoTest
-------------------------------------------------------------------------------
Tests run: 3, Failures: 0, Errors: 3, Skipped: 0, Time elapsed: 1.395 sec <<< FAILURE!
testMirrorFromOldStyleUpdatesite(org.eclipse.tycho.plugins.p2.extras.MirrorMojoTest)  Time elapsed: 1.028 sec  <<< ERROR!
java.lang.RuntimeException: org.apache.maven.MavenExecutionException: Could not resolve tycho-p2-runtime
	at org.eclipse.sisu.equinox.embedder.internal.DefaultEquinoxEmbedder.checkStarted(DefaultEquinoxEmbedder.java:250)
	at org.eclipse.sisu.equinox.embedder.internal.DefaultEquinoxEmbedder.getService(DefaultEquinoxEmbedder.java:224)
	at org.eclipse.sisu.equinox.embedder.internal.DefaultEquinoxEmbedder.getService(DefaultEquinoxEmbedder.java:220)
	at org.eclipse.tycho.plugins.p2.extras.MirrorMojo.execute(MirrorMojo.java:149)
	at org.eclipse.tycho.plugins.p2.extras.MirrorMojoTest.testMirrorFromOldStyleUpdatesite(MirrorMojoTest.java:66)
	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 junit.framework.TestCase.runTest(TestCase.java:168)
	at junit.framework.TestCase.runBare(TestCase.java:134)
	at junit.framework.TestResult$1.protect(TestResult.java:110)
	at junit.framework.TestResult.runProtected(TestResult.java:128)
	at junit.framework.TestResult.run(TestResult.java:113)
	at junit.framework.TestCase.run(TestCase.java:124)
	at junit.framework.TestSuite.runTest(TestSuite.java:243)
	at junit.framework.TestSuite.run(TestSuite.java:238)
	at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:83)
	at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:53)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:123)
	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:104)
	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.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:164)
	at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:110)
	at org.apache.maven.surefire.booter.SurefireStarter.invokeProvider(SurefireStarter.java:175)
	at org.apache.maven.surefire.booter.SurefireStarter.runSuitesInProcessWhenForked(SurefireStarter.java:107)
	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:68)
Caused by: org.apache.maven.MavenExecutionException: Could not resolve tycho-p2-runtime
	at org.eclipse.tycho.osgi.runtime.TychoP2RuntimeLocator.resolveArtifact(TychoP2RuntimeLocator.java:181)
	at org.eclipse.tycho.osgi.runtime.TychoP2RuntimeLocator.resolveRuntimeArtifact(TychoP2RuntimeLocator.java:132)
	at org.eclipse.tycho.osgi.runtime.TychoP2RuntimeLocator.addRuntime(TychoP2RuntimeLocator.java:110)
	at org.eclipse.tycho.osgi.runtime.TychoP2RuntimeLocator.getRuntimeLocations(TychoP2RuntimeLocator.java:95)
	at org.eclipse.tycho.osgi.runtime.TychoP2RuntimeLocator.getRuntimeLocations(TychoP2RuntimeLocator.java:87)
	at org.eclipse.sisu.equinox.embedder.internal.DefaultEquinoxEmbedder.doStart(DefaultEquinoxEmbedder.java:72)
	at org.eclipse.sisu.equinox.embedder.internal.DefaultEquinoxEmbedder.start(DefaultEquinoxEmbedder.java:65)
	at org.eclipse.sisu.equinox.embedder.internal.DefaultEquinoxEmbedder.checkStarted(DefaultEquinoxEmbedder.java:248)
	... 29 more
Caused by: org.apache.maven.artifact.resolver.MultipleArtifactsNotFoundException: Missing:
----------
1) org.eclipse.tycho:tycho-bundles-external:zip:0.14.0-SNAPSHOT

  Try downloading the file manually from the project website.

  Then, install it using the command: 
      mvn install:install-file -DgroupId=org.eclipse.tycho -DartifactId=tycho-bundles-external -Dversion=0.14.0-SNAPSHOT -Dpackaging=zip -Dfile=/path/to/file

  Alternatively, if you host your own repository you can deploy the file there: 
      mvn deploy:deploy-file -DgroupId=org.eclipse.tycho -DartifactId=tycho-bundles-external -Dversion=0.14.0-SNAPSHOT -Dpackaging=zip -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

----------
1 required artifact is missing.

for artifact: 
  org.eclipse.tycho:tycho-bundles-external:zip:0.14.0-SNAPSHOT

from the specified remote repositories:
  central (http://repo1.maven.org/maven2, releases=true, snapshots=false)

	at org.apache.maven.artifact.resolver.DefaultResolutionErrorHandler.throwErrors(DefaultResolutionErrorHandler.java:71)
	at org.eclipse.tycho.osgi.runtime.TychoP2RuntimeLocator.resolveArtifact(TychoP2RuntimeLocator.java:179)
	... 36 more
testMirrorSpecificIUFromP2Repo(org.eclipse.tycho.plugins.p2.extras.MirrorMojoTest)  Time elapsed: 0.187 sec  <<< ERROR!
java.lang.RuntimeException: org.apache.maven.MavenExecutionException: Could not resolve tycho-p2-runtime
	at org.eclipse.sisu.equinox.embedder.internal.DefaultEquinoxEmbedder.checkStarted(DefaultEquinoxEmbedder.java:250)
	at org.eclipse.sisu.equinox.embedder.internal.DefaultEquinoxEmbedder.getService(DefaultEquinoxEmbedder.java:224)
	at org.eclipse.sisu.equinox.embedder.internal.DefaultEquinoxEmbedder.getService(DefaultEquinoxEmbedder.java:220)
	at org.eclipse.tycho.plugins.p2.extras.MirrorMojo.execute(MirrorMojo.java:149)
	at org.eclipse.tycho.plugins.p2.extras.MirrorMojoTest.testMirrorSpecificIUFromP2Repo(MirrorMojoTest.java:80)
	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 junit.framework.TestCase.runTest(TestCase.java:168)
	at junit.framework.TestCase.runBare(TestCase.java:134)
	at junit.framework.TestResult$1.protect(TestResult.java:110)
	at junit.framework.TestResult.runProtected(TestResult.java:128)
	at junit.framework.TestResult.run(TestResult.java:113)
	at junit.framework.TestCase.run(TestCase.java:124)
	at junit.framework.TestSuite.runTest(TestSuite.java:243)
	at junit.framework.TestSuite.run(TestSuite.java:238)
	at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:83)
	at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:53)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:123)
	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:104)
	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.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:164)
	at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:110)
	at org.apache.maven.surefire.booter.SurefireStarter.invokeProvider(SurefireStarter.java:175)
	at org.apache.maven.surefire.booter.SurefireStarter.runSuitesInProcessWhenForked(SurefireStarter.java:107)
	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:68)
Caused by: org.apache.maven.MavenExecutionException: Could not resolve tycho-p2-runtime
	at org.eclipse.tycho.osgi.runtime.TychoP2RuntimeLocator.resolveArtifact(TychoP2RuntimeLocator.java:181)
	at org.eclipse.tycho.osgi.runtime.TychoP2RuntimeLocator.resolveRuntimeArtifact(TychoP2RuntimeLocator.java:132)
	at org.eclipse.tycho.osgi.runtime.TychoP2RuntimeLocator.addRuntime(TychoP2RuntimeLocator.java:110)
	at org.eclipse.tycho.osgi.runtime.TychoP2RuntimeLocator.getRuntimeLocations(TychoP2RuntimeLocator.java:95)
	at org.eclipse.tycho.osgi.runtime.TychoP2RuntimeLocator.getRuntimeLocations(TychoP2RuntimeLocator.java:87)
	at org.eclipse.sisu.equinox.embedder.internal.DefaultEquinoxEmbedder.doStart(DefaultEquinoxEmbedder.java:72)
	at org.eclipse.sisu.equinox.embedder.internal.DefaultEquinoxEmbedder.start(DefaultEquinoxEmbedder.java:65)
	at org.eclipse.sisu.equinox.embedder.internal.DefaultEquinoxEmbedder.checkStarted(DefaultEquinoxEmbedder.java:248)
	... 29 more
Caused by: org.apache.maven.artifact.resolver.MultipleArtifactsNotFoundException: Missing:
----------
1) org.eclipse.tycho:tycho-bundles-external:zip:0.14.0-SNAPSHOT

  Try downloading the file manually from the project website.

  Then, install it using the command: 
      mvn install:install-file -DgroupId=org.eclipse.tycho -DartifactId=tycho-bundles-external -Dversion=0.14.0-SNAPSHOT -Dpackaging=zip -Dfile=/path/to/file

  Alternatively, if you host your own repository you can deploy the file there: 
      mvn deploy:deploy-file -DgroupId=org.eclipse.tycho -DartifactId=tycho-bundles-external -Dversion=0.14.0-SNAPSHOT -Dpackaging=zip -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

----------
1 required artifact is missing.

for artifact: 
  org.eclipse.tycho:tycho-bundles-external:zip:0.14.0-SNAPSHOT

from the specified remote repositories:
  central (http://repo1.maven.org/maven2, releases=true, snapshots=false)

	at org.apache.maven.artifact.resolver.DefaultResolutionErrorHandler.throwErrors(DefaultResolutionErrorHandler.java:71)
	at org.eclipse.tycho.osgi.runtime.TychoP2RuntimeLocator.resolveArtifact(TychoP2RuntimeLocator.java:179)
	... 36 more
testMirrorWithPlatformFilter(org.eclipse.tycho.plugins.p2.extras.MirrorMojoTest)  Time elapsed: 0.141 sec  <<< ERROR!
java.lang.RuntimeException: org.apache.maven.MavenExecutionException: Could not resolve tycho-p2-runtime
	at org.eclipse.sisu.equinox.embedder.internal.DefaultEquinoxEmbedder.checkStarted(DefaultEquinoxEmbedder.java:250)
	at org.eclipse.sisu.equinox.embedder.internal.DefaultEquinoxEmbedder.getService(DefaultEquinoxEmbedder.java:224)
	at org.eclipse.sisu.equinox.embedder.internal.DefaultEquinoxEmbedder.getService(DefaultEquinoxEmbedder.java:220)
	at org.eclipse.tycho.plugins.p2.extras.MirrorMojo.execute(MirrorMojo.java:149)
	at org.eclipse.tycho.plugins.p2.extras.MirrorMojoTest.testMirrorWithPlatformFilter(MirrorMojoTest.java:98)
	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 junit.framework.TestCase.runTest(TestCase.java:168)
	at junit.framework.TestCase.runBare(TestCase.java:134)
	at junit.framework.TestResult$1.protect(TestResult.java:110)
	at junit.framework.TestResult.runProtected(TestResult.java:128)
	at junit.framework.TestResult.run(TestResult.java:113)
	at junit.framework.TestCase.run(TestCase.java:124)
	at junit.framework.TestSuite.runTest(TestSuite.java:243)
	at junit.framework.TestSuite.run(TestSuite.java:238)
	at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:83)
	at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:53)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:123)
	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:104)
	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.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:164)
	at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:110)
	at org.apache.maven.surefire.booter.SurefireStarter.invokeProvider(SurefireStarter.java:175)
	at org.apache.maven.surefire.booter.SurefireStarter.runSuitesInProcessWhenForked(SurefireStarter.java:107)
	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:68)
Caused by: org.apache.maven.MavenExecutionException: Could not resolve tycho-p2-runtime
	at org.eclipse.tycho.osgi.runtime.TychoP2RuntimeLocator.resolveArtifact(TychoP2RuntimeLocator.java:181)
	at org.eclipse.tycho.osgi.runtime.TychoP2RuntimeLocator.resolveRuntimeArtifact(TychoP2RuntimeLocator.java:132)
	at org.eclipse.tycho.osgi.runtime.TychoP2RuntimeLocator.addRuntime(TychoP2RuntimeLocator.java:110)
	at org.eclipse.tycho.osgi.runtime.TychoP2RuntimeLocator.getRuntimeLocations(TychoP2RuntimeLocator.java:95)
	at org.eclipse.tycho.osgi.runtime.TychoP2RuntimeLocator.getRuntimeLocations(TychoP2RuntimeLocator.java:87)
	at org.eclipse.sisu.equinox.embedder.internal.DefaultEquinoxEmbedder.doStart(DefaultEquinoxEmbedder.java:72)
	at org.eclipse.sisu.equinox.embedder.internal.DefaultEquinoxEmbedder.start(DefaultEquinoxEmbedder.java:65)
	at org.eclipse.sisu.equinox.embedder.internal.DefaultEquinoxEmbedder.checkStarted(DefaultEquinoxEmbedder.java:248)
	... 29 more
Caused by: org.apache.maven.artifact.resolver.MultipleArtifactsNotFoundException: Missing:
----------
1) org.eclipse.tycho:tycho-bundles-external:zip:0.14.0-SNAPSHOT

  Try downloading the file manually from the project website.

  Then, install it using the command: 
      mvn install:install-file -DgroupId=org.eclipse.tycho -DartifactId=tycho-bundles-external -Dversion=0.14.0-SNAPSHOT -Dpackaging=zip -Dfile=/path/to/file

  Alternatively, if you host your own repository you can deploy the file there: 
      mvn deploy:deploy-file -DgroupId=org.eclipse.tycho -DartifactId=tycho-bundles-external -Dversion=0.14.0-SNAPSHOT -Dpackaging=zip -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

----------
1 required artifact is missing.

for artifact: 
  org.eclipse.tycho:tycho-bundles-external:zip:0.14.0-SNAPSHOT

from the specified remote repositories:
  central (http://repo1.maven.org/maven2, releases=true, snapshots=false)

	at org.apache.maven.artifact.resolver.DefaultResolutionErrorHandler.throwErrors(DefaultResolutionErrorHandler.java:71)
	at org.eclipse.tycho.osgi.runtime.TychoP2RuntimeLocator.resolveArtifact(TychoP2RuntimeLocator.java:179)
	... 36 more
-------------------------------------------------------------------------------
Test set: org.eclipse.tycho.plugins.p2.extras.PublishFeaturesAndBundlesMojoTest
-------------------------------------------------------------------------------
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.16 sec <<< FAILURE!
testPublisher(org.eclipse.tycho.plugins.p2.extras.PublishFeaturesAndBundlesMojoTest)  Time elapsed: 0.16 sec  <<< ERROR!
java.lang.RuntimeException: org.apache.maven.MavenExecutionException: Could not resolve tycho-p2-runtime
	at org.eclipse.sisu.equinox.launching.internal.P2ApplicationLauncher.execute(P2ApplicationLauncher.java:131)
	at org.eclipse.tycho.plugins.p2.extras.PublishFeaturesAndBundlesMojo.publishContent(PublishFeaturesAndBundlesMojo.java:134)
	at org.eclipse.tycho.plugins.p2.extras.PublishFeaturesAndBundlesMojo.execute(PublishFeaturesAndBundlesMojo.java:110)
	at org.eclipse.tycho.plugins.p2.extras.PublishFeaturesAndBundlesMojoTest.testPublisher(PublishFeaturesAndBundlesMojoTest.java:60)
	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 junit.framework.TestCase.runTest(TestCase.java:168)
	at junit.framework.TestCase.runBare(TestCase.java:134)
	at junit.framework.TestResult$1.protect(TestResult.java:110)
	at junit.framework.TestResult.runProtected(TestResult.java:128)
	at junit.framework.TestResult.run(TestResult.java:113)
	at junit.framework.TestCase.run(TestCase.java:124)
	at junit.framework.TestSuite.runTest(TestSuite.java:243)
	at junit.framework.TestSuite.run(TestSuite.java:238)
	at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:83)
	at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:53)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:123)
	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:104)
	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.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:164)
	at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:110)
	at org.apache.maven.surefire.booter.SurefireStarter.invokeProvider(SurefireStarter.java:175)
	at org.apache.maven.surefire.booter.SurefireStarter.runSuitesInProcessWhenForked(SurefireStarter.java:107)
	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:68)
Caused by: org.apache.maven.MavenExecutionException: Could not resolve tycho-p2-runtime
	at org.eclipse.tycho.osgi.runtime.TychoP2RuntimeLocator.resolveArtifact(TychoP2RuntimeLocator.java:181)
	at org.eclipse.tycho.osgi.runtime.TychoP2RuntimeLocator.resolveRuntimeArtifact(TychoP2RuntimeLocator.java:132)
	at org.eclipse.tycho.osgi.runtime.TychoP2RuntimeLocator.addRuntime(TychoP2RuntimeLocator.java:110)
	at org.eclipse.tycho.osgi.runtime.TychoP2RuntimeLocator.getRuntimeLocations(TychoP2RuntimeLocator.java:95)
	at org.eclipse.tycho.osgi.runtime.TychoP2RuntimeLocator.getRuntimeLocations(TychoP2RuntimeLocator.java:87)
	at org.eclipse.sisu.equinox.launching.internal.P2ApplicationLauncher.execute(P2ApplicationLauncher.java:90)
	... 28 more
Caused by: org.apache.maven.artifact.resolver.MultipleArtifactsNotFoundException: Missing:
----------
1) org.eclipse.tycho:tycho-bundles-external:zip:0.14.0-SNAPSHOT

  Try downloading the file manually from the project website.

  Then, install it using the command: 
      mvn install:install-file -DgroupId=org.eclipse.tycho -DartifactId=tycho-bundles-external -Dversion=0.14.0-SNAPSHOT -Dpackaging=zip -Dfile=/path/to/file

  Alternatively, if you host your own repository you can deploy the file there: 
      mvn deploy:deploy-file -DgroupId=org.eclipse.tycho -DartifactId=tycho-bundles-external -Dversion=0.14.0-SNAPSHOT -Dpackaging=zip -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

----------
1 required artifact is missing.

for artifact: 
  org.eclipse.tycho:tycho-bundles-external:zip:0.14.0-SNAPSHOT

from the specified remote repositories:
  central (http://repo1.maven.org/maven2, releases=true, snapshots=false)

	at org.apache.maven.artifact.resolver.DefaultResolutionErrorHandler.throwErrors(DefaultResolutionErrorHandler.java:71)
	at org.eclipse.tycho.osgi.runtime.TychoP2RuntimeLocator.resolveArtifact(TychoP2RuntimeLocator.java:179)
	... 33 more

Back to the top