From 94f1fe0ff5aa55e7c454bc567deb1f94e1b57372 Mon Sep 17 00:00:00 2001 From: bsorrentino Date: Mon, 12 Sep 2016 16:30:30 +0200 Subject: [PATCH] add -sourcepath option --- .../plugin/processor/AbstractAnnotationProcessorMojo.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/main/java/org/bsc/maven/plugin/processor/AbstractAnnotationProcessorMojo.java b/src/main/java/org/bsc/maven/plugin/processor/AbstractAnnotationProcessorMojo.java index 53e89c4..4b5818e 100644 --- a/src/main/java/org/bsc/maven/plugin/processor/AbstractAnnotationProcessorMojo.java +++ b/src/main/java/org/bsc/maven/plugin/processor/AbstractAnnotationProcessorMojo.java @@ -441,14 +441,16 @@ private void executeWithExceptionsHandled() throws Exception } - String compileClassPath = buildCompileClasspath(); + final String compileClassPath = buildCompileClasspath(); - String processor = buildProcessor(); + final String processor = buildProcessor(); - List options = new ArrayList(10); + final List options = new ArrayList(10); options.add("-cp"); options.add(compileClassPath); + options.add("-sourcepath"); + options.add(compileClassPath); options.add("-proc:only"); addCompilerArguments(options);