Maven NatTable clean+install failure
Asked Answered
M

2

10

I'm trying to import and resolve the developer projects for the NatTable project as explained in their Getting Started tutorial.

I'm getting the following error on mvn -f [path to pom] clean install:

Exception in thread "main" java.lang.NoSuchMethodError: org.apache.maven.execution.MavenSession.getRepositorySession()Lorg/sonatype/aether/RepositorySystemSession;

More details:

  • mvn --version works fine
  • %MAVEN_HOME% points to [devel]/maven-3.1.0
Maccarthy answered 5/8, 2013 at 12:40 Comment(0)
M
16

The NatTable project seems to have configured the Tycho build extension in a version which is not compatible with Maven 3.1.

Either ask the project to switch to a Tycho version which works with Maven 3.1 (0.18.1 or later), or downgrade your local Maven installation to 3.0.5.

Magellan answered 5/8, 2013 at 15:2 Comment(2)
Thank you. May I ask how did you figure that out?Maccarthy
I happen to be committer on the Tycho project, and we've been notified from the Maven guys about the changes of some internals in Maven 3.1.Magellan
V
1

The NatTable project recently updated to use Maven Tycho 0.19.0.

Thanks for the hint.

Vasquez answered 18/11, 2013 at 14:0 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.