tigerinus opened a new issue #3690:
URL: https://github.com/apache/netbeans/issues/3690
### Apache NetBeans version
Apache NetBeans 12.6
### What happened
I use `openapi-generator-maven-plugin` for generating classes based off a
provided `openapi.yaml` file. The corresponding java files are generated under
`target` folder instead of `src` folder since I don't want to commit any
auto-generated code.
This works fine with VSCode + Eclipse based Java extension, but not with
Apache Netbeans extension. Clearly it doesn't look into target folder for any
Java code.
### How to reproduce
`git clone https://github.com/tigerinus/invesla_backend.git`
Then load the project in vscode
### Did this work correctly in an earlier version?
No
### Operating System
Linux
### JDK
JDK8
### Apache NetBeans packaging
Apache VSNetBeans for VSCode
### Anything else
This is how `pom.xml` looks like for auto-generating java code:
```xml
<plugin>
<groupId>org.openapitools</groupId>
<artifactId>openapi-generator-maven-plugin</artifactId>
<version>5.3.0</version>
<executions>
<execution>
<id>1</id>
<goals>
<goal>generate</goal>
</goals>
<configuration>
<inputSpec>${project.basedir}/src/main/java/com/tensorsmart/invesla/controller/api/stocks.api.yaml</inputSpec>
<generatorName>spring</generatorName>
<configOptions>
<sourceFolder>src/gen/java/main</sourceFolder>
<interfaceOnly>true</interfaceOnly>
</configOptions>
</configuration>
</execution>
<execution>
<id>2</id>
<goals>
<goal>generate</goal>
</goals>
<configuration>
<inputSpec>${project.basedir}/src/main/java/com/tensorsmart/invesla/questrade/controller/api/token.api.yaml</inputSpec>
<generatorName>spring</generatorName>
<configOptions>
<sourceFolder>src/gen/java/main</sourceFolder>
<interfaceOnly>true</interfaceOnly>
</configOptions>
</configuration>
</execution>
</executions>
</plugin>
```
### Are you willing to submit a pull request?
No
### Code of Conduct
Yes
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists