zoukankan      html  css  js  c++  java
  • maven部署命令

    参考文档:http://blog.csdn.net/woshixuye/article/details/8133050

    http://www.blogjava.net/itvincent/archive/2011/07/13/354243.html

    maven部署源代码的插件配置(在pom.xml文件中)

    <build>
    <plugins>
    <!-- Source attach plugin -->
    <plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-source-plugin</artifactId>
    <version>2.2.1</version>
    <configuration>
    <attach>true</attach>
    </configuration>
    <executions>
    <execution>
    <phase>compile</phase>
    <!-- 在compile阶段中执行 -->
    <goals>
    <goal>jar</goal>
    </goals>
    </execution>
    </executions>
    </plugin>
    </plugins>
    </build>

    maven部署源代码和javadoc文件(在pom.xml文件中)

    <build>
    <plugins>
    <!-- Source attach plugin -->
    <plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-source-plugin</artifactId>
    <version>2.2.1</version>
    <configuration>
    <attach>true</attach>
    </configuration>
    <executions>
    <execution>
    <phase>compile</phase>
    <!-- 在compile阶段中执行 -->
    <goals>
    <goal>jar</goal>
    </goals>
    </execution>
    </executions>
    </plugin>
    <plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-javadoc-plugin</artifactId>
    <version>2.10.3</version>
    <configuration>
    <attach>true</attach>
    </configuration>
    <executions>
    <execution>
    <phase>package</phase>
    <!-- 在compile阶段中执行 -->
    <goals>
    <goal>jar</goal>
    </goals>
    </execution>
    </executions>
    </plugin>
    </plugins>
    </build>

  • 相关阅读:
    java的异常抛出和String类常用方法
    监控工具zabbix
    监控工具nagios
    监控工具cacti
    LB集群
    高可用集群(HA)配置
    vsftp虚拟用户登录配置详解
    Ubuntu中设置静态IP和DNS(转载)
    虚拟机克隆linux系统后需要做的网络设置
    CentOS 6.8编译安装httpd2.2.31+MySQL5.6.31+PHP5.3.27
  • 原文地址:https://www.cnblogs.com/usual2013blog/p/4045972.html
Copyright © 2011-2022 走看看