軟件是對(duì)質(zhì)量的不懈追求

          2010年10月15日 #

          linux du 查看文件夾占用空間


          du -sh *

          posted @ 2011-04-15 08:39 BlakeSu 閱讀(286) | 評(píng)論 (0)編輯 收藏

          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 @ 2011-02-24 13:03 BlakeSu 閱讀(335) | 評(píng)論 (0)編輯 收藏

          eclipse 終于有了列編輯功能

          eclipse 3.5之后終于有了列編輯,快捷鍵是alt+shift+a,再次按此快捷鍵返回常規(guī)編輯狀態(tài)。


          posted @ 2010-10-15 11:33 BlakeSu 閱讀(1491) | 評(píng)論 (0)編輯 收藏

          主站蜘蛛池模板: 石台县| 通辽市| 朝阳县| 南宁市| 明溪县| 夹江县| 舟曲县| 武夷山市| 垫江县| 正镶白旗| 濉溪县| 夹江县| 开江县| 洛扎县| 措勤县| 汕尾市| 定结县| 慈利县| 长垣县| 左云县| 肃宁县| 泽库县| 仁布县| 贵溪市| 云林县| 德钦县| 泰顺县| 山丹县| 将乐县| 潞西市| 营口市| 淮南市| 海口市| 和田市| 平阳县| 宜黄县| 福安市| 安仁县| 电白县| 福泉市| 噶尔县|