I tried your suggestion and now I am getting the following error:
[ERROR] Failed to execute goal org.eclipse.tycho:tycho-surefire-plugin:0.12.0:test (default) on project com.cerner.bedrock.mdro.ui.test: Execution default of goal org.eclipse.tycho:tycho-surefire-plugin:0.12.0:test failed: Format "format(n[.n=0;[.n=0;[.S=[A-Za-z0-9_-];='';]]])" was unable to parse 2.2.1-SNAPSHOT -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.eclipse.tycho:tycho-surefire-plugin:0.12.0:test (default) on project com.cerner.bedrock.mdro.ui.test: Execution default of goal org.eclipse.tycho:tycho-surefire-plugin:0.12.0:test failed: Format "format(n[.n=0;[.n=0;[.S=[A-Za-z0-9_-];='';]]])" was unable to parse 2.2.1-SNAPSHOT
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:225)
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:592)
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.PluginExecutionException: Execution default of goal org.eclipse.tycho:tycho-surefire-plugin:0.12.0:test failed: Format "format(n[.n=0;[.n=0;[.S=[A-Za-z0-9_-];='';]]])" was unable to parse 2.2.1-SNAPSHOT
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:110)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
... 19 more
Caused by: java.lang.IllegalArgumentException: Format "format(n[.n=0;[.n=0;[.S=[A-Za-z0-9_-];='';]]])" was unable to parse 2.2.1-SNAPSHOT
at org.eclipse.equinox.internal.p2.metadata.VersionFormat.parse(VersionFormat.java:273)
at org.eclipse.equinox.internal.p2.metadata.VersionFormat.parse(VersionFormat.java:263)
at org.eclipse.equinox.p2.metadata.VersionRange.<init>(VersionRange.java:242)
at org.eclipse.tycho.p2.impl.resolver.P2ResolverImpl.addDependency(P2ResolverImpl.java:596)
at org.eclipse.tycho.p2.facade.P2TargetPlatformResolver.doResolvePlatform(P2TargetPlatformResolver.java:206)
at org.eclipse.tycho.p2.facade.P2TargetPlatformResolver.resolvePlatform(P2TargetPlatformResolver.java:150)
at org.eclipse.tycho.surefire.TestMojo.createEclipseInstallation(TestMojo.java:370)
at org.eclipse.tycho.surefire.TestMojo.execute(TestMojo.java:345)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
... 20 more
Any ideas why tycho-surefire-plugin is unable to parse that version number?
On Thu, Jun 30, 2011 at 12:41 PM, Cristiano Gavião <cvgaviao@xxxxxxxxx> wrote:
Hi,
You must to define what bundles should be started before the tests
get running and set the dependencies too inside the configuration of
tycho-surefire-plugin.
Don't know WindowTester, but you can use this config as a start to
config your own bundles:
I am trying to launch an Eclipse-based product and run
automated UI tests with WindowTester. The product itself is
complex and consists of several hundred plugins, some of which
need to be resolved when launching it, even though they are not
referenced in the manifests. When I run mvn clean test -X, I see a
list of plugins that are being resolved by tycho-surefire-plugin: