We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1ca6d58 commit b5afcf3Copy full SHA for b5afcf3
modello-maven-plugin/src/main/java/org/codehaus/modello/maven/AbstractModelloSourceGeneratorMojo.java
@@ -94,13 +94,12 @@ protected void customizeParameters(Properties parameters) {
94
parameters.setProperty(ModelloParameterConstants.ENCODING, encoding);
95
}
96
97
- if (javaSource != null) {
98
- if (javaSource.startsWith("1.")) {
99
- javaSource = javaSource.substring("1.".length());
100
- }
101
- } else {
+ if (javaSource == null) {
102
javaSource = discoverJavaSource();
103
+ if (javaSource.startsWith("1.")) {
+ javaSource = javaSource.substring("1.".length());
+ }
104
getLog().debug("javaSource=" + javaSource);
105
parameters.setProperty(ModelloParameterConstants.OUTPUT_JAVA_SOURCE, javaSource);
106
0 commit comments