- 浏览: 575022 次
- 性别:
- 来自: 上海
文章分类
- 全部博客 (174)
- JBPM (3)
- WWF (0)
- JavaScript (11)
- J2EE (40)
- OperationSystem (11)
- 数据库 (12)
- CSS (1)
- Ajax (2)
- J2SE (30)
- Tools (10)
- 服务器中间件 (3)
- 异常 (0)
- Flex (5)
- jQuery (11)
- html (9)
- Ejb (1)
- HTML5 Shiv–让该死的IE系列支持HTML5吧 (1)
- Spring (9)
- Quartz (3)
- log4j (1)
- maven (1)
- cpdetector (1)
- JSON (1)
- log4jdbc (1)
- asm (8)
- FusionCharts (1)
- jqplot (1)
- highcharts (1)
- excanvas (1)
- html5 (1)
- jpcap介绍 (1)
- weblogic (3)
- URLURLClassLoader (0)
- URLClassLoader (1)
- ant (2)
- ivy (2)
- nexus (1)
- IT (0)
- LoadRunner (1)
- SCSS (1)
- ruby (1)
- webstorm (1)
- typescript (1)
- Jboss7 (1)
- wildfly (1)
- oracle (5)
- esb (0)
- dubbo (2)
- zookeeper (3)
- eclipse (1)
- Android (2)
- Studio (1)
- Google (1)
- 微信 (1)
- 企业号 (1)
- Linux (13)
- Oracle12c (1)
- Hadoop (1)
- InletexEMC (1)
- Windows (1)
- Netty (3)
- Marshalling (2)
- Protobuf (1)
- gcc (1)
- Git (1)
- GitLab (1)
- shell (2)
- java (3)
- Spring4 (1)
- hibernate4 (1)
- postgresql (1)
- ApacheServer (2)
- Tomcat (2)
- ApacheHttpServer (2)
- realvnc (1)
- redhat (7)
- vncviewer (1)
- LVS (4)
- LVS-DR (1)
- RedHat6.5 (5)
- LVS-NAT (1)
- LVS-IPTUNNEL (2)
- LVS-TUN (1)
- keepalived (2)
- yum (1)
- iso (1)
- VMware (1)
- redhat5 (1)
- ha (1)
- nginx (2)
- proguard (1)
- Mat (1)
- DTFJ (1)
- axis2 (1)
- web service (1)
- centos (1)
- random (1)
- urandom (1)
- apache (1)
- IBM (1)
- cve (1)
- 漏洞 (1)
- JDBC (1)
- DataSource (1)
- jdk (1)
- tuxedo (2)
- wtc (1)
最新评论
-
skying007:
好资料,谢谢分享给啊
FusionCharts在服务器端导出图片(J2EE版) -
cgnnzg:
大神好 可以发一份源码给我学习么 多谢了 978241085 ...
springmvc+dubbo+zookeeper -
jifengjianhao:
求源码:854606899@qq.com
springmvc+dubbo+zookeeper -
wdloyeu:
shihuan8@163.com邮箱网盘在哪,没找到。能给份源 ...
Java Socket长连接示例代码 -
huangshangyuanji:
求代码:45613032@qq.com
springmvc+dubbo+zookeeper
本文的大前提是先要搭建好nexus本地服务器。
工程目录结构
附件里是示例代码。
ivysettings_nexus.rar是ivysettings.xml连接nexus服务的文件代码。
关于配置截图请参考笔者的新浪博客(http://blog.sina.com.cn/s/blog_4f925fc30102v6k8.html)
ivysettings.xml文件代码如下:
ivy.xml文件代码如下:
build.xml文件代码如下:
工程目录结构
附件里是示例代码。
ivysettings_nexus.rar是ivysettings.xml连接nexus服务的文件代码。
关于配置截图请参考笔者的新浪博客(http://blog.sina.com.cn/s/blog_4f925fc30102v6k8.html)
ivysettings.xml文件代码如下:
<ivysettings> <ivy:configure> <credentials host="127.0.0.1" realm="Sonatype Nexus Repository Manager" username="admin" passwd="admin123"/> </ivy:configure> <settings defaultResolver="defaultChain" defaultConflictManager="latest-revision" /> <caches defaultCacheDir="F:/antlvy/javapro/ivy" /> <property name="nexus-public" value="http://127.0.0.1:8081/nexus/content/groups/public"/> <property name="nexus-releases" value="http://127.0.0.1:8081/nexus/content/repositories/releases"/> <property name="nexus-snapshots" value="http://127.0.0.1:8081/nexus/content/repositories/snapshots"/> <property name="nexus-thirdparty" value="http://127.0.0.1:8081/nexus/content/repositories/thirdparty"/> <resolvers> <chain name="defaultChain" checkmodified="true" changingPattern=".*SNAPSHOT"> <ibiblio name="nexus-public" m2compatible="true" usepoms="true" root="${nexus-public}" pattern="[organisation]/[module]/[revision]/[artifact]-[revision](-[classifier]).[ext]" /> <ibiblio name="nexus-releases" m2compatible="true" usepoms="true" root="${nexus-releases}" pattern="[organisation]/[module]/[revision]/[artifact]-[revision](-[classifier]).[ext]" /> <ibiblio name="nexus-snapshots" m2compatible="true" usepoms="true" root="${nexus-snapshots}" pattern="[organisation]/[module]/[revision]/[artifact]-[revision](-[classifier]).[ext]" /> <ibiblio name="nexus-thirdparty" m2compatible="true" usepoms="true" root="${nexus-thirdparty}" pattern="[organisation]/[module]/[revision]/[artifact]-[revision](-[classifier]).[ext]" /> </chain> </resolvers> </ivysettings>
ivy.xml文件代码如下:
<?xml version="1.0" encoding="ISO-8859-1"?> <!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. --> <ivy-module version="2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://ant.apache.org/ivy/schemas/ivy.xsd"> <info organisation="com.shihuan" module="shihuanjava" status="integration"> </info> <dependencies> <dependency org="log4j" name="log4j" rev="1.2.17" conf="default"></dependency> <dependency org="commons-logging" name="commons-logging" rev="1.2" conf="default" /> <dependency org="org.slf4j" name="slf4j-api" rev="1.6.4" conf="default" /> <dependency org="org.slf4j" name="slf4j-log4j12" rev="1.6.4" conf="default" /> <dependency org="commons-lang" name="commons-lang" rev="2.6" conf="default" /> <dependency org="com.cloudhopper.proxool" name="proxool" rev="0.9.1" conf="default" /> <dependency org="mysql" name="mysql-connector-java" rev="5.1.34" conf="default" /> </dependencies> </ivy-module>
build.xml文件代码如下:
<?xml version="1.0" encoding="UTF-8"?> <project xmlns:ivy="antlib:org.apache.ivy.ant" basedir="." name="TestJavaCl" default="genericjar"> <property name="publish.version" value="0.1" /> <property name="ivy.report.todir" value="build" /> <target name="resolve"> <ivy:configure file="ivysettings.xml" /> <ivy:resolve file="ivy.xml" conf="default" /> <ivy:retrieve pattern="lib/[conf]/[artifact]-[revision].[ext]" /> <ivy:report /> </target> <path id="lib-classpath"> <fileset dir="${basedir}/lib/default"> <include name="**/*.jar"/> <exclude name="**/*.bak"/> </fileset> </path> <target name="clean"> <delete dir="${basedir}/bin" /> <delete dir="${basedir}/dist" /> </target> <target name="init" description="设置初始化打war包需要的路径变量"> <property name="name" value="TestJavaCl"/> <property name="src" value="${basedir}/src"/> <property name="resources" value="${basedir}/resources"/> <property name="packages" value="com.*"/> <property name="build.class" value="${basedir}/bin"/> <property name="build.javadocs" value="${basedir}/dist/doc"/> <property name="jar.dest" value="${basedir}/dist/jar"/> <property name="mainclass" value="com.shihuan.test.TestUrlClassLoader"/> <property name="build.encoding" value="utf-8"/> <property name="year" value="2014"/> <property name="version" value="1.0.0"/> <echo message="----------- ${name} ${version} [${year}] ------------" /> <echo message="----------- ${src} ------------" /> <echo message="----------- ${resources} ------------" /> <echo message="----------- ${build.class} ------------" /> <echo message="----------- ${build.javadocs} ------------" /> <echo message="----------- ${jar.dest} ------------" /> <patternset id="ignored.files"> <exclude name="**/.svn/**" /> </patternset> <filter token="year" value="${year}" /> <filter token="version" value="${version}" /> <filter token="date" value="${TODAY}" /> <filter token="log" value="true" /> <filter token="verbose" value="true" /> </target> <target name="prepare" depends="clean,init" description="创建打包需要的路径,拷贝源文件到打包路径下"> <tstamp/> <mkdir dir="${build.class}"/> <mkdir dir="${jar.dest}"/> </target> <target name="compile" depends="prepare,resolve"> <javac encoding="${build.encoding}" srcdir="${src}" destdir="${build.class}" includeantruntime="false" source="1.6" debug="yes" verbose="yes" failonerror="true" optimize="false"> <compilerarg line="-encoding UTF-8"/> <classpath refid="lib-classpath" /> </javac> <copy todir="${build.class}"> <fileset dir="${resources}"> <include name="**/*.properties"/> <include name="**/*.xml"/> <exclude name="**/*.bak"/> </fileset> </copy> </target> <target name="antjar" depends="compile"> <!--Create a property containing all .jar files, prefix lib/, and seperated with a space--> <pathconvert property="mf.classpath" pathsep=" "> <mapper> <chainedmapper> <!-- jar包文件只留文件名,去掉目录信息 --> <flattenmapper/> <!-- add lib/ prefix --> <globmapper from="*" to="lib/default/*"/> </chainedmapper> </mapper> <path refid="lib-classpath"/> </pathconvert> <jar destfile="${jar.dest}/myapp-${DSTAMP}.jar" basedir="${build.class}"> <manifest> <attribute name="Main-class" value="${mainclass}"/> <attribute name="Class-Path" value="${mf.classpath}"/> </manifest> </jar> </target> <target name="genericjar" depends="antjar"></target> </project>
- javapro_ant_ivy_nexus.rar (5.6 KB)
- 下载次数: 8
- ivysettings_nexus.rar (601 Bytes)
- 下载次数: 6
发表评论
-
any+ivy的使用
2014-11-29 16:25 2064javapro-用ivy编译版本.rar文件时示例代码。 i ... -
maven-dependency-plugin (goals "copy-dependencies", "unpack") is not supported b
2014-03-26 17:02 3465maven-dependency-plugin (goals ... -
maven打包过程执行自定义插件包
2014-02-13 15:00 1959附件中是笔者的案例。 -
maven duplicate finder plugin介绍
2014-01-22 16:52 2187maven-duplicate-finder-plugin是一 ... -
Ant+Svn打包Web工程
2013-03-02 16:58 1205http://blog.csd ... -
EmEditor
2012-10-02 10:37 1177http://www.emurasoft.com/ (官 ... -
ant打包Web工程
2012-03-18 13:13 3453build.properties文件内容如下: project ... -
MTracer工具介绍及软件下载
2011-12-09 11:06 1539点击匹配按钮即可看到结果。 附件里MTracer软件包, ... -
代码走查工具介绍
2011-08-10 19:52 6099FindBugs、PMD和CheckStyle是当前比较流行的 ... -
MyEclipse8.6整合Axis2插件
2011-07-31 12:50 90001.下载axis2的eclipse插件. 点击附件即可,不 ...
相关推荐
ANT+协议 VS2015源文件
Junit+ant+cobertura示例源码程序。
运动器材通信协议ANT+,压缩包内包含各种ANT+协议。各种运动器材,码表,心率带,速度踏频传感器等
ant依赖包,实现对代码的打包管理,在weblogic下很有用哦
本文件为ANT+协议开发的S212协议栈,可用于NORDIC产品芯片的ANT+协议开发。支持NRF52系列的NORDIC芯片ANT+开发
ant +build.xml 文件Jenkins部署javaEE项目,助力成功自动化部署。ant +build.xml 文件Jenkins部署javaEE项目,助力成功自动化部署。ant +build.xml 文件Jenkins部署javaEE项目,助力成功自动化部署。ant +build.xml...
ant+selenium+testng自动化测试方案
jmeter+ant+jenkins接口自动化测试框架,功能自动化和性能自动化均可
ant+junit的简易教程
jmter+ant+jenkins自动化测试pptjmter+ant+jenkins自动化测试pptjmter+ant+jenkins自动化测试ppt,个人总结
jmeter+ant+Jenkins搭建接口自动化测试,可以三体集成实现一键自动;
FitSDK3.00 用于ANT+协议应用。
jmeter+ant+jenkins自动化接口集成测试完整框架以及jar包下载,以及使用教程说明。。。。。。
简述了 如果使用 Ant+Jmeter 来进行 开发API 的功能测试,也附带扯到了 最终如何整合入hudson(jerkins) 的集成build环境中
Jmeter+ant+Jenkins集成接口自动化测试详细说明
Jmeter+ant+Jenkins接口自动化文档 本地项目尝试,输出了文档介绍了资源下载以及安装,使用的步骤。
这个是亲测,一步一步部署jmeter+ant+jenkins项目,以前从来没弄过。完全可以从0开始的。抄袭网上很多人的经验最后一步一步记录下来的