- 浏览: 269747 次
- 性别:
- 来自: 天津
文章分类
- 全部博客 (183)
- oracle (4)
- informix (1)
- web开发 (6)
- java (49)
- hibernate (1)
- hadoop (1)
- spring (23)
- 非技术 (8)
- ibatis2 (5)
- Linux (6)
- tomcat (14)
- nginx (7)
- dubbo (3)
- myibatis (7)
- webservice 开发 (2)
- mysql (2)
- svn (2)
- redis (7)
- 分布式技术 (17)
- zookeeper (2)
- kafka (2)
- velocity (1)
- maven (7)
- js (1)
- freemarker (1)
- Thymeleaf (3)
- 代码审计 (1)
- ibatis3 (1)
- rabbitmq (1)
最新评论
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.tms</groupId>
<artifactId>tms</artifactId>
<version>0.0.1</version>
<packaging>jar</packaging>
<name>tms</name>
<description>Demo project for Spring Boot</description>
<!--<url>http://192.168.6.171:8081/nexus/content/groups/public/</url>-->
<repositories>
<repository>
<id>jboss</id>
<name>JBoss Repository</name>
<url>http://repository.jboss.com/maven2/</url>
</repository>
<!-- <repository>
<id>boce</id>
<name>boce Repository</name>
<url>http://192.168.102.30:8081/nexus/content/groups/public/</url>
</repository>
<repository>
<id>myboce</id>
<name>myboce Repository</name>
<url>http://192.168.102.30:8081/nexus/content/repositories/thirdparty/</url>
</repository>-->
</repositories>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>1.5.6.RELEASE</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<java.version>1.7</java.version>
<thymeleaf.version>3.0.7.RELEASE</thymeleaf.version>
<thymeleaf-layout-dialect.version>2.2.2</thymeleaf-layout-dialect.version>
<checkstyle.config.location>checkstyle.xml</checkstyle.config.location>
</properties>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-aop</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-thymeleaf</artifactId>
<exclusions>
<exclusion>
<artifactId>jackson-databind</artifactId>
<groupId>com.fasterxml.jackson.core</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>com.github.pagehelper</groupId>
<artifactId>pagehelper-spring-boot-starter</artifactId>
<version>1.1.1</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-redis</artifactId>
</dependency>
<dependency><!-- oracle数据库 -->
<groupId>oracle.ojdbc6</groupId>
<artifactId>ojdbc6</artifactId>
<version>11.1.1</version>
<!--<version>11.2.0.4.0</version>-->
</dependency>
<dependency><!-- alibaba数据库连接池 -->
<groupId>com.alibaba</groupId>
<artifactId>druid</artifactId>
<version>1.0.31</version>
</dependency>
<dependency>
<groupId>com.github.penggle</groupId>
<artifactId>kaptcha</artifactId>
<version>2.3.2</version>
</dependency>
<dependency>
<groupId>com.github.tobato</groupId>
<artifactId>fastdfs-client</artifactId>
<version>1.25.4-RELEASE</version>
</dependency>
<!--支持热部署-->
<dependency>
<groupId>org.springframework</groupId>
<artifactId>springloaded</artifactId>
<version>1.2.5.RELEASE</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-annotations</artifactId>
<version>2.9.0</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-core</artifactId>
<version>2.9.0</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<version>2.9.0</version>
<exclusions>
<exclusion>
<artifactId>jackson-annotations</artifactId>
<groupId>com.fasterxml.jackson.core</groupId>
</exclusion>
<exclusion>
<artifactId>jackson-core</artifactId>
<groupId>com.fasterxml.jackson.core</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.springframework.session</groupId>
<artifactId>spring-session</artifactId>
</dependency>
<dependency>
<groupId>com.aliyun.mns</groupId>
<artifactId>aliyun-sdk-mns</artifactId>
<version>1.1.8</version>
<exclusions>
<exclusion>
<artifactId>commons-lang3</artifactId>
<groupId>org.apache.commons</groupId>
</exclusion>
</exclusions>
</dependency>
<!-- <dependency>
<groupId>com.github.ulisesbocchio</groupId>
<artifactId>jasypt-spring-boot</artifactId>
<version>1.14</version>
</dependency>-->
<!-- <dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
<exclusions>
<exclusion>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-tomcat</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-jetty</artifactId>
</dependency>
<dependency>
<groupId>org.apache.tomcat</groupId>
<artifactId>tomcat-util</artifactId>
<version>8.5.23</version>
</dependency>-->
<!-- 远程发布jar,war
<dependency>
<groupId>org.codehaus.mojo</groupId>
<artifactId>wagon-maven-plugin</artifactId>
<version>1.0</version>
</dependency> -->
</dependencies>
<build>
<!-- 远程发布jar,war -->
<finalName>tms</finalName>
<extensions>
<extension>
<groupId>org.apache.maven.wagon</groupId>
<artifactId>wagon-ssh</artifactId>
<version>2.10</version>
</extension>
</extensions>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>wagon-maven-plugin</artifactId>
<version>1.0</version>
<configuration>
<serverId>webserver</serverId>
<!-- 需要部署的文件 -->
<fromFile>target/tms.jar</fromFile>
<!-- 部署目录 -->
<url>scp://root:bocetest123@192.168.6.24/opt/springboot
</url>
<commands>
<!-- 关闭tomcat -->
<command>sh /opt/springboot/stop.sh</command>
<!-- 删除之前解压后的目录
<command>rm -rf /opt/springboot/tms-0.0.1.jar
</command>-->
<command>cp /opt/springboot/tms.jar /opt/springboot/tms.jar_bak</command>
<!-- 启动tomcat -->
<command>sh /opt/springboot/start.sh</command>
</commands>
<displayCommandOutputs>true</displayCommandOutputs>
</configuration>
</plugin>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<version>1.3.3.RELEASE</version>
<configuration>
<mainClass>com.tms.TmsApplication</mainClass>
</configuration>
<executions>
<execution>
<goals>
<goal>repackage</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>2.4</version>
<configuration>
<excludes>
<exclude>**/application-prod.properties</exclude>
</excludes>
</configuration>
</plugin>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.7</source>
<target>1.7</target>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>findbugs-maven-plugin</artifactId>
<version>3.0.4</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.18.1</version>
<configuration>
<skipTests>true</skipTests>
</configuration>
</plugin>
<plugin>
<!--Mybatis-generator插件,用于自动生成Mapper和POJO-->
<groupId>org.mybatis.generator</groupId>
<artifactId>mybatis-generator-maven-plugin</artifactId>
<version>1.3.2</version>
<configuration>
<!--配置文件的位置-->
<configurationFile>maven_myibatis/mybatis-generator-config.xml</configurationFile>
<verbose>true</verbose>
<overwrite>true</overwrite>
</configuration>
<executions>
<execution>
<id>Generate MyBatis Artifacts</id>
<goals>
<goal>generate</goal>
</goals>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>org.mybatis.generator</groupId>
<artifactId>mybatis-generator-core</artifactId>
<version>1.3.2</version>
</dependency>
</dependencies>
</plugin>
</plugins>
</build>
</project>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.tms</groupId>
<artifactId>tms</artifactId>
<version>0.0.1</version>
<packaging>jar</packaging>
<name>tms</name>
<description>Demo project for Spring Boot</description>
<!--<url>http://192.168.6.171:8081/nexus/content/groups/public/</url>-->
<repositories>
<repository>
<id>jboss</id>
<name>JBoss Repository</name>
<url>http://repository.jboss.com/maven2/</url>
</repository>
<!-- <repository>
<id>boce</id>
<name>boce Repository</name>
<url>http://192.168.102.30:8081/nexus/content/groups/public/</url>
</repository>
<repository>
<id>myboce</id>
<name>myboce Repository</name>
<url>http://192.168.102.30:8081/nexus/content/repositories/thirdparty/</url>
</repository>-->
</repositories>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>1.5.6.RELEASE</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<java.version>1.7</java.version>
<thymeleaf.version>3.0.7.RELEASE</thymeleaf.version>
<thymeleaf-layout-dialect.version>2.2.2</thymeleaf-layout-dialect.version>
<checkstyle.config.location>checkstyle.xml</checkstyle.config.location>
</properties>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-aop</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-thymeleaf</artifactId>
<exclusions>
<exclusion>
<artifactId>jackson-databind</artifactId>
<groupId>com.fasterxml.jackson.core</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>com.github.pagehelper</groupId>
<artifactId>pagehelper-spring-boot-starter</artifactId>
<version>1.1.1</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-redis</artifactId>
</dependency>
<dependency><!-- oracle数据库 -->
<groupId>oracle.ojdbc6</groupId>
<artifactId>ojdbc6</artifactId>
<version>11.1.1</version>
<!--<version>11.2.0.4.0</version>-->
</dependency>
<dependency><!-- alibaba数据库连接池 -->
<groupId>com.alibaba</groupId>
<artifactId>druid</artifactId>
<version>1.0.31</version>
</dependency>
<dependency>
<groupId>com.github.penggle</groupId>
<artifactId>kaptcha</artifactId>
<version>2.3.2</version>
</dependency>
<dependency>
<groupId>com.github.tobato</groupId>
<artifactId>fastdfs-client</artifactId>
<version>1.25.4-RELEASE</version>
</dependency>
<!--支持热部署-->
<dependency>
<groupId>org.springframework</groupId>
<artifactId>springloaded</artifactId>
<version>1.2.5.RELEASE</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-annotations</artifactId>
<version>2.9.0</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-core</artifactId>
<version>2.9.0</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<version>2.9.0</version>
<exclusions>
<exclusion>
<artifactId>jackson-annotations</artifactId>
<groupId>com.fasterxml.jackson.core</groupId>
</exclusion>
<exclusion>
<artifactId>jackson-core</artifactId>
<groupId>com.fasterxml.jackson.core</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.springframework.session</groupId>
<artifactId>spring-session</artifactId>
</dependency>
<dependency>
<groupId>com.aliyun.mns</groupId>
<artifactId>aliyun-sdk-mns</artifactId>
<version>1.1.8</version>
<exclusions>
<exclusion>
<artifactId>commons-lang3</artifactId>
<groupId>org.apache.commons</groupId>
</exclusion>
</exclusions>
</dependency>
<!-- <dependency>
<groupId>com.github.ulisesbocchio</groupId>
<artifactId>jasypt-spring-boot</artifactId>
<version>1.14</version>
</dependency>-->
<!-- <dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
<exclusions>
<exclusion>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-tomcat</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-jetty</artifactId>
</dependency>
<dependency>
<groupId>org.apache.tomcat</groupId>
<artifactId>tomcat-util</artifactId>
<version>8.5.23</version>
</dependency>-->
<!-- 远程发布jar,war
<dependency>
<groupId>org.codehaus.mojo</groupId>
<artifactId>wagon-maven-plugin</artifactId>
<version>1.0</version>
</dependency> -->
</dependencies>
<build>
<!-- 远程发布jar,war -->
<finalName>tms</finalName>
<extensions>
<extension>
<groupId>org.apache.maven.wagon</groupId>
<artifactId>wagon-ssh</artifactId>
<version>2.10</version>
</extension>
</extensions>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>wagon-maven-plugin</artifactId>
<version>1.0</version>
<configuration>
<serverId>webserver</serverId>
<!-- 需要部署的文件 -->
<fromFile>target/tms.jar</fromFile>
<!-- 部署目录 -->
<url>scp://root:bocetest123@192.168.6.24/opt/springboot
</url>
<commands>
<!-- 关闭tomcat -->
<command>sh /opt/springboot/stop.sh</command>
<!-- 删除之前解压后的目录
<command>rm -rf /opt/springboot/tms-0.0.1.jar
</command>-->
<command>cp /opt/springboot/tms.jar /opt/springboot/tms.jar_bak</command>
<!-- 启动tomcat -->
<command>sh /opt/springboot/start.sh</command>
</commands>
<displayCommandOutputs>true</displayCommandOutputs>
</configuration>
</plugin>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<version>1.3.3.RELEASE</version>
<configuration>
<mainClass>com.tms.TmsApplication</mainClass>
</configuration>
<executions>
<execution>
<goals>
<goal>repackage</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>2.4</version>
<configuration>
<excludes>
<exclude>**/application-prod.properties</exclude>
</excludes>
</configuration>
</plugin>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.7</source>
<target>1.7</target>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>findbugs-maven-plugin</artifactId>
<version>3.0.4</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.18.1</version>
<configuration>
<skipTests>true</skipTests>
</configuration>
</plugin>
<plugin>
<!--Mybatis-generator插件,用于自动生成Mapper和POJO-->
<groupId>org.mybatis.generator</groupId>
<artifactId>mybatis-generator-maven-plugin</artifactId>
<version>1.3.2</version>
<configuration>
<!--配置文件的位置-->
<configurationFile>maven_myibatis/mybatis-generator-config.xml</configurationFile>
<verbose>true</verbose>
<overwrite>true</overwrite>
</configuration>
<executions>
<execution>
<id>Generate MyBatis Artifacts</id>
<goals>
<goal>generate</goal>
</goals>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>org.mybatis.generator</groupId>
<artifactId>mybatis-generator-core</artifactId>
<version>1.3.2</version>
</dependency>
</dependencies>
</plugin>
</plugins>
</build>
</project>
发表评论
-
maven根据不同环境打不同的war
2018-06-27 18:47 957<project xmlns="http:// ... -
maven 内置变量
2017-11-03 14:42 691Maven共有6类属性: 内置属性(Maven预定义,用户可以 ... -
gradle基本配置
2017-11-03 10:50 845group 'com.cloudboce' apply pl ... -
wagon-maven-plugin 实现远程部署
2017-10-31 15:53 14761.添加wagon-maven-plugin ... -
maven 远程发布系统到tomcat7
2017-08-24 16:37 5931. 修改Tomcat7的tomcat-users.xml ... -
eclipse 中maven 加入本地jar文件
2017-05-16 15:02 14061.在项目上单击右键-》新建文件夹(如:lib) 2.在pom ...
相关推荐
本文将详细介绍Maven中的常用插件及其功能。 1. Maven Assembly Plugin Maven Assembly 插件允许开发者将项目的输出,包括依赖、模块、网站文档和其他文档集成到一个单一的文档中,以便于定制打包。这个插件支持...
Maven Common Plugin 是一组常用的 Maven 插件,提供了许多实用的功能。以下是 Maven Common Plugin 的一些插件: * SCP 文件传输插件:通过 copy-maven-plugin 实现的,该插件提供了对文件的传输功能,能够将文件...
** Maven仓库插件的常用目标 ** 1. `deploy`: 这个目标用于将最终的工件和相关的POM部署到远程仓库。 2. `install`: 它将项目工件和相关依赖安装到本地仓库,以便其他项目可以引用。 3. `deploy-file`: 该目标允许...
Maven-Helper 插件是 IntelliJ IDEA 中的一款功能强大且实用的插件,旨在帮助开发者更好地管理 Maven 项目的依赖关系。下面是 Maven-Helper 插件的主要知识点: 1. 依赖关系查看:Maven-Helper 插件提供了一个简洁...
通过以上步骤,你可以根据项目需求定制自己的Maven插件,增强Maven的灵活性和实用性。在实际开发中,自定义插件可以帮助解决特定场景下的问题,提高开发效率。对于熟悉Maven的开发者来说,掌握自定义插件的创建和...
### Maven Tomcat 插件详解 #### 一、引言 在现代软件开发过程中,持续集成与部署(CI/CD)已成为提升开发效率的关键技术之一。...此外,插件还支持多种部署选项,如热部署等,进一步增强了其灵活性和实用性。
** 常用 Maven 插件及其作用 ** - `maven-compiler-plugin`:负责编译源代码。 - `maven-resources-plugin`:处理资源文件,如复制到目标目录。 - `maven-surefire-plugin`:运行单元测试。 - `maven-jar-plugin`:...
【标题】"maven eclipse 离线插件"涉及的是在Eclipse集成开发环境中安装和使用Maven的离线插件,这对于那些网络环境不稳定或者需要在无互联网的环境中工作的开发者来说尤其重要。Maven是Java项目管理和综合工具,它...
9. **社区支持**:作为一款开源项目,maven helper拥有活跃的社区支持,持续更新和改进,确保了其功能的先进性和实用性。 10. **学习曲线**:尽管maven helper提供了众多高级特性,但其用户界面友好,新手也能很快...
在本文中,我们将深入探讨Maven的核心功能、常用插件以及如何配置和使用这些插件。 1. **Maven核心功能** Maven通过Project Object Model (POM)来描述项目,POM是一个XML文件,包含了项目的配置信息,如依赖、构建...
MyEclipse 6.5的Maven插件提供了一种离线安装的方式,这对于网络环境不稳定或者需要在无网络环境下工作的开发者来说非常实用。离线安装步骤如下: 1. **下载Maven插件**:首先,你需要访问MyEclipse的官方网站或者...
1.1. 参考配置 1.3. 版本范围规则 1.4. 扩展插件 2.1. 项目满足条件 2.2. 命令行运行 2.2.1. 更新全部子项目的版本号 2.2.2.
**m2maven:Maven管理插件详解** 在软件开发过程中,依赖管理和构建工具有着至关重要的作用,它们能够帮助开发者...无论是对新手还是经验丰富的开发者来说,m2maven都是一个非常实用的工具,值得在日常开发中使用。
这将显示一系列与Maven相关的插件,其中最常用的是"M2E - Maven Integration for Eclipse"。 4. **选择并安装M2E插件**:找到"M2E - Maven Integration for Eclipse"插件,点击“Install”按钮。阅读并接受许可证...
Maven是Java开发中广泛使用...总的来说,"maven离线插件"对于那些在网络受限的环境中工作的Java开发者来说,是一个非常实用的工具,它使得Maven的构建功能能在无网或低网速环境下正常运行,提高了开发的灵活性和效率。
它提供了多种实用功能,帮助开发者更高效地处理Maven依赖关系,排查冲突,以及更好地理解和操作POM.xml配置文件。以下将详细介绍该插件的主要功能和使用方法。 1. **依赖分析**:Maven Helper的核心功能之一是提供...
Maven Helper插件是IDEA中非常实用的插件,能大大提高开发效率。 Maven Helper插件的主要功能有: 1. 依赖项管理:提供了多种查看依赖项的方式,方便地管理依赖项。 2. 快速执行Maven命令:可以快速地编译、打包和...
Eclipse Maven离线插件是开发环境中非常实用的工具,特别是在网络环境不稳定或者速度较慢的情况下。Maven作为Java项目管理的重要框架,帮助开发者管理依赖、构建和部署项目。而Eclipse作为流行的Java IDE,其集成的...
离线安装Eclipse插件虽然比在线安装多几步,但对于没有网络环境或者网络不稳定的情况,这是非常实用的方法。正确安装和配置这些插件,能够大大提高开发人员的工作效率,使得他们在Eclipse中就可以无缝地进行Maven...