摘要: http://blog.csdn.net/cyuyan112233/article/details/50190927 http://beikeit.com/post-514.html 阅读全文
posted @ 2016-08-16 17:10 ζ  简单ヾ° 阅读(2901) 评论(0) 推荐(0) 编辑
摘要: D:\MongoDB\server\bin>mongo 2015-07-07T23:58:30.882+0800 I CONTROL Hotfix KB2731284 or later update is not installed, will zero-out data files MongoDB shell version: 3.0.4 connecting to: test > db.persion.insert({"name"="luojun","age"=20}); 2015-07-08T00:00:02.302+0800 E QUERY SyntaxError: Unexpected token = > db.Person.insert({"name":"feiazi","age":"22"}) WriteResult({ "nInserted" : 1 }) > db.Person.insert({"name":"helloword","age":"23"}) WriteResult({ "nInserted" : 1 }) > db.Pers 阅读全文
posted @ 2015-07-08 00:35 ζ  简单ヾ° 阅读(946) 评论(0) 推荐(0) 编辑
摘要: 如何创建一个动态工程? File----> New ---->other ---->Web ---->Dynamic Web Project 选择动态WEB 项目工程 WebContent/WEB-INF/classes 设置class文件存放路径 Generate web... 阅读全文
posted @ 2014-05-21 09:18 ζ  简单ヾ° 阅读(552) 评论(0) 推荐(0) 编辑
摘要: MyFilter Myfilter com.MyFilter Myfilter /* Test com.Test Test... 阅读全文
posted @ 2014-05-19 17:13 ζ  简单ヾ° 阅读(580) 评论(0) 推荐(0) 编辑
摘要: 二维数组的复习! 1找出整型数组 2改变数组元素值 3.删除数组中下标值是k的元素 阅读全文
posted @ 2014-04-02 21:49 ζ  简单ヾ° 阅读(1024) 评论(0) 推荐(0) 编辑
摘要: 封装一段sql代码,完成一种特定的功能,返回结果。 阅读全文
posted @ 2014-04-02 17:05 ζ  简单ヾ° 阅读(17333) 评论(3) 推荐(0) 编辑
摘要: Mysql 查询 多表查询 笛卡尔积原理 阅读全文
posted @ 2014-03-30 20:52 ζ  简单ヾ° 阅读(62787) 评论(1) 推荐(7) 编辑
摘要: 1 import java.io.File; 2 import java.io.IOException; 3 4 import javax.xml.parsers.ParserConfigurationException; 5 6 import org.dom4j.Document; 7 import org.dom4j.DocumentException; 8 import org.dom4j.Element; 9 import org.dom4j.io.SAXReader;10 import org.xml.sax.SAXException;11 12 public class Do... 阅读全文
posted @ 2013-12-30 11:27 ζ  简单ヾ° 阅读(2312) 评论(0) 推荐(0) 编辑

1. 在需要生成dist包的模块级别,新建文件夹xxx-xxxx-dist

2. 进入目录,新建pom.xml,建议copy

3. dependencies节点,把要编译成全局包的应用引入进来

<!-- 引入依赖模块 -->
<dependency> <groupId>xxx.xxx.xxxx</groupId> <artifactId>xxx-xxx-core</artifactId> <version>${project.version}</version> </dependency>

4. build节点设置文件名称

<finalName>xxx-core</finalName>

5. build->plugins节点新增如下插件

插件一:生成dist包

<!-- 生成xxx-core包 -->
<plugin>
   <groupId>org.apache.maven.plugins</groupId>
   <artifactId>maven-shade-plugin</artifactId>
   <version>1.4</version>
   <executions>
      <execution>
        <phase>package</phase>
        <goals>
            <goal>shade</goal>
        </goals>
        <configuration>
            <createSourcesJar>true</createSourcesJar>
            <promoteTransitiveDependencies>false</promoteTransitiveDependencies>
           <artifactSet>
            <includes>
                <include>xxx.xxx.xxx:xxx-core-*</include>
              </includes>
           </artifactSet>
       </configuration>
     </execution>
   </executions>
</plugin>

插件二:输出到指定目录

<!-- 输出到上级目录 -->
  <plugin>
   <artifactId>maven-antrun-plugin</artifactId>
   <executions>
    <execution>
    <phase>package</phase>
    <goals>
     <goal>run</goal>
    </goals>
    <configuration>
     <tasks>
      <copy file="${project.build.directory}/xxx-core.jar" tofile="${project.basedir}/../xxx-core.jar" overwrite="true" />
      <copy file="${project.build.directory}/xxx-core-javadoc.jar" tofile="${project.basedir}/../xxx-core-javadoc.zip" overwrite="true" />
     </tasks>
    </configuration>
    </execution>
   </executions>
  </plugin>

插件三:生成javadoc包

<!-- 生成javadoc包 -->
  <plugin>
   <artifactId>maven-javadoc-plugin</artifactId>
   <version>3.0.1</version>
   <executions>
    <execution>
   <id>attach-javadoc</id>
   <goals>
     <goal>jar</goal>
   </goals>
   <configuration>
     <doclint>none</doclint>
   </configuration>
    </execution>
   </executions>
   <configuration>
    <includeDependencySources>true</includeDependencySources>
    <dependencySourceIncludes>
        <dependencySourceInclude>xxx.xxx.xxx:xxx-core-*</dependencySourceInclude>
    </dependencySourceIncludes>
    <show>public</show>
    <charset>UTF-8</charset>
    <encoding>UTF-8</encoding>
    <docencoding>UTF-8</docencoding>
    <links>
    <link>http://docs.oracle.com/javase/7/docs/api</link>
    </links>
    <tags>
    <tag>
     <name>@author</name>
     <placement>a</placement>
     <head>作者</head>
    </tag>
    <tag>
     <name>@email</name>
     <placement>a</placement>
     <head>作者邮箱</head>
    </tag>
    <tag>
     <name>@date</name>
     <placement>a</placement>
     <head>创建时间</head>
    </tag>
    </tags>
   </configuration>
</plugin>

 

posted @ 2019-03-27 14:11 ζ  简单ヾ° 阅读(1312) 评论(0) 推荐(0) 编辑
摘要: 参考:http://jingyan.baidu.com/article/6dad507510ea07a123e36e95.html 阅读全文
posted @ 2016-08-16 18:02 ζ  简单ヾ° 阅读(903) 评论(0) 推荐(0) 编辑
摘要: java的时间计算方法,包含了日期转换和long转换到date 阅读全文
posted @ 2015-07-24 00:17 ζ  简单ヾ° 阅读(569) 评论(0) 推荐(0) 编辑
摘要: Insert title herec:out标签的使用可以获取request,session,application的值 parameter的值(得到不了): ---${attr_request} ---${attr_session} ---${attr_applicati... 阅读全文
posted @ 2014-05-19 17:34 ζ  简单ヾ° 阅读(2086) 评论(0) 推荐(0) 编辑
点击右上角即可分享
微信分享提示