[VTN-30] Failed to build features-vtn-manager when local maven repo is empty. Created: 11/Sep/14  Updated: 03/May/18  Resolved: 15/Sep/14

Status: Resolved
Project: vtn
Component/s: VTN Manager
Affects Version/s: unspecified
Fix Version/s: None

Type: Bug
Reporter: Hideyuki Tai Assignee: Unassigned
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All


External issue ID: 1801

 Description   

I failed to build features-vtn-manager when local maven repository is empty.

$ cd (VTN Git repository)
$ git log --oneline -3
92552cb Merge "Implement TCP/UDP checksum recalculation."
2ed3059 Merge "Fixed incorrect javadoc link in test sources."
dfc66b1 Implement TCP/UDP checksum recalculation.
$ cd manager/features/
$ rm -rf .m2/repository/
$ mvn clean install

(snip)

Tests in error:
Error resolving artifact orbit:org.apache.catalina:jar:7.0.53.v201406061610: Could not find artifact orbit:org.apache.catalina:jar:7.0.53.v201406061610 in defaultlocal (file:/home/odp/.m2/repository/)
Error resolving artifact orbit:org.apache.catalina:jar:7.0.53.v201406061610: Could not find artifact orbit:org.apache.catalina:jar:7.0.53.v201406061610 in defaultlocal (file:/home/odp/.m2/repository/)
Error resolving artifact orbit:org.apache.catalina:jar:7.0.53.v201406061610: Could not find artifact orbit:org.apache.catalina:jar:7.0.53.v201406061610 in defaultlocal (file:/home/odp/.m2/repository/)
Error resolving artifact orbit:org.apache.catalina:jar:7.0.53.v201406061610: Could not find artifact orbit:org.apache.catalina:jar:7.0.53.v201406061610 in defaultlocal (file:/home/odp/.m2/repository/)

Tests run: 4, Failures: 0, Errors: 4, Skipped: 0

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 6:10.886s
[INFO] Finished at: Wed Sep 10 19:48:42 EDT 2014
[INFO] Final Memory: 48M/85M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.15:test (default-test) on project features-vtn-manager: There are test failures.
[ERROR]
[ERROR] Please refer to /home/odp/work/vtn/manager/features/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



 Comments   
Comment by Hideyuki Tai [ 11/Sep/14 ]

I'm writing my observation related to the issue.

When I faced this issue, my local maven repository didn't have orbit:org.apache.catalina:jar:7.0.53.v201406061610, but had orbit:org.apache.catalina:jar:7.0.32.v201211201336.

VTN Manager depends on 7.0.32.v201211201336 of catalina.

[manager/common/pom.xml]
<dependency>
<groupId>orbit</groupId>
<artifactId>org.apache.catalina</artifactId>
<version>7.0.32.v201211201336</version>
</dependency>

On the other hand, it seems to me that Controller project depends on 7.0.53.v201406061610 of catalina.

[opendaylight/commons/opendaylight/pom.xml]

44 <commons.catalina>7.0.53.v201406061610</commons.catalina>
45 <commons.catalina.ha>7.0.53.v201406070630</commons.catalina.ha>
46 <commons.catalina.tribes>7.0.53.v201406070630</commons.catalina.tribes>

And, it seems that OVSDB project depends on 7.0.53.v201406061610 of catalina.

[features/ovsdb/pom.xml]

92 <dependency>
93 <groupId>orbit</groupId>
94 <artifactId>org.apache.catalina</artifactId>
95 <version>7.0.53.v201406061610</version>
96 </dependency>
97 <dependency>
98 <groupId>orbit</groupId>
99 <artifactId>org.apache.catalina.ha</artifactId>
100 <version>7.0.53.v201406070630</version>
101 </dependency>
102 <dependency>
103 <groupId>orbit</groupId>
104 <artifactId>org.apache.catalina.tribes</artifactId>
105 <version>7.0.53.v201406070630</version>
106 </dependency>

Comment by Hideyuki Tai [ 11/Sep/14 ]

Controller project has updated versions of some bundles related to Apache Tomcat in Gerrit 10747.

https://git.opendaylight.org/gerrit/#/c/10747/

Comment by Shigeru Yasuda [ 11/Sep/14 ]

Third-party version of CorsFilter is no longer needed because it is provided
by Tomcat 7.0.53.

https://git.opendaylight.org/gerrit/11054

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