Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't add custom folder into source path #411

Closed
weiker opened this issue Dec 10, 2020 · 2 comments
Closed

Can't add custom folder into source path #411

weiker opened this issue Dec 10, 2020 · 2 comments

Comments

@weiker
Copy link

weiker commented Dec 10, 2020

I hava some java file generated by maven thrfit plugin in target/generated-sources/thrift , these file haven't been add into java source path ,but strangly target/generated-sources/protobuf/java created by maven protobuf plugin was added .
I tried manualy add the path target/generated-sources/thrift by click the option "Add Folder to Java Source Path" in right-click menu ,it shows :
image
So I tried use build-helper-maven-plugin config like this:
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<version>1.8</version>
<executions>
<execution>
<id>add-source</id>
<phase>generate-sources</phase>
<goals>
<goal>add-source</goal>
</goals>
<configuration>
<sources>
<source>src/java/main</source>
<source>src/java/generated-sources</source>
</sources>
</configuration>
</execution>
</executions>
</plugin>
but it's still not work .
How can I add generated-sources folder into Java source path?

@jdneo
Copy link
Member

jdneo commented Dec 11, 2020

Please see: redhat-developer/vscode-java#177 (comment)

@no-response
Copy link

no-response bot commented Mar 23, 2021

This issue has been closed automatically because it needs more information and has not had recent activity. Please reach out if you have or find the answers we need so that we can investigate further.

@no-response no-response bot closed this as completed Mar 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants