[YANGTOOLS-291] Yangtools build fails with test: Created: 06/Sep/14  Updated: 10/Apr/22  Resolved: 08/Sep/14

Status: Resolved
Project: yangtools
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug
Reporter: George Zhao Assignee: Unassigned
Resolution: Won't Do Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: Linux
Platform: PC


External issue ID: 1727

 Description   

1) clone fresh yangtools
2) clean .m2/repository
3) mvn clean install

logs: http://pastebin.com/cXzpkufg

yang-maven-plugin-it failed. It also failed at the same place when I run auto-release scripts.

[INFO] ietf-restconf ..................................... SUCCESS [4.748s]
[INFO] restconf-test-service ............................. SUCCESS [0.048s]
[INFO] websocket-aggregator .............................. SUCCESS [0.013s]
[INFO] yang-maven-plugin-it .............................. FAILURE [1:02.047s]
[INFO] yang-aggregator ................................... SKIPPED
[INFO] yangtools-aggregator .............................. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 5:41.698s
[INFO] Finished at: Fri Sep 05 19:17:35 PDT 2014
[INFO] Final Memory: 409M/1467M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-failsafe-plugin:2.16:verify (default) on project yang-maven-plugin-it: There are test failures.
[ERROR]
[ERROR] Please refer to /home/gzhao/OpenDaylight/yangtools/yang/yang-maven-plugin-it/target/surefire-reports for the individual test results.
[ERROR] -> [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
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <goals> -rf :yang-maven-plugin-it



 Comments   
Comment by George Zhao [ 07/Sep/14 ]

This is caused by Ubuntu maven doesn't work with yang-maven-plugin-it.

see https://lists.opendaylight.org/pipermail/yangtools-dev/2014-September/000392.html for detail solutions.

These are the detail steps I used:

$ sudo apt-get remove maven*

Install Maven 3:

$ sudo apt-get install gdebi

$ wget http://ppa.launchpad.net/natecarlson/maven3/ubuntu/pool/main/m/maven3/maven3_3.2.1-0~ppa1_all.deb

$ sudo gdebi maven3_3.2.1-0~ppa1_all.deb

Symlink it, for an easier usage:

$ sudo ln -s /usr/share/maven3/bin/mvn /usr/bin/maven

Comment by Lukas Sedlak [ 08/Sep/14 ]

Hi this is not a bug.

In order to solve your problem Do NOT use maven installed via Ubuntu repositories instead install plane vanilla maven from apache site.

I wrote this few weeks ago, please pay attention in reading it: https://lists.opendaylight.org/pipermail/yangtools-dev/2014-August/000377.html

Generated at Wed Feb 07 20:52:48 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.