Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,13 @@ jobs:
build:
name: Build it
uses: codehaus-plexus/.github/.github/workflows/maven.yml@master
with:
matrix-include: >
[
{ "os": "ubuntu-latest", "jdk": "26", "distribution": "zulu" },
{ "os": "ubuntu-latest", "jdk": "27", "distribution": "zulu" },
{ "os": "ubuntu-latest", "jdk": "28-ea", "distribution": "temurin" }
]

# deploy:
# name: Deploy
Expand Down
5 changes: 0 additions & 5 deletions plexus-java/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,6 @@
<name>Plexus Languages :: Java</name>

<dependencies>
<dependency>
<groupId>org.ow2.asm</groupId>
<artifactId>asm</artifactId>
<version>9.10.1</version>
</dependency>
<dependency>
<groupId>com.github.javaparser</groupId>
<artifactId>javaparser-core</artifactId>
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@
* specific language governing permissions and limitations
* under the License.
*/
class BinaryModuleInfoParser extends AsmModuleInfoParser {}
class BinaryModuleInfoParser extends ModuleInfoClassParser {}
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,9 @@ public <T> ResolvePathsResult<T> resolvePaths(final ResolvePathsRequest<T> reque

/**
* If the jdkHome is specified, its version it considered higher than the runtime java version.
* In that case ASM must be used to read the module descriptor
* In that case the version-agnostic {@link ModuleInfoClassParser} must be used to read the module
* descriptor, since the runtime's own {@code java.lang.module.ModuleDescriptor} cannot be trusted
* to read a module-info.class produced by a newer JDK than the one it runs on.
*
* @param jdkHome
* @return
Expand All @@ -289,7 +291,7 @@ ModuleInfoParser getBinaryModuleInfoParser(final Path jdkHome) {
if (jdkHome == null) {
binaryParser = new BinaryModuleInfoParser();
} else {
binaryParser = new AsmModuleInfoParser();
binaryParser = new ModuleInfoClassParser();
}
return binaryParser;
}
Expand Down
Loading
Loading