<output id="qn6qe"></output>

    1. <output id="qn6qe"><tt id="qn6qe"></tt></output>
    2. <strike id="qn6qe"></strike>

      亚洲 日本 欧洲 欧美 视频,日韩中文字幕有码av,一本一道av中文字幕无码,国产线播放免费人成视频播放,人妻少妇偷人无码视频,日夜啪啪一区二区三区,国产尤物精品自在拍视频首页,久热这里只有精品12

      mvn cli 搭建項(xiàng)目架構(gòu)

      創(chuàng)建如圖所示目錄結(jié)構(gòu)

      在system-parent創(chuàng)建如下目錄

      ├─system-dao

      ├─system-domain

      ├─system-service

      └─system-web

      創(chuàng)建system-parent

      mvn archetype:generate -DgroupId=com.hbb0b0 -DartifactId=system-parent -DarchetypeArtifactId=maven-archetype-quickstart -DinteractiveMode=false -DarchetypeCatalog=local

      pom.xml

      <?xml version="1.0" encoding="UTF-8"?>
      <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
        <modelVersion>4.0.0</modelVersion>
        <groupId>com.hbb0b0</groupId>
        <artifactId>system-parent</artifactId>
        <packaging>pom</packaging>
        <version>1.0-SNAPSHOT</version>
        <name>system-parent</name>
        <url>http://maven.apache.org</url>
        <dependencies>
          <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <version>3.8.1</version>
            <scope>test</scope>
          </dependency>
        </dependencies>
        <modules>
          <module>system-domain</module>
          <module>system-dao</module>
          <module>system-service</module>
          <module>system-web</module>
        </modules>
      </project>  
      

      說(shuō)明

      • system-parent 只需要 pom文件
      • 修改 jarpom
      • 其中 節(jié)點(diǎn)的內(nèi)容是子項(xiàng)目創(chuàng)建后自己加上去的,不用手工加

      創(chuàng)建子項(xiàng)目 system-domain

      mvn archetype:generate -DgroupId=com.hbb0b0 -DartifactId=system-domain -DarchetypeArtifactId=maven-archetype-quickstart -DinteractiveMode=false -DarchetypeCatalog=local

      pom.xml

      <?xml version="1.0"?>
      <project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
        <modelVersion>4.0.0</modelVersion>
        <parent>
          <groupId>com.hbb0b0</groupId>
          <artifactId>system-parent</artifactId>
          <version>1.0-SNAPSHOT</version>
        </parent>
        <artifactId>system-domain</artifactId>
        <name>system-domain</name>
        <packaging>jar</packaging>
        <url>http://maven.apache.org</url>
        <dependencies>
          <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <version>3.8.1</version>
            <scope>test</scope>
          </dependency>
        </dependencies>
      </project>
      

      說(shuō)明

      • 去掉子項(xiàng)目 ,去掉之后表示子項(xiàng)目的version,groupid 繼承自 system-parent pom
      • 添加 jar

      創(chuàng)建子項(xiàng)目 system-do

      mvn archetype:generate -DgroupId=com.hbb0b0 -DartifactId=system-dao -DarchetypeArtifactId=maven-archetype-quickstart -DinteractiveMode=false -DarchetypeCatalog=local

      pom.xml

      <?xml version="1.0"?>
      <project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
        <modelVersion>4.0.0</modelVersion>
        <parent>
          <groupId>com.hbb0b0</groupId>
          <artifactId>system-parent</artifactId>
          <version>1.0-SNAPSHOT</version>
        </parent>
        <artifactId>system-dao</artifactId>
        <packaging>jar</packaging>
        <name>system-dao</name>
        <url>http://maven.apache.org</url>
        <dependencies>
          <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <version>3.8.1</version>
            <scope>test</scope>
          </dependency>
      	<dependency>
            <groupId>com.hbb0b0</groupId>
            <artifactId>system-domain</artifactId>
            <version>${project.version}</version>
          </dependency>
        </dependencies>
      </project>
      

      說(shuō)明

      • 去掉子項(xiàng)目 ,去掉之后表示子項(xiàng)目的version,groupid 繼承自 system-parent pom
      • 添加 jar
      • system-dao 依賴(lài) system-domain ,所以dependency 添加 system-domain 依賴(lài)

      創(chuàng)建子項(xiàng)目 system-service

      mvn archetype:generate -DgroupId=com.hbb0b0 -DartifactId=system-service -DarchetypeArtifactId=maven-archetype-quickstart -DinteractiveMode=false -DarchetypeCatalog=local

      pom.xml

      <?xml version="1.0"?>
      <project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
        <modelVersion>4.0.0</modelVersion>
        <parent>
          <groupId>com.hbb0b0</groupId>
          <artifactId>system-parent</artifactId>
          <version>1.0-SNAPSHOT</version>
        </parent>
        <artifactId>system-service</artifactId>
        <name>system-service</name>
         <packaging>jar</packaging>
        <url>http://maven.apache.org</url>
        <dependencies>
          <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <version>3.8.1</version>
            <scope>test</scope>
          </dependency>
      	<dependency>
            <groupId>com.hbb0b0</groupId>
            <artifactId>system-dao</artifactId>
            <version>${project.version}</version>
          </dependency>
      	
        </dependencies>
      </project>
      
      

      說(shuō)明

      • 去掉子項(xiàng)目 ,去掉之后表示子項(xiàng)目的version,groupid 繼承自 system-parent pom
      • 添加 jar
      • service 直接依賴(lài) system-dao ,system-dao依賴(lài)system-domain,dependency 添加直接依賴(lài) system-dao ,不需要添加system-domain 的依賴(lài)

      創(chuàng)建子項(xiàng)目 system-web

      mvn archetype:generate -DgroupId=com.hbb0b0 -DartifactId=system-web -DarchetypeArtifactId=maven-archetype-webapp -DinteractiveMode=false -DarchetypeCatalog=local

      pom.xml

      
      <?xml version="1.0"?>
      <project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
        <modelVersion>4.0.0</modelVersion>
        <parent>
          <groupId>com.hbb0b0</groupId>
          <artifactId>system-parent</artifactId>
          <version>1.0-SNAPSHOT</version>
        </parent>
        <artifactId>system-web</artifactId>
        <packaging>war</packaging>
        <name>system-web Maven Webapp</name>
        <url>http://maven.apache.org</url>
        <dependencies>
          <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <version>3.8.1</version>
            <scope>test</scope>
          </dependency>
      	<dependency>
            <groupId>com.hbb0b0</groupId>
            <artifactId>system-service</artifactId>
            <version>${project.version}</version>
          </dependency>
        </dependencies>
        <build>
          <finalName>system-web</finalName>
      	<pluginManagement>
              <!--配置Jetty-->
              <plugins>
                 <plugin>
                  <groupId>org.mortbay.jetty</groupId>   
                   <artifactId>maven-jetty-plugin</artifactId>
                  </plugin>
               </plugins>
           </pluginManagement>
        </build>
      </project>
      

      說(shuō)明

      • 去掉子項(xiàng)目 ,去掉之后表示子項(xiàng)目的version,groupid 繼承自 system-parent pom
      • 添加 jar
      • 添加 system-service 依賴(lài)
      • 添加 jetty 插件 ,這樣做的目的,讓web項(xiàng)目直接在命令行運(yùn)行
        --修改 jsp文件 添加項(xiàng)目目錄結(jié)構(gòu)

      清理與編譯

      在 system-parent目錄運(yùn)行

      mvn clean install

      執(zhí)行成功之后 可以看到以下輸出

      [INFO] system-parent ...................................... SUCCESS [ 0.562 s]

      [INFO] system-domain ...................................... SUCCESS [ 3.638 s]

      [INFO] system-dao ......................................... SUCCESS [ 0.956 s]

      [INFO] system-service ..................................... SUCCESS [ 0.956 s]

      [INFO] system-web Maven Webapp ............................ SUCCESS [ 0.795 s]

      [INFO] ------------------------------------------------------------------------

      [INFO] BUILD SUCCESS

      [INFO] ------------------------------------------------------------------------

      [INFO] Total time: 7.078 s

      [INFO] Finished at: 2018-04-23T22:42:37+08:00

      [INFO] Final Memory: 20M/192M

      [INFO] ------------------------------------------------------------------------

      運(yùn)行web 項(xiàng)目

      mvn jetty:run

      運(yùn)行成功之后控制臺(tái)會(huì)輸出一下信息

      [INFO] jetty-6.1.26

      [INFO] No Transaction manager fo

      [INFO] Started SelectChannelConn

      [INFO] Started Jetty Server

      maven web project

      瀏覽器結(jié)果

      http://localhost:8080/system-web/

      ---system-dao

      ---system-domain

      ---system-service

      ---system-web

      posted @ 2018-04-23 22:52  b0b0  閱讀(333)  評(píng)論(0)    收藏  舉報(bào)
      主站蜘蛛池模板: 国产亚洲精品久久久久久青梅| 亚洲人妻精品一区二区| 色综合视频一区二区三区| 五月婷之久久综合丝袜美腿| 亚洲欧美电影在线一区二区| 黑人好猛厉害爽受不了好大撑| 欧洲精品色在线观看| 国产色无码精品视频免费| 成人国产乱对白在线观看| 亚洲av片在线免费观看| 久久国产精品二国产人妻| 十八禁午夜福利免费网站| 国产精品自在拍首页视频8| 宅男噜噜噜66在线观看| 粗壮挺进人妻水蜜桃成熟| 人妻无码∧V一区二区| 国产在线乱子伦一区二区| 精品国产乱码久久久久app下载| 最新国产精品拍自在线观看| 香蕉亚洲欧洲在线一区| 国产一区二区三区在线观看免费| 最新国产精品亚洲| 亚洲综合黄色的在线观看| 亚洲午夜性猛春交xxxx| 国产亚洲精品岁国产精品| 四虎国产精品永久在线国在线| 欧美精品一区二区三区中文字幕 | 日本电影一区二区三区| 国产一区二区三区小说| 成全高清在线播放电视剧 | 国产精品亚洲第一区在线| 四虎永久在线精品免费播放| 无码精品人妻一区二区三区中| 人妻系列无码专区69影院| 我国产码在线观看av哈哈哈网站| 国产欧洲欧洲久美女久久| 国产人妇三级视频在线观看| 免费观看的av在线播放| 狠狠综合久久综合88亚洲| 2021国产精品一卡2卡三卡4卡| 久久精品国产99亚洲精品|