maven 單獨構建多模塊項目中的單個模塊


maven 單獨構建多模塊項目中的單個模塊, maven選項說明

-pl, --projects
        Build specified reactor projects instead of all projects
-am, --also-make
        If project list is specified, also build projects required by the list
-amd, --also-make-dependents
        If project list is specified, also build projects that depend on projects on the list

單獨構建ielong-wx

$ mvn install -pl ielong-wx -am

單獨構建ielong-common及依賴ielong-common的模塊

$ mvn install -pl ielong-common -am -amd

如何跳過測試

mvn clean package -Pvue -Dmaven.test.skip=true

如何獲取當前的profile

@Autowired
private Environment environment;

String profile = environment.getProperty("spring.profiles.active");

if(GlobalConst.PROFILE_PRD.equals(profile)){
}
else {
}

hosts,DNS如何配置

  • hosts: /etc/hosts
  • DNS: /etc/resolv.conf

參考文檔


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM