Skip to content

eclipseMavenCentral does not convert "org.eclipse.jdt.core.compiler.batch" correctly #157

Closed
@jmini

Description

@jmini

Probably due to legacy reasons it was decided to publish bundle org.eclipse.jdt.core.compiler.batch as:

<dependency>
    <groupId>org.eclipse.jdt</groupId>
    <artifactId>ecj</artifactId>
    <version>${jdtVersion}</version>
</dependency>

This special mapping is defined in the eclipse.platform.releng project in the CBI aggregator configuration file:

<mavenMappings namePattern="(org\.eclipse\.jdt)\.core\.compiler\.batch" groupId="$1" artifactId="ecj"/>

Source: https://git.eclipse.org/c/platform/eclipse.platform.releng.git/tree/publish-to-maven-central/SDK4Mvn.aggr#n36


Currently eclipseMavenCentral is now aware of this special mapping, it is failing with:

> Task :my_project:compileJava FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':my_project:compileJava'.
> Could not resolve all files for configuration ':my_project:compileClasspath'.
   > Could not find org.eclipse.jdt:org.eclipse.jdt.core.compiler.batch:3.20.0.
     Searched in the following locations:
       - https://repo.maven.apache.org/maven2/org/eclipse/jdt/org.eclipse.jdt.core.compiler.batch/3.20.0/org.eclipse.jdt.core.compiler.batch-3.20.0.pom
     Required by:
         project :my_project

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions