我正在使用名爲Windchill的工具。我已經準備好通過xml文件加載一些屬性。要加載這些xml文件,我使用以下命令。如何在MAVEN中使用pom.xml運行LoadFromFile命令?
對於如:西北偏西wt.load.LoadFromFile -d C:\ PTC \ Windchill_10.1 \的Windchill \ loadFiles \ PDMLink的\ ITC \屬性\ Attributes.xml -u wcadmin -p wcadmin
喜歡我有大約100個命令可以在windchill命令提示符下手動運行。所以我基本上希望通過使用MAVEN順序執行這些命令來自動執行這個過程,而無需任何手動工作。
有沒有什麼辦法可以部署這個版本。請幫忙。
謝謝。
謝謝!我會研究它 – galme
我準備了上述格式的pom.xml,並且我正在執行命令提示符下面的命令:mvn exec:exec -Dexec.executable =「windchill」[-Dexec.workingdir =「C:\ mvn \ test「] -Dexec.args =」wt.load.LoadFromFile -d「C:/ptc/Windchill_10.1/Windchill/loadFiles/pdmlink/itc/attributes/Attributes.xml」。 – galme
但是我收到錯誤爲: [錯誤]在當前項目 和插件組[org.apache.maven.plugins,org.codehaus.mojo]可用 e中找不到前綴'[-Dexec.workingdir = C'存儲庫[本地(C:\ Users \ Administrator \ .m2 \ repository),中央 (http://repo.maven.apache.org/maven2)] – galme