maven, ant,ivy配置

JAVA_HOME=`C:\Program Files\Java\jdk1.6.0_21`
web

================build.xml===== tomcat

<target name="init-lib"> app


<ivy:configure url="http://localhost:8888/repo/ivyconfig.xml"/> webapp

<ivy:configure file="E:\ant_ivy\ivyconfig.xml"/> ui


</target> url

======================ivyconfig.xml ====== spa

<?xml version="1.0" encoding="utf-8"?> xml

<ivysettings>
<settings defaultResolver="chained" />
<resolvers>
<chain name="chained" returnFirst="true">
  <url name="integratebutton"> 
        <artifact pattern="http://localhost:8888/repo/lib/[artifact]-[revision].[type]" />
        </url>
<!--文件方式
<filesystem name="integratebutton">
<artifact pattern="D:/tomcat7/webapps/repo/lib/[artifact]-[revision].[type]" />
</filesystem>
-->
</chain>
</resolvers>

</ivysettings>  utf-8

==================例子========== get

<?xml version="1.0" encoding="utf-8"?> <ivysettings> <settings defaultResolver="chained" /> <resolvers> <chain name="chained" returnFirst="true">   <url name="integratebutton">          <artifact pattern="http://192.168.10.8:8888/repo/[artifact]-[revision].[type]" />         </url> </chain> </resolvers> </ivysettings> 

相關文章
相關標籤/搜索