maven実行するとeclipse:cleanで設定ファイルが削除される
mvn -f newpom.xml eclipse:clean eclipse:eclipse -DdownloadSource=true clean
削除というか初期化される。
コマンドの実行結果
[INFO] ------------------------------------------------------------------------ [INFO] Building project [INFO] task-segment: [eclipse:clean, eclipse:eclipse, clean] [INFO] ------------------------------------------------------------------------ [INFO] [eclipse:clean] [INFO] Deleting file: .project [INFO] Deleting file: .classpath [INFO] Deleting file: .wtpmodules [INFO] Deleting file: .component [INFO] Deleting file: org.eclipse.wst.common.component [INFO] Deleting file: org.eclipse.wst.common.project.facet.core.xml [INFO] Deleting file: org.eclipse.jdt.core.prefs [INFO] Deleting file: org.eclipse.ajdt.ui.prefs [INFO] Preparing eclipse:eclipse [INFO] No goals needed for project - skipping [INFO] [eclipse:eclipse] [INFO] Using Eclipse Workspace: C:\test\workspace [INFO] Adding default classpath container: org.eclipse.jdt.launching.JRE_CONTAIN ER [INFO] Wrote settings to C:\test\workspace\project\.settings\org.eclipse.jdt.core .prefs [INFO] Wrote Eclipse project for "project" to C:\test\workspace\project. [INFO] Sources for some artifacts are not available. Please run the same goal with the -DdownloadSources=true parameter in ord er to check remote repositories for sources. List of artifacts without a source archive: o commons-logging:commons-logging:1.1.1 ・・・(略) ・・ Javadoc for some artifacts is not available. Please run the same goal with the -DdownloadJavadocs=true parameter in or der to check remote repositories for javadoc. List of artifacts without a javadoc archive: ・・・(略) ・・ o taglibs:standard:1.1.2 [INFO] [clean:clean] [INFO] Deleting directory C:\test\workspace\project\target [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESSFUL [INFO] ------------------------------------------------------------------------ [INFO] Total time: 27 seconds [INFO] Finished at: Mon Oct 19 00:44:41 JST 2009 [INFO] Final Memory: 12M/22M [INFO] ------------------------------------------------------------------------
実行ログの Deletingというのを見れば
[INFO] Deleting file: .project [INFO] Deleting file: .classpath [INFO] Deleting file: .wtpmodules [INFO] Deleting file: .component [INFO] Deleting file: org.eclipse.wst.common.component [INFO] Deleting file: org.eclipse.wst.common.project.facet.core.xml [INFO] Deleting file: org.eclipse.jdt.core.prefs [INFO] Deleting file: org.eclipse.ajdt.ui.prefs
プロジェクトの設定、classpath(javaのビルドパス)、eclipseプラグインのWTPの設定、など一度クリーン(clean、削除)される。
エラーが発生したりすると途中で止まるので削除された状態のままとなる。