You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 :
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?
The text was updated successfully, but these errors were encountered:
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.
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 :
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?
The text was updated successfully, but these errors were encountered: