Skip to content
Permalink
Browse files
[GERONIMO-6787] ensure mojo generates openapi.json in META-INF/resources
  • Loading branch information
rmannibucau committed Oct 22, 2020
1 parent fd34632 commit 5b69ada4b0b2580f4263c688c7ab837dff536aaa
Showing 2 changed files with 3 additions and 3 deletions.
@@ -1,8 +1,8 @@
import java.io.*;

File generated = new File( basedir, "target/classes/META-INF/classes/openapi.json" );
File generated = new File( basedir, "target/classes/META-INF/resources/openapi.json" );

if ( !generated.isFile() )
{
throw new FileNotFoundException( "Could not find generated OpenAPI definition: " + file );
}
}
@@ -67,7 +67,7 @@ public class OpenAPIMojo extends AbstractMojo {
@Parameter(property = "geronimo-openapi.prettify", defaultValue = "true")
protected boolean prettify;

@Parameter(property = "geronimo-openapi.output", defaultValue = "${project.build.outputDirectory}/META-INF/classes/openapi.json")
@Parameter(property = "geronimo-openapi.output", defaultValue = "${project.build.outputDirectory}/META-INF/resources/openapi.json")
protected File output;

@Parameter(property = "geronimo-openapi.encoding", defaultValue = "UTF-8")

0 comments on commit 5b69ada

Please sign in to comment.