From acb236f878b020722512b1ce0ba20329500083c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fridrich=20=C5=A0trba?= Date: Sat, 7 May 2022 18:13:02 +0200 Subject: [PATCH 1/2] Simple implementation of toolchains https://github.com/fedora-java/xmvn/issues/142 --- .../fedoraproject/xmvn/mojo/JavadocMojo.java | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/xmvn-mojo/src/main/java/org/fedoraproject/xmvn/mojo/JavadocMojo.java b/xmvn-mojo/src/main/java/org/fedoraproject/xmvn/mojo/JavadocMojo.java index b2cd41fd..2b06e702 100644 --- a/xmvn-mojo/src/main/java/org/fedoraproject/xmvn/mojo/JavadocMojo.java +++ b/xmvn-mojo/src/main/java/org/fedoraproject/xmvn/mojo/JavadocMojo.java @@ -45,6 +45,8 @@ import org.apache.maven.project.DependencyResolutionResult; import org.apache.maven.project.MavenProject; import org.apache.maven.project.ProjectDependenciesResolver; +import org.apache.maven.toolchain.Toolchain; +import org.apache.maven.toolchain.ToolchainManager; import org.codehaus.plexus.logging.Logger; import org.codehaus.plexus.util.StringUtils; import org.eclipse.aether.util.filter.AndDependencyFilter; @@ -69,6 +71,9 @@ @Component private Configurator confugurator; + @Component + private ToolchainManager toolchainManager; + @Parameter( defaultValue = "${session}", readonly = true ) private MavenSession session; @@ -161,8 +166,18 @@ private void populateClasspath( Collection reactorClassPath, Collection Date: Sat, 7 May 2022 21:29:24 +0200 Subject: [PATCH 2/2] Fix typo --- .../src/main/java/org/fedoraproject/xmvn/mojo/JavadocMojo.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xmvn-mojo/src/main/java/org/fedoraproject/xmvn/mojo/JavadocMojo.java b/xmvn-mojo/src/main/java/org/fedoraproject/xmvn/mojo/JavadocMojo.java index 2b06e702..a83e8acf 100644 --- a/xmvn-mojo/src/main/java/org/fedoraproject/xmvn/mojo/JavadocMojo.java +++ b/xmvn-mojo/src/main/java/org/fedoraproject/xmvn/mojo/JavadocMojo.java @@ -69,7 +69,7 @@ private ProjectDependenciesResolver resolver; @Component - private Configurator confugurator; + private Configurator configurator; @Component private ToolchainManager toolchainManager;