Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 2.0.9
-
Fix Version/s: 2.0.9
-
Component/s: None
-
Labels:None
-
Number of attachments :
Description
When I add a pom extension referening a jar containing an implementation of a toolchain and toolchain factory, the toolchain plugin does not pick up my extensions. I get an exception on mvn install:
Caused by: java.lang.ClassNotFoundException: org.apache.maven.dotnet.extensions.toolchain.DotnetToolchainFactory
I tried the toolchain in 2.1 and it looks as though the extensions work in that version but then I get:
java.lang.ClassCastException: org.apache.maven.dotnet.extensions.toolchain.DotnetToolchain cannot be cast to org.apache.maven.dotnet.extensions.toolchain.Dotnet
Toolchain at org.apache.maven.dotnet.plugin.compiler.CompilerMojo.execute(CompilerMojo.java:127)
I get the same exception in 2.0.9 if I put my jar containing the dotnet toolchain directly in the maven/lib directory.