Commit cbf93612 authored by Emmanuel Bourg's avatar Emmanuel Bourg

Backported the fix for MCOMPILER-379

parent e2c2dd54
maven-compiler-plugin (3.8.1-4) unstable; urgency=medium
* Team upload.
* Backported the fix for MCOMPILER-379 (fixes the compilation errors
'basedir .../test-generated-sources/annotations does not exist')
-- Emmanuel Bourg <ebourg@apache.org> Wed, 11 Sep 2019 12:04:45 +0200
maven-compiler-plugin (3.8.1-3) unstable; urgency=medium
* Team upload.
......
From 6fd3a46885edd81e62ae62cfc798c1e1b903e170 Mon Sep 17 00:00:00 2001
From: Karl Heinz Marbaise <khmarbaise@apache.org>
Date: Sun, 28 Apr 2019 14:06:25 +0200
Subject: [PATCH] [MCOMPILER-379] - Fatal error compiling: basedir .../target/generated-sources/annotations does not exist
--- a/src/main/java/org/apache/maven/plugin/compiler/AbstractCompilerMojo.java
+++ b/src/main/java/org/apache/maven/plugin/compiler/AbstractCompilerMojo.java
@@ -655,6 +655,11 @@
if ( generatedSourcesDirectory != null )
{
+ if ( !generatedSourcesDirectory.exists() )
+ {
+ generatedSourcesDirectory.mkdirs();
+ }
+
String generatedSourcesPath = generatedSourcesDirectory.getAbsolutePath();
compileSourceRoots.add( generatedSourcesPath );
01-fix-wrong-junit-path.patch
02-reproducible-jpms-args.patch
MCOMPILER-379.patch
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment