Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Add a dependency on Apache Maven resolver to the necessary modules. In most cases these will be modules that already depend on org.sonatype.aether. For example, if you already have
    <dependency>
      <groupId>org.sonatype.aether</groupId>
      <artifactId>aether-connector-file</artifactId>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.sonatype.aether</groupId>
      <artifactId>aether-connector-wagon</artifactId>
      <scope>test</scope>
    </dependency>
    You would add
    <dependency>
      <groupId>org.apache.maven.resolver</groupId>
      <artifactId>maven-resolver-transport-file</artifactId>
      <version>1.4.1</version>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.apache.maven.resolver</groupId>
      <artifactId>maven-resolver-transport-wagon</artifactId>
      <version>1.4.1</version>
      <scope>test</scope>
        </dependency>
    1. Sometimes these dependencies can be test scoped.
  2. This will probably break the build at runtime. So remove all the dependencies on org.sonatype.aether.
  3. The build might or might not be broken at this point, depending on whether the old sonatype dependencies get pulled in from transitive dependencies. Regardless you now need to remove them from the java source code.
  4. Search for import org.sonatype.aether in your IDE.
  5. Some of these classes can be replaced with org.eclipse.aether and you're good. However org.sonatype.aether.impl.internal.SimpleLocalRepositoryManager is a problem since it's no longer public Maven Resolver.


Info

Content by Label
showLabelsfalse
max5
spacesMAVEN
showSpacefalse
sortmodified
reversetrue
typepage
cqllabel in ("maven","resolver","aether") and type = "page" and space = "MAVEN"
labelsmaven aether resolver

...