zoukankan      html  css  js  c++  java
  • maven .assembly

    配置文件中 配置好Assemblyc插件.

    功能:打依赖jar包.

    java代码如下:

    1. <assembly  
    2.     xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0"  
    3.     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"  
    4.     xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0 http://maven.apache.org/xsd/assembly-1.1.0.xsd">  
    5.     <id>release</id>  
    6.     <formats>  
    7.         <format>zip</format>  
    8.     </formats>  
    9.     <fileSets>  
    10.         <fileSet>  
    11.             <directory>${project.basedir}\src\main\config</directory>  
    12.             <!-- 过滤 -->  
    13.             <excludes>  
    14.                 <exclude>*.xml</exclude>  
    15.             </excludes>  
    16.             <outputDirectory>\</outputDirectory>  
    17.         </fileSet>  
    18.     </fileSets>  
    19.       
    20.     <dependencySets>  
    21.         <dependencySet>  
    22.             <useProjectArtifact>true</useProjectArtifact>  
    23.             <outputDirectory>lib</outputDirectory><!-- 将scope为runtime的依赖包打包到lib目录下。 -->  
    24.             <scope>runtime</scope>  
    25.         </dependencySet>  
    26.     </dependencySets>  
    27. </assembly>  
  • 相关阅读:
    (C#)TreeView控件综合实例
    C#语言命名规则
    C#基础全接触
    (C#)GDI+简单绘图画矩形
    (C#)GDI+简单绘图画曲线
    C#拆箱与装箱之代码优化
    (C#)GDI+绘图之鼠标移动画图
    近期学习计划
    MS_SQL_杂记(一)
    别在迷恋正则表达式解析html了,好吗?
  • 原文地址:https://www.cnblogs.com/wayf/p/5970182.html
Copyright © 2011-2022 走看看