JSB*_*ach 6 java eclipse maven
我有一个Maven Java项目,我在其中添加了pom:
<build>
....
<plugin>
<!-- adding second test source directory (just for integration tests) -->
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<version>${plugin.build-helper-maven-plugin.version}</version>
<executions>
<execution>
<id>add-integration-test-source</id>
<phase>generate-test-sources</phase>
<goals>
<goal>add-test-source</goal>
</goals>
<configuration>
<sources>
<source>src/integration-test/java</source>
</sources>
</configuration>
</execution>
<execution>
<id>add-integration-test-resource</id>
<phase>generate-test-resources</phase>
<goals>
<goal>add-test-resource</goal>
</goals>
<configuration>
<resources>
<resource>
<directory>src/integration-test/resources</directory>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
</build>
Run Code Online (Sandbox Code Playgroud)
InteliJ将我在兼容测试下的java和资源文件夹识别为代码文件夹,但Eclipse没有.有没有办法在导入项目时将这些文件夹添加为代码文件夹?
尝试右键单击上下文菜单中Project Explorer
选择Build Path
选项中的文件夹,然后单击Use as Source Folder
选择后出现的菜单Build Path
。
归档时间: |
|
查看次数: |
607 次 |
最近记录: |