我的文件夾結構這樣Eclipse中,移動SRC輸出文件夾到WEB-INF/classes中
SampleWeb/
src/main/
java : All java classes <br/>
resources : All properties file etc<br/>
webapp : WEB-INF folder and other jsp pages
pom.xml
現在,默認Eclipse構建創建目標文件夾,然後將所有輸出文件複製到目標文件夾像
target/classes/
all .class files (of src folder)
all properties (of resource folder)
jsp files (of webapp folder, and ofcourse WEB-INF folder too)
所以我在尋找的是,如何使用eclipse構建動態地將所有.class文件移動到WEB-INF/classes文件夾。
你說「使用eclipse build」,但是你的項目佈局看起來是一個Maven項目。你確定你沒有使用m2e或Eclipse的其他Maven插件嗎? –
看起來這是一個maven版本。那麼,對於Maven,'target/classes /'是複製o/p類的默認位置。您可以使用後期構建操作(例如maven copy task)將其他位置的類移動到其他位置 – Arpit