领先的中文IT技术网站    IT技术从现在起飞

飞诺旗下: 技术社区 | 在线电子书 | 在线试题 | 资源下载 | 飞诺搜索 | 技术博客
用户名: 密   码:
   飞诺网 加入收藏
飞诺网 Java 新闻频道 开发频道 系统频道 服务器 网络频道 网络安全 Java频道 C/C++ PHP开发 电子书 资源下载 社 区 博 客 在线试题
软件编程 C C++ Java VB Delphi Foxpro 汇编语言 游戏开发 移动开发 软件工程师 软工与管理 VC shell编程 C#
编程开发 JAVA C/C++ C++ VC C语言 VB C# Delphi Foxpro 汇编 shell编程 游戏开发 软件工程师 WEB开发 PHP ASP Asp.net JSP AJAX CGI JavaScript HTML CSS 数据库 MSSQL Mysql Oracle Access Sybase DB2 sql2005 Office Word Excel Powerpoint Wps 认证考试 二级C语言 三级网络 程序员 网络工程师 思科认证

您当前的位置:飞诺网 >> java >> Java技术文章

maven2.0学习笔记

www.firnow.com    时间 : 2008-01-19  作者:佚名   编辑:andyyoo 点击:   [ 评论 ]


 
·                                 开发者信息(The developers

<ciManagement>
<system>continuum</system>
<notifiers>
<notifier>
...
</notifier>
</notifiers>
</ciManagement>

 
·                                 集成后所有的通知人信息(The notifiers

<notifier>
<type>mail</type>
<configuration>
<address>dev@maven.apache.org</address>
</configuration>
<notifier>

 

<notifier>
<type>irc</type>
<configuration>
<host>irc.codehaus.org</host>
<port>6667</port>
<channel>#maven</channel>
</configuration>
</notifier>

3.                              构建工程
·                                 按照定制的时间构建
·                                 点击本项目上的build按钮进行构建。
发布管理Releases
1.                              发布配置方法
要发布(Releases)一个项目,需要在pom.xmlsetting.xml中分别配置。
pom.xml

<distributionManagement>
<repository>
<id>mycompany-repository</id>
<name>MyCompany Repository</name>
<url>scp://repository.mycompany.com/repository/maven2</url>
</repository>
</distributionManagement>

setting.xml

<settings>
.
.
<servers>
<server>
<id>mycompany-repository</id>
<username>jvanzyl</username>
<!-- Default value is ~/.ssh/id_dsa -->
<privateKey>/path/to/identity</privateKey> (default is ~/.ssh/id_dsa)
<passphrase>my_key_passphrase</passphrase>
</server>
</servers>
.
.
</settings>

通过以上的设置,项目将可以发布到远程仓库,远程服务器。
项目发布现在支持scpftpscpexe等方式。
2.                              Setting.xml文件
这个文件是一个maven的配置文件。
他有下面的功能:
·                                 配置本地仓库
·                                 配置访问网络的代理服务器
·                                 安全和部署的设置。
·                                 为仓库设置景象
想要了解更多这个文件的信息可以参考一下以下文章:

http://maven.apache.org/guides/mini/guide-configuring-maven.html

3.                              运行发布的命令

mvn deploy

 
1 2 3 4 5 6 7 8 9 10
如果图片或页面不能正常显示请点击这里
Java技术文章推荐文章

文章评论

BBS社区热贴