如何在Eclipse/SpringSource Tool Suite中更改源文件夹的顺序 [英] How to change order of source folders in Eclipse / SpringSource Tool Suite
本文介绍了如何在Eclipse/SpringSource Tool Suite中更改源文件夹的顺序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用SpringSource Tool Suite进行Java Maven项目.我有标准的Maven目录结构
I am working on a Java Maven project using the SpringSource Tool Suite. I have the standard Maven directory structure
src
-> main
-> java
-> resources
-> test
-> java
-> resources
该结构在.pom文件中定义:
The structure is defined in the .pom file:
<build>
<resources>
<resource>
<directory>src/main/java</directory>
<includes>
<include>**</include>
</includes>
<excludes>
<exclude>**/*.java</exclude>
</excludes>
</resource>
<resource>
<directory>src/main/resources</directory>
</resource>
</resources>
<testResources>
<testResource>
<directory>src/test/java</directory>
<includes>
<include>**</include>
</includes>
<excludes>
<exclude>**/*.java</exclude>
</excludes>
</testResource>
<testResource>
<directory>src/test/resources</directory>
</testResource>
</testResources>
</build>
STS首先在测试分支中显示源文件夹,然后在主分支中显示源文件夹.所以我得到这样的东西:
STS displays the source folders in the test branch first and then the source folders from the main branch. So I get something like this:
src/test/java
src/test/resources
src/main/java
src/main/resources
但是,我想首先从主分支获取文件夹.有关如何更改此设置的任何想法?
However, I would like to have the folders from the main branch first. Any ideas on how to change this?
推荐答案
尝试Maven -> Update Project Configuration
.
这篇关于如何在Eclipse/SpringSource Tool Suite中更改源文件夹的顺序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文