容器启动dubbo 的maven配置
来源:互联网 发布:尼尔机械纪元优化补丁 编辑:程序博客网 时间:2024/05/12 05:18
命令
cd c:xxx\xxxmvn instatlljava -jar xxxx.jar
配置文件
<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/maven-v4_0_0.xsd"><modelVersion>4.0.0</modelVersion><groupId>com.hp.wandafilm</groupId><artifactId>hp-wd-cts</artifactId><version>0.0.1-SNAPSHOT</version><packaging>jar</packaging> <name>com-hp-service-cts</name><url>http://maven.apache.org</url><properties><project.build.sourceEncoding>UTF-8</project.build.sourceEncoding><org.springframework.version>3.2.4.RELEASE</org.springframework.version><log4j.leve>debug</log4j.leve><log4j.ale>debug</log4j.ale></properties><build><finalName>com-hp-service-cts</finalName><plugins> <plugin><groupId>org.apache.maven.plugins</groupId><artifactId>maven-compiler-plugin</artifactId><version>2.3.2</version><configuration><compilerArguments><encoding>UTF-8</encoding></compilerArguments> </configuration></plugin><!-- 配置dubbo打包成jar包插件 --> <plugin><groupId>org.apache.maven.plugins</groupId><artifactId>maven-jar-plugin</artifactId><configuration><classesDirectory>target/classes/</classesDirectory><archive><manifest><mainClass>com.alibaba.dubbo.container.Main</mainClass><!-- 打包时MANIFEST.MF文件不记录的时间措版本 --><useUniqueVersions>false</useUniqueVersions><addClasspath>true</addClasspath><classpathPrefix>lib/</classpathPrefix></manifest><manifestEntries><Class-Path>.</Class-Path></manifestEntries></archive></configuration></plugin> <plugin><groupId>org.apache.maven.plugins</groupId><artifactId>maven-dependency-plugin</artifactId><executions><execution><id>copy-dependencies</id><phase>package</phase><goals><goal>copy-dependencies</goal></goals><configuration><type>jar</type><includeTypes>jar</includeTypes><useUniqueVersions>false</useUniqueVersions><outputDirectory>${project.build.directory}/lib</outputDirectory></configuration></execution></executions></plugin> <!-- release插件 --><plugin><groupId>org.apache.maven.plugins</groupId><artifactId>maven-release-plugin</artifactId><configuration><!-- 设置分支跟里程碑的url --><branchBase>http://yyyyy:8000/svn/newedge/branch</branchBase><tagBase>http://yyyyy:8000/svn/newedge/tag</tagBase></configuration></plugin></plugins><resources><resource><targetPath>${project.build.directory}/classes</targetPath><directory>src/main/resources</directory><filtering>true</filtering><includes><include>**/*.xml</include><include>**/*.properties</include></includes></resource><!-- 结合com.alibaba.dubbo.container.Main 启动的spring xml applicationContext-config.xml 引用时<import resource="classpath*:spring-mybatis.xml" /> --><resource><targetPath>${project.build.directory}/classes/META-INF/spring</targetPath><directory>src/main/resources</directory><filtering>true</filtering><includes><include>applicationContext-config.xml</include></includes></resource></resources> <pluginManagement><plugins><!-- 解决Maven插件在Eclipse内执行了一系列的生命周期引起冲突 --><plugin><groupId>org.eclipse.m2e</groupId><artifactId>lifecycle-mapping</artifactId><version>1.0.0</version><configuration><lifecycleMappingMetadata><pluginExecutions><pluginExecution><pluginExecutionFilter><groupId>org.apache.maven.plugins</groupId><artifactId>maven-dependency-plugin</artifactId><versionRange>[2.0,)</versionRange><goals><goal>copy-dependencies</goal></goals></pluginExecutionFilter><action><ignore /></action></pluginExecution></pluginExecutions></lifecycleMappingMetadata></configuration></plugin></plugins></pluginManagement></build><!--配置你的项目路径 --><scm><url>http://yyyyy:8000/svn/newedge/trunk/code/interface</url><connection> scm:svn:http://yyyyy:8000/svn/newedge/trunk/code/interface </connection><developerConnection> scm:svn:http://yyyyy:8000/svn/newedge/trunk/code/interface </developerConnection></scm><!-- 上传地址 --><distributionManagement><repository><id>nexus-releases</id><url>http://xxxxx:9999/nexus/content/repositories/releases/</url></repository><snapshotRepository><id>nexus-snapshots</id><url>http://xxxxx:9999/nexus/content/repositories/snapshots/</url></snapshotRepository></distributionManagement><!-- 资源库地址 --><repositories><repository><id>nexus-releases</id><url>http://xxxxx:9999/nexus/content/repositories/releases/</url><releases><enabled>true</enabled></releases><snapshots><enabled>false</enabled></snapshots></repository><repository><id>nexus-snapshots</id><url>http://xxxxx:9999/nexus/content/repositories/snapshots/</url><releases><enabled>false</enabled></releases><snapshots><enabled>true</enabled></snapshots></repository></repositories><dependencies><dependency><groupId>antlr</groupId><artifactId>antlr</artifactId><version>2.7.6</version></dependency></dependencies></project>
0 0
- 容器启动dubbo 的maven配置
- maven+springmvc+dubbo的简单配置
- dubbo启动为何不依赖容器
- 【初级教程】—Dubbo的配置及启动
- DUBBO启动为啥不用web容器启动
- maven管理spring+mybatis+dubbo的pom配置
- Maven+SpringMVC+Dubbo 简单的入门demo配置
- Maven+SpringMVC+Dubbo+zookeeper 简单的入门demo配置
- Maven+SpringMVC+Dubbo 简单的入门demo配置
- Maven+SpringMVC+Dubbo 简单的入门demo配置
- 自动启动Spring容器的配置
- Dubbo Main启动方式配置
- Dubbo注册中心启动配置
- dubbo管理控制台的安装 【以及】 tomcat启动配置
- dubbo的内核源码UML(容器启动以及Spring的shceme扩展)
- Dubbo 简单的入门【Maven+SpringMVC+Dubbo 】
- dubbo容器
- Dubbo的helloworld maven版
- IOS开发资料汇总
- Oracle 9.2.0.8 RAC使用pl/sql连接数据库,查看数据库时间比现实时间晚8小时
- Spring Integeration学习
- android中如何理解回调
- Thread类的sleep()方法和对象的wait()方法都可以让线程暂停执行,它们有什么区别?
- 容器启动dubbo 的maven配置
- Java多线程
- 使ajax载入动态html内容的代码易于编写及维护的方法
- java环境变量配置
- Magento Block的缓存机制
- Android 仿美团网,大众点评购买框悬浮效果之修改版
- 基于UDP协议的广播服务
- NSValue
- Oracle经常出现失效对象处理方法