gpt4 book ai didi

eclipse - 如何在Eclipse/SpringSource Tool Suite中更改源文件夹的顺序

转载 作者:行者123 更新时间:2023-12-03 21:02:14 24 4
gpt4 key购买 nike

我正在使用SpringSource Tool Suite进行Java Maven项目。我有标准的Maven目录结构

src
-> main
-> java
-> resources
-> test
-> java
-> resources


该结构在.pom文件中定义:

<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首先在测试分支中显示源文件夹,然后在主分支中显示源文件夹。所以我得到这样的东西:

src/test/java
src/test/resources
src/main/java
src/main/resources


但是,我想首先从主分支获取文件夹。关于如何改变这一点的任何想法?

最佳答案

尝试Maven -> Update Project Configuration

关于eclipse - 如何在Eclipse/SpringSource Tool Suite中更改源文件夹的顺序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10223589/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com