Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » RCP Testing Tool » RCPTT Maven packaging error(I see an error when I do maven build)
RCPTT Maven packaging error [message #1690797] Tue, 31 March 2015 10:46 Go to next message
Jeevan Rex is currently offline Jeevan RexFriend
Messages: 80
Registered: March 2015
Location: Bangalore
Member
The following is the error
[INFO] Sys arch is amd64
[INFO] classifier is not specified for AUT, setting to linux.gtk.x86_64 by default
[DEBUG] Could not find metadata /maven-metadata.xml in local (/usr2/c_jrex/.m2/repository)
[DEBUG] Failure to find /maven-metadata.xml in https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 10.060 s
[INFO] Finished at: 2015-03-31T03:17:00-07:00
[INFO] Final Memory: 9M/121M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.xored.ci4rcptt:ci4rcptt-maven-plugin:1.5.4:resources (default-resources) on project productTests: Failed to resolve artifact ::zip:linux.gtk.x86_64:[0.0.1,) -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal com.xored.ci4rcptt:ci4rcptt-maven-plugin:1.5.4:resources (default-resources) on project productTests: Failed to resolve artifact ::zip:linux.gtk.x86_64:[0.0.1,)
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212)
	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:116)
	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
	at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
	at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
	at org.apache.maven.cli.MavenCli.execute(MavenCli.java:862)
	at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:286)
	at org.apache.maven.cli.MavenCli.main(MavenCli.java:197)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:601)
	at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
	at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
	at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
	at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
Caused by: org.apache.maven.plugin.MojoFailureException: Failed to resolve artifact ::zip:linux.gtk.x86_64:[0.0.1,)
	at com.xored.q7.maven.util.CoordResolver.resolveVersion(CoordResolver.java:196)
	at com.xored.q7.maven.util.CoordResolver.resolveArtifact(CoordResolver.java:97)
	at com.xored.q7.maven.util.CoordResolver.resolve(CoordResolver.java:74)
	at com.xored.q7.maven.PrepareMojo.unpackApps(PrepareMojo.java:114)
	at com.xored.q7.maven.PrepareMojo.execute(PrepareMojo.java:32)
	at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
	... 20 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


I have attached the pom.xml , PFA.

I generated the pom.xml from RCPTT application itself.
  • Attachment: pom.xml
    (Size: 8.66KB, Downloaded 255 times)
Re: RCPTT Maven packaging error [message #1690929 is a reply to message #1690797] Wed, 01 April 2015 03:18 Go to previous messageGo to next message
Vasili Gulevich is currently offline Vasili GulevichFriend
Messages: 28
Registered: July 2009
Junior Member
Please fill in

  • configuration/aut/artifactId
  • configuration/aut/groupId
  • configuration/aut/versionId

or configuration/aut/explicit (with a path to AUT installation folder or to a ZIP archive with AUT product).

See reference on http://rcptt.xored.com/maven-plugin
Re: RCPTT Maven packaging error [message #1690985 is a reply to message #1690929] Wed, 01 April 2015 12:37 Go to previous messageGo to next message
Jeevan Rex is currently offline Jeevan RexFriend
Messages: 80
Registered: March 2015
Location: Bangalore
Member
Hi Vasili GulevichFriend,

I have filled those now as the following.

<groupId>com.abc</groupId>
<artifactId>com.abc.rcptt.product</artifactId>
<version>1.0.0-SNAPSHOT</version>


yet the error still exists.

Thank you
Jeevan
Re: RCPTT Maven packaging error [message #1690992 is a reply to message #1690985] Wed, 01 April 2015 13:04 Go to previous messageGo to next message
Vasili Gulevich is currently offline Vasili GulevichFriend
Messages: 28
Registered: July 2009
Junior Member
Jeevan Rex wrote on Wed, 01 April 2015 08:37
Hi Vasili GulevichFriend,
I have filled those now as the following.
...
yet the error still exists.


There is a known issue with this plugin that is fails on artifacts, that were not installed or deployed. Be sure to install com.abc:com.abc.rcptt.product to your Maven repository.
Also, please, quote new error and new pom content.

[Updated on: Wed, 01 April 2015 13:12]

Report message to a moderator

Re: RCPTT Maven packaging error [message #1691093 is a reply to message #1690992] Thu, 02 April 2015 09:48 Go to previous messageGo to next message
Jeevan Rex is currently offline Jeevan RexFriend
Messages: 80
Registered: March 2015
Location: Bangalore
Member
Is the groupId and artifactId need to be very specific? I can give any string as groupID right?
Re: RCPTT Maven packaging error [message #1691094 is a reply to message #1690992] Thu, 02 April 2015 09:56 Go to previous messageGo to next message
Jeevan Rex is currently offline Jeevan RexFriend
Messages: 80
Registered: March 2015
Location: Bangalore
Member
Hi,

I changed the location of my explicit and tried everything from beginning. Now a new error comes.

[INFO] Building zip: /prj/iceng/qsip1/workspaces/c_jrex/RCPTT/workspace_rcptt/FM_New/target/projectName-productTests-1.5.5-SNAPSHOT-result.zip
[DEBUG] adding directory rcptt/
[DEBUG] adding entry rcptt/stdout.txt
[DEBUG] adding entry rcptt/stderr.txt
[DEBUG] adding entry rcptt/log.txt
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 05:26 min
[INFO] Finished at: 2015-04-02T02:41:21-07:00
[INFO] Final Memory: 11M/121M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.xored.ci4rcptt:ci4rcptt-maven-plugin:1.5.4:package (default-package) on project productTests: Could not read test results file /prj/iceng/qsip1/workspaces/c_jrex/RCPTT/workspace_rcptt/FM_New/target/surefire-reports/TEST-productTests.junit.xml -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal com.xored.ci4rcptt:ci4rcptt-maven-plugin:1.5.4:package (default-package) on project productTests: Could not read test results file /prj/iceng/qsip1/workspaces/c_jrex/RCPTT/workspace_rcptt/FM_New/target/surefire-reports/TEST-productTests.junit.xml
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212)
	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:116)
	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
	at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
	at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
	at org.apache.maven.cli.MavenCli.execute(MavenCli.java:862)
	at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:286)
	at org.apache.maven.cli.MavenCli.main(MavenCli.java:197)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:601)
	at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
	at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
	at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
	at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
Caused by: org.apache.maven.plugin.MojoFailureException: Could not read test results file /prj/iceng/qsip1/workspaces/c_jrex/RCPTT/workspace_rcptt/FM_New/target/surefire-reports/TEST-productTests.junit.xml
	at com.xored.q7.maven.PackageMojo.readError(PackageMojo.java:109)
	at com.xored.q7.maven.PackageMojo.failBuildIfFailingTests(PackageMojo.java:56)
	at com.xored.q7.maven.PackageMojo.execute(PackageMojo.java:47)
	at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
	... 20 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


It looks similar, what can I do?

What do you mean by "install com.abc:com.abc.rcptt.product to your Maven repository" - how to do that? please let me know

Thank you
Jeevan
Re: RCPTT Maven packaging error [message #1691333 is a reply to message #1691094] Mon, 06 April 2015 06:43 Go to previous messageGo to next message
Olga Yurchuk is currently offline Olga YurchukFriend
Messages: 245
Registered: September 2014
Senior Member

Hello,

The attached log is truncated, could you please attach the whole log file?
As for installing to Maven repository find more details here.


Yours sincerely,
Olga.
Re: RCPTT Maven packaging error [message #1691342 is a reply to message #1691333] Mon, 06 April 2015 09:22 Go to previous messageGo to next message
Jeevan Rex is currently offline Jeevan RexFriend
Messages: 80
Registered: March 2015
Location: Bangalore
Member
Please find attachment below

I think the origin of the error is here:

Caused by: org.apache.maven.plugin.MojoFailureException: Could not read test results file /prj/iceng/qsip1/workspaces/c_jrex/RCPTT/workspace_rcptt/FM_New/target/surefire-reports/TEST-productTests.junit.xml

surefire-reports/TEST-productTests.junit.xml is not generated. Why is that?

It has not produced anything inside surefire-reports directory. See here:

vl-c-jrex-ice{114}> ls
projectName-productTests-1.5.5-SNAPSHOT-result.zip projects/ results/ runner/ runner-workspace/ surefire-reports/
vl-c-jrex-ice{115}> pwd
/prj/iceng/qsip1/workspaces/c_jrex/RCPTT/workspace_rcptt/FM_New/target
vl-c-jrex-ice{117}> ls surefire-reports/ -a
./ ../
vl-c-jrex-ice{118}>

I did mvn package install

A solution is given here: http://stackoverflow.com/questions/9387052/maven-surefire-report-plugin-not-generating-surefire-report-html
but it did not work . Any suggestions?
  • Attachment: log
    (Size: 34.38KB, Downloaded 180 times)
  • Attachment: pom.xml
    (Size: 8.86KB, Downloaded 223 times)

[Updated on: Mon, 06 April 2015 11:01]

Report message to a moderator

Re: RCPTT Maven packaging error [message #1692794 is a reply to message #1691342] Sat, 18 April 2015 19:13 Go to previous messageGo to next message
András Bátor is currently offline András BátorFriend
Messages: 15
Registered: April 2014
Junior Member
Hi!

Could you fix this problem? I have the same issue. Thanks for your answer.
Re: RCPTT Maven packaging error [message #1692834 is a reply to message #1692794] Mon, 20 April 2015 07:00 Go to previous messageGo to next message
Olga Yurchuk is currently offline Olga YurchukFriend
Messages: 245
Registered: September 2014
Senior Member

Hello,

I see an error in attached log:
[INFO] Complete OK
[INFO] Verifying licenses...
[INFO]     FM_New... No license. Project skipped.
[INFO] No tests to run.
[INFO] Finished at Mon Apr 06 02:18:44 PDT 2015
[INFO] Runner exit code is: 0

It means that you use proprietary version of runner.
RCPTT Runner recently became Open Source. You can find more information here.



Yours sincerely,
Olga.
Re: RCPTT Maven packaging error [message #1692868 is a reply to message #1692834] Mon, 20 April 2015 10:20 Go to previous messageGo to next message
András Bátor is currently offline András BátorFriend
Messages: 15
Registered: April 2014
Junior Member
Hi!

Thanks for your answer. Now it works for me, if I run "mvc clean package" in terminal. But it doesn't work if I try to run it with Jenkins. It can not find my test files as you can see. Can you help with this problem?

Quote:
Started by user anonymous
Building in workspace /var/lib/jenkins/jobs/EMF-IncQuery_RCPTT_UI_Tests/workspace
> git rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
> git config remote.origin.url https://github.com/Bator92/EMF-IncQuery-RCPTT-UI-Tests.git # timeout=10
Fetching upstream changes from https://github.com/Bator92/EMF-IncQuery-RCPTT-UI-Tests.git
> git --version # timeout=10
> git -c core.askpass=true fetch --tags --progress https://github.com/Bator92/EMF-IncQuery-RCPTT-UI-Tests.git +refs/heads/*:refs/remotes/origin/*
> git rev-parse refs/remotes/origin/master^{commit} # timeout=10
> git rev-parse refs/remotes/origin/origin/master^{commit} # timeout=10
Checking out Revision c795a28278a82aeb85b93e72f5221247e08e23c4 (refs/remotes/origin/master)
> git config core.sparsecheckout # timeout=10
> git checkout -f c795a28278a82aeb85b93e72f5221247e08e23c4
> git rev-list c795a28278a82aeb85b93e72f5221247e08e23c4 # timeout=10
[workspace] $ /var/lib/jenkins/tools/hudson.tasks.Maven_MavenInstallation/mavenHOME/bin/mvn clean package
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building rcpttTests 1.0.0
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ rcpttTests ---
[INFO] Deleting /var/lib/jenkins/jobs/EMF-IncQuery_RCPTT_UI_Tests/workspace/target
[INFO]
[INFO] --- ci4rcptt-maven-plugin:1.5.6-SNAPSHOT:resources (default-resources) @ rcpttTests ---
[INFO] Using AUT from /usr/eclipse-IncQuery-AUT
[INFO] Extracting RCPTT runner to /var/lib/jenkins/jobs/EMF-IncQuery_RCPTT_UI_Tests/workspace/target/runner
[INFO] Copying project contents to target directory...
[INFO]
[INFO] --- ci4rcptt-maven-plugin:1.5.6-SNAPSHOT:execute (default-execute) @ rcpttTests ---
[INFO] Runner command line is /bin/sh -c cd /var/lib/jenkins/jobs/EMF-IncQuery_RCPTT_UI_Tests/workspace/target/runner/eclipse && /usr/java/jdk1.8.0_40/jre/bin/java -Xms128m -Xmx256m -Dcom.xored.q7.runner.returnTestFailure=true -jar /var/lib/jenkins/jobs/EMF-IncQuery_RCPTT_UI_Tests/workspace/target/runner/eclipse/plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar -application org.eclipse.rcptt.runner.headless -data /var/lib/jenkins/jobs/EMF-IncQuery_RCPTT_UI_Tests/workspace/target/runner-workspace -aut /usr/eclipse-IncQuery-AUT -autWsPrefix /var/lib/jenkins/jobs/EMF-IncQuery_RCPTT_UI_Tests/workspace/target/aut-ws- -autConsolePrefix /var/lib/jenkins/jobs/EMF-IncQuery_RCPTT_UI_Tests/workspace/target/results/aut-console- -q7report /var/lib/jenkins/jobs/EMF-IncQuery_RCPTT_UI_Tests/workspace/target/results/rcpttTests.report -htmlReport /var/lib/jenkins/jobs/EMF-IncQuery_RCPTT_UI_Tests/workspace/target/results/rcpttTests.html -junitReport /var/lib/jenkins/jobs/EMF-IncQuery_RCPTT_UI_Tests/workspace/target/surefire-reports/TEST-rcpttTests.xml -import /var/lib/jenkins/jobs/EMF-IncQuery_RCPTT_UI_Tests/workspace/target/projects/rcpttTests -testOptions 'testExecTimeout=300;execTimeout=3600' -shutdownListenerPort 8748
[INFO] The execution timeout is set to 3600 seconds
[INFO] Started at Mon Apr 20 11:43:06 CEST 2015
[INFO] RCPTT Runner version: 1.5.6
[INFO] Initializing target platform...
[INFO] Target platform is valid.
[INFO] Looking for tests...
[INFO] Existing projects in workspace:
[INFO] <none>
[INFO] No projects to import
[INFO] No projects ready to test
[INFO] No tests to run.
[INFO] Finished at Mon Apr 20 11:43:27 CEST 2015
[INFO] Runner exit code is: 0
[INFO]
[INFO] --- ci4rcptt-maven-plugin:1.5.6-SNAPSHOT:package (default-package) @ rcpttTests ---
[INFO] Building zip: /var/lib/jenkins/jobs/EMF-IncQuery_RCPTT_UI_Tests/workspace/target/projects/rcpttTests-1.0.0.zip
[INFO] Building zip: /var/lib/jenkins/jobs/EMF-IncQuery_RCPTT_UI_Tests/workspace/target/IncQueryProject-rcpttTests-1.0.0-result.zip
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 32.887 s
[INFO] Finished at: 2015-04-20T11:43:29+02:00
[INFO] Final Memory: 9M/217M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.xored.ci4rcptt:ci4rcptt-maven-plugin:1.5.6-SNAPSHOT:package (default-package) on project rcpttTests: Could not read test results file /var/lib/jenkins/jobs/EMF-IncQuery_RCPTT_UI_Tests/workspace/target/surefire-reports/TEST-rcpttTests.junit.xml -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[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
Build step 'Invoke top-level Maven targets' marked build as failure
Finished: FAILURE

[Updated on: Mon, 20 April 2015 10:20]

Report message to a moderator

Re: RCPTT Maven packaging error [message #1692873 is a reply to message #1692868] Mon, 20 April 2015 11:13 Go to previous messageGo to next message
Jeevan Rex is currently offline Jeevan RexFriend
Messages: 80
Registered: March 2015
Location: Bangalore
Member
Hi András Bátor,

What did you change to make it work. My application doesn't have any Licencing. There is one which I have set in my rc file which get sets automatically during boot.

Please let me know the changes you made.

Thank you
Jeevan
Re: RCPTT Maven packaging error [message #1692875 is a reply to message #1692873] Mon, 20 April 2015 11:21 Go to previous messageGo to next message
András Bátor is currently offline András BátorFriend
Messages: 15
Registered: April 2014
Junior Member
Hi!

I have started using the nightly version of the runner. So, I downloaded the .zip file. My pom.xml looks like this now. But it doesn't works for me with Jenkins.:

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  <modelVersion>4.0.0</modelVersion>

  <!-- Change groupId, artifactId and version -->
  <artifactId>rcpttTests</artifactId>
  <groupId>IncQueryProject</groupId>
  <version>1.0.0</version>
  
  <packaging>rcpttTest</packaging>

  <!-- Change properies below to your values -->
  <properties>
    	<autPath>/home/97204/Development/eclipse-IncQuery-AUT</autPath>
  </properties>
  
  <build>
    <plugins>
      <plugin>
        <groupId>com.xored.ci4rcptt</groupId>
        <artifactId>ci4rcptt-maven-plugin</artifactId>
        <version>1.5.6-SNAPSHOT</version>
        <extensions>true</extensions>
        <configuration>
          <aut>
            <explicit>${autPath}</explicit>
          </aut>
          <runner>
            <explicit>/home/97204/Downloads/rcptt.runner-incubation-1.5.6-N201504182315.zip</explicit>
          </runner>
        </configuration>
      </plugin>
    </plugins>
  </build>

  <pluginRepositories>
    <pluginRepository>
      <id>xored-releases</id>
      <name>Xored Maven repository</name>
      <url>http://maven.xored.com/nexus/content/repositories/ci4rcptt-snapshots/</url>
    </pluginRepository>
  </pluginRepositories>

</project>

[Updated on: Mon, 20 April 2015 11:24]

Report message to a moderator

Re: RCPTT Maven packaging error [message #1692876 is a reply to message #1692875] Mon, 20 April 2015 11:34 Go to previous messageGo to next message
Jeevan Rex is currently offline Jeevan RexFriend
Messages: 80
Registered: March 2015
Location: Bangalore
Member
I think your Jenkins server needs either XVNC or gtk installed. Check if those are there in Jenkins server.
Re: RCPTT Maven packaging error [message #1692880 is a reply to message #1692876] Mon, 20 April 2015 11:54 Go to previous messageGo to next message
Olga Yurchuk is currently offline Olga YurchukFriend
Messages: 245
Registered: September 2014
Senior Member

Here are the details of how to configure Jenkins job.
Did you do the same steps?


Yours sincerely,
Olga.
Re: RCPTT Maven packaging error [message #1692882 is a reply to message #1692880] Mon, 20 April 2015 12:28 Go to previous messageGo to next message
Jeevan Rex is currently offline Jeevan RexFriend
Messages: 80
Registered: March 2015
Location: Bangalore
Member
I have changed my pom.xml similar to your pom file. But still some issue is there. I have attached my pom.xml and also the output of mvn clean package -X (log.txt)

Let me know how could this be solved. Please find attachment.

Thank you
  • Attachment: log.txt
    (Size: 21.19KB, Downloaded 263 times)
  • Attachment: pom.xml
    (Size: 1.22KB, Downloaded 206 times)
Re: RCPTT Maven packaging error [message #1693024 is a reply to message #1692882] Tue, 21 April 2015 10:03 Go to previous messageGo to next message
András Bátor is currently offline András BátorFriend
Messages: 15
Registered: April 2014
Junior Member
Hi!

It's interesting. Your pom looks like very similar to mine. I don't know what could be the problem. Sad

But I have problem with running on Jenkins.
http://support.xored.com/support/solutions/articles/3000028645-use-jenkins-to-run-rcptt-tests-in-continuos-integration-environment-

I made these steps, except that I use my pom.xml (mentioned above). And I am using it with my github repo:
https://github.com/Bator92/EMF-IncQuery-RCPTT-GUI-Tests

But all of my tests failed with the first ECL Command (eg. Failed to set selection: [....]). According to the output rcpttTests.html, the workspace was created. The tests are working running it from it's folder with the "mvn clean package" command. What can be the problem?
Re: RCPTT Maven packaging error [message #1693052 is a reply to message #1693024] Tue, 21 April 2015 12:39 Go to previous messageGo to next message
Olga Yurchuk is currently offline Olga YurchukFriend
Messages: 245
Registered: September 2014
Senior Member

Hello,

Try to add Workbench context, probably needed perspective or view isn't opened.
Could you please attach HTML-report?


Yours sincerely,
Olga.
Re: RCPTT Maven packaging error [message #1693072 is a reply to message #1693052] Tue, 21 April 2015 14:14 Go to previous messageGo to next message
András Bátor is currently offline András BátorFriend
Messages: 15
Registered: April 2014
Junior Member
Hi!

I have attached my target folder's most important directories. Theoritically, the workbench and workspace context were created, but unfortunately I cannot se on the screenshots. What do you think? What can be the problem?
  • Attachment: target.zip
    (Size: 3.29MB, Downloaded 194 times)
Re: RCPTT Maven packaging error [message #1693169 is a reply to message #1693072] Wed, 22 April 2015 08:40 Go to previous messageGo to next message
Jeevan Rex is currently offline Jeevan RexFriend
Messages: 80
Registered: March 2015
Location: Bangalore
Member
Hi András Bátor,

Which version of Maven are you using? I am using 3.3.1.

Thanks
Jeevan
Re: RCPTT Maven packaging error [message #1693181 is a reply to message #1693169] Wed, 22 April 2015 09:55 Go to previous messageGo to next message
András Bátor is currently offline András BátorFriend
Messages: 15
Registered: April 2014
Junior Member
Hi!

I am using 3.3.1 too.
Re: RCPTT Maven packaging error [message #1693185 is a reply to message #1693181] Wed, 22 April 2015 10:02 Go to previous messageGo to next message
Jeevan Rex is currently offline Jeevan RexFriend
Messages: 80
Registered: March 2015
Location: Bangalore
Member
I think the issue starts here:

[DEBUG] expand complete
[INFO] Copying project contents to target directory...
[INFO] 
[INFO] --- ci4rcptt-maven-plugin:1.5.6-SNAPSHOT:execute (default-execute) @ productTests ---
[DEBUG] Configuring mojo com.xored.ci4rcptt:ci4rcptt-maven-plugin:1.5.6-SNAPSHOT:execute from plugin realm ClassRealm[extension>com.xored.ci4rcptt:ci4rcptt-maven-plugin:1.5.6-SNAPSHOT, parent: sun.misc.Launcher$AppClassLoader@5306989e]
[DEBUG] Configuring mojo 'com.xored.ci4rcptt:ci4rcptt-maven-plugin:1.5.6-SNAPSHOT:execute' with basic configurator -->
[DEBUG]   (s) explicit = /prj/iceng/qsip1/workspaces/fusemaster/linux-qsip2.1.2forJeevan/linux/
[DEBUG]   (f) aut = Coords [artifactId=null, groupId=null, version=null]
[DEBUG]   (f) outDir = /prj/iceng/qsip1/workspaces/c_jrex/RCPTT/workspace_rcptt/FM_Jenkins_TestRunner/target
[DEBUG]   (f) project = MavenProject: projectName:productTests:1.5.5-SNAPSHOT @ /prj/iceng/qsip1/workspaces/c_jrex/RCPTT/workspace_rcptt/FM_Jenkins_TestRunner/pom.xml
[DEBUG]   (f) repoSession = org.eclipse.aether.DefaultRepositorySystemSession@10cbf9d9
[DEBUG]   (s) version = 1.5.6-SNAPSHOT
[DEBUG]   (f) runner = Coords [artifactId=null, groupId=null, version=1.5.6-SNAPSHOT]
[DEBUG]   (f) skipTests = false
[DEBUG]   (f) testFailureIgnore = false
[DEBUG] -- end configuration --
[INFO] Runner command line is /bin/sh -c cd /prj/iceng/qsip1/workspaces/c_jrex/RCPTT/workspace_rcptt/FM_Jenkins_TestRunner/target/runner/eclipse && dfdfm -Dcom.xored.q7.runner.returnTestFailure=true -XX:MaxPermSize=256m -jar /prj/iceng/qsip1/workspaces/c_jrex/RCPTT/workspace_rcptt/FM_Jenkins_TestRunner/target/runner/eclipse/plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar -application org.eclipse.rcptt.runner.headless -data /prj/iceng/qsip1/workspaces/c_jrex/RCPTT/workspace_rcptt/FM_Jenkins_TestRunner/target/runner-workspace -aut /prj/iceng/qsip1/workspaces/fusemaster/linux-qsip2.1.2forJeevan/linux -autWsPrefix /prj/iceng/qsip1/workspaces/c_jrex/RCPTT/workspace_rcptt/FM_Jenkins_TestRunner/target/aut-ws- -autConsolePrefix /prj/iceng/qsip1/workspaces/c_jrex/RCPTT/workspace_rcptt/FM_Jenkins_TestRunner/target/results/aut-console- -q7report /prj/iceng/qsip1/workspaces/c_jrex/RCPTT/workspace_rcptt/FM_Jenkins_TestRunner/target/results/productTests.report -htmlReport /prj/iceng/qsip1/workspaces/c_jrex/RCPTT/workspace_rcptt/FM_Jenkins_TestRunner/target/results/productTests.html -junitReport /prj/iceng/qsip1/workspaces/c_jrex/RCPTT/workspace_rcptt/FM_Jenkins_TestRunner/target/surefire-reports/TEST-productTests.xml -import /prj/iceng/qsip1/workspaces/c_jrex/RCPTT/workspace_rcptt/FM_Jenkins_TestRunner/target/projects/productTests -testOptions 'execTimeout=3600;testExecTimeout=300' -shutdownListenerPort 9481
[INFO] The execution timeout is set to 3600 seconds
[INFO] An error has occurred. See the log file
[INFO] /prj/iceng/qsip1/workspaces/c_jrex/RCPTT/workspace_rcptt/FM_Jenkins_TestRunner/target/runner/eclipse/configuration/1429784143465.log.
[INFO] Runner exit code is: 13
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 20.130 s
[INFO] Finished at: 2015-04-23T03:15:53-07:00
[INFO] Final Memory: 10M/121M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.xored.ci4rcptt:ci4rcptt-maven-plugin:1.5.6-SNAPSHOT:execute (default-execute) on project productTests: Failed to launch RCPTT runner: Runner exit code is: 13 -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal com.xored.ci4rcptt:ci4rcptt-maven-plugin:1.5.6-SNAPSHOT:execute (default-execute) on project productTests: Failed to launch RCPTT runner
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:216)
	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:116)
	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
	at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
	at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
	at org.apache.maven.cli.MavenCli.execute(MavenCli.java:862)
	at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:286)
	at org.apache.maven.cli.MavenCli.main(MavenCli.java:197)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:601)
	at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
	at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
	at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
	at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
Caused by: org.apache.maven.plugin.MojoExecutionException: Failed to launch RCPTT runner
	at com.xored.q7.maven.ExecuteMojo.execute(ExecuteMojo.java:268)df
	at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
	... 20 more
Caused by: org.apache.maven.plugin.MojoFailureException: Runner exit code is: 13
	at com.xored.q7.maven.ExecuteMojo.execute(ExecuteMojo.java:260)
	... 22 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/MojoExecutionException
java.net.ConnectException: Connection refused
[INFO] Process terminated. Send shutdown request to RCPTT runner.


The packaging type "rcpttTest" is a predefined one right? Or is it related to my project? Do I need to include any RCPTT free licence file?
  • Attachment: Current.txt
    (Size: 29.43KB, Downloaded 230 times)

[Updated on: Thu, 23 April 2015 11:32]

Report message to a moderator

Re: RCPTT Maven packaging error [message #1693341 is a reply to message #1693169] Thu, 23 April 2015 11:57 Go to previous messageGo to next message
Olga Yurchuk is currently offline Olga YurchukFriend
Messages: 245
Registered: September 2014
Senior Member

Hi,

It's interesting. I see in HTML-report, that workspace is applied.
In shared report in swt.info I see the following snippet:

view:Project Explorer {
id=org.eclipse.ui.navigator.ProjectExplorer 
dirty=false 
fastView=false 
View(Project Explorer) {
Toolbar() {
Button(Collapse All (M1+M2+Numpad_Divide)) Button(Link with Editor) Button(Focus on Active Task (Alt+click to reveal filtered elements)) }
Tree() {
Item(> school.incquery [workspace origin/master 6fba308]) Item(> school.incquery.validation [workspace origin/master 6fba308]) Item(> school.instancemodel [workspace origin/master 6fba308]) }
}
}


And if I try to reproduce it locally with your test project swt.info contains
view:Project Explorer {
id=org.eclipse.ui.navigator.ProjectExplorer 
dirty=false 
fastView=false 
View(Project Explorer) {
Toolbar() {
Button(Collapse All (M1+M2+Numpad_Divide)) Button(Link with Editor) Button(Focus on Active Task (Alt+click to reveal filtered elements)) }
Tree() {
Item(school.incquery) Item(school.instancemodel) {
Item(META-INF) Item(build.properties) Item(BUTE.school) Item(Hogwarts.school) Item(pom.xml) }
}
}
}


In your info there is Item(> school.instancemodel [workspace origin/master 6fba308]) instead of Item(school.instancemodel).

That's why tests fail. Do you have an idea why it happens?
As a workaround you can use regular expressions:
select ".*school.instancemodel.*/BUTE.school"



Yours sincerely,
Olga.
Re: RCPTT Maven packaging error [message #1693585 is a reply to message #1693341] Sat, 25 April 2015 19:22 Go to previous messageGo to next message
Jeevan Rex is currently offline Jeevan RexFriend
Messages: 80
Registered: March 2015
Location: Bangalore
Member
Hi,

Now I have tried everything in a new environment in my personnel laptop. My AUT is nothing but the latest download of eclipse. I created a test case and did maven run. Was able to run, then will there be an issue with the earlier AUT? How can I find that?

Thank you.
Jeevan

[Updated on: Sun, 26 April 2015 10:58]

Report message to a moderator

Re: RCPTT Maven packaging error [message #1693773 is a reply to message #1693585] Tue, 28 April 2015 10:04 Go to previous message
Jeevan Rex is currently offline Jeevan RexFriend
Messages: 80
Registered: March 2015
Location: Bangalore
Member
Thank you guys,

I am able to run it now. But issue when running with Jenkins. I have attached the Jenkins log here.

Please let me know the solution for Jenkins

I am almost using the same setup here http://support.xored.com/support/solutions/articles/3000028645-use-jenkins-to-run-rcptt-tests-in-continuos-integration-environment- But I am trying to run from my local and not in Git. It is from my local directory.
  • Attachment: Jenkins.txt
    (Size: 14.12KB, Downloaded 278 times)
Previous Topic:Need help on ECL script
Next Topic:ECL: String Concatenation
Goto Forum:
  


Current Time: Fri Apr 26 16:06:46 GMT 2024

Powered by FUDForum. Page generated in 0.05674 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top