Hello again. I'm attempting to add "swagger-codegen-maven-plugin" to pull in some automated code generation for an API I need to consume. While the code compiles correctly, I'm struggling with how to access that code from within the WAR java file.
My package files are following the standard project layout in /src/main/java/com/comcast/nco/MyService then MyCallListener.java etc.
The generated files based on the maven config go in /target/generated-sources/src/gen/java/main/io/swagger/, etc.
How can I access these files from within my Listener code?
This is the plug in code that was added to the WAR pom.xml--
<plugin>
<groupId>io.swagger</groupId>
<artifactId>swagger-codegen-maven-plugin</artifactId>
<version>2.3.1</version>
<executions>
<execution>
<goals>
<goal>generate</goal>
</goals>
<configuration>
<inputSpec>myurl</inputSpec>
<language>java</language>
<generateModels>true</generateModels>
<generateApis>false</generateApis>
<generateApiDocumentation>false</generateApiDocumentation>
<generateSupportingFiles>false</generateSupportingFiles>
<configOptions>
<sourceFolder>src/gen/java/main</sourceFolder>
<java8>true</java8>
<dateLibrary>java8-localdatetime</dateLibrary>
<library>jersey1</library>
</configOptions>
</configuration>
</execution>
</executions>
</plugin>