<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    軟件是對質量的不懈追求

    Building Standalone Application with Maven2

    If you are building standalone application in Java, Maven is your friend when packing your application,
    There are two way to let Maven package your application, either as a single jar with all your dependencies jar.


     <plugin>
      <groupId>org.apache.maven.plugins</groupId>
      <artifactId>maven-assembly-plugin</artifactId>
      <configuration>
       <descriptorRefs>
        <descriptorRef>jar-with-dependencies</descriptorRef>
       </descriptorRefs>
      </configuration>
     </plugin>



    One advantage if you choose to do this way is if you need to sign your application jar.
    This is needed if you are building a Java Web Start client and you need more access than connecting back to the server.
    To read more about have Maven signing your jar read http://maven.apache.org/plugins/maven-jar-plugin/usage.html.
    But if you choose to go this way, make sure that all license agreement are shipped with your one single jar.

    Another way is to let Maven package your source code only and then referring the dependent jar file from the MANIFEST file.


     <plugin>
      <groupId>org.apache.maven.plugins</groupId>
      <artifactId>maven-jar-plugin</artifactId>
      <configuration>
       <archive>
        <manifest>
         <addClasspath>true</addClasspath>
         <mainClass>se.msc.adapter.Main</mainClass>
         <classpathPrefix>lib/</classpathPrefix>
        </manifest>
       </archive>
      </configuration>
     </plugin>

    posted on 2011-02-24 13:03 BlakeSu 閱讀(335) 評論(0)  編輯  收藏


    只有注冊用戶登錄后才能發表評論。


    網站導航:
     
    主站蜘蛛池模板: 本免费AV无码专区一区| 人妻18毛片a级毛片免费看| 91香蕉国产线观看免费全集| 日日噜噜噜噜夜夜爽亚洲精品| 男性gay黄免费网站| 亚洲?V无码乱码国产精品 | 免费国产高清视频| 亚洲av成人一区二区三区观看在线| 无码免费午夜福利片在线 | 亚洲精品福利网站| AV无码免费永久在线观看| 亚洲fuli在线观看| 日本大片在线看黄a∨免费| 美女裸体无遮挡免费视频网站| 在线不卡免费视频| 精品亚洲成a人在线观看| 在线a亚洲v天堂网2018| 久久国产精品免费| 久久亚洲精品无码AV红樱桃| 91网站免费观看| 亚洲丶国产丶欧美一区二区三区| 四虎永久免费地址在线观看| 一级毛片免费在线| 久久精品国产亚洲av四虎| 亚洲AV色吊丝无码| 色吊丝最新永久免费观看网站 | 亚洲国产AV无码一区二区三区| 免费大香伊蕉在人线国产| 国产免费高清69式视频在线观看 | 看免费毛片天天看| 亚洲人成77777在线播放网站| 99爱免费观看视频在线| 亚洲字幕AV一区二区三区四区| 亚洲高清无码专区视频| 日本xxxx色视频在线观看免费| 国内精品久久久久影院亚洲| 久久精品国产亚洲7777| 91免费播放人人爽人人快乐| 全部在线播放免费毛片| 亚洲黑人嫩小videos| 无码不卡亚洲成?人片|