2021年10月6日 星期三

Add Maven dependencies to Eclipse Deployment Assembly

image

在Eclipes Project 中,加入<attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>

image

 

手動使用這個方法在執行Maven-update project 之後,該項設定會消失。可以透過Eclipse 的設定來處理:

 

image

image

image

image

 

在Java Build Path->Order and Export 勾選 Maven Dependencies

image

如此再執行Maven Update Project,Deployment Assembly關於Maven Dependency設定還是會不見。但另外新增一個專案,將.classpath、.project copy 至此專案,則看似正常,所以還在確認解決方法。

Ads

Seo Services