Skip to content

Commit 4e4db4c

Browse files
committed
[IDE] cannot import src/main/scala & src/test/scala into eclipse as source folder
When import the whole project into eclipse as maven project, found that the src/main/scala & src/test/scala can not be set as source folder as default behavior, so add a "add-source" goal in scala-maven-plugin to let this work.
1 parent bd0d6e0 commit 4e4db4c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

pom.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1096,6 +1096,12 @@
10961096
<artifactId>scala-maven-plugin</artifactId>
10971097
<version>3.2.0</version>
10981098
<executions>
1099+
<execution>
1100+
<id>eclipse-add-source</id>
1101+
<goals>
1102+
<goal>add-source</goal>
1103+
</goals>
1104+
</execution>
10991105
<execution>
11001106
<id>scala-compile-first</id>
11011107
<phase>process-resources</phase>

0 commit comments

Comments
 (0)