Nice TWiki > Doc > DevelopmentTools > MavenGuide (r1.7) TWiki webs:
Dev | Doc | Main | TWiki | Sandbox
Doc . { Changes | Index | Search | Go }
Maven is a project management tool. Based on a single file defining your project, it is able to automatically build your program (tracking its dependencies), and generate a website with souce documentation, test results, change logs, ...

Nice is being integrated with Maven. This means that you can use Maven to manage your project that include Nice sources. This system will probably be used to distribute Nice libraries in the future, which will make using existing Nice libraries in your programs even easier, since Maven can download them automatically.


The first thing you need to do is to download Maven. You then need to make Maven aware of the repository that contains the Nice plugin. To do this, you should create a file in your home directory (~/ on Unix systems, C:\Documents and Settings\YourUserName\ on Windows systems). This file only need one line, which is the following:

maven.repo.remote =,

The server is the main Maven repository.

Your version of Maven is now able to handle Nice sources!


At the root directory of your project, you should create a file project.xml. There is lots of information that can be filled and that will be used by the various plugins. Here is a minimalistic example that focus on building a Nice project.

<?xml version="1.0"?>
  <name>Maven test</name>

  <shortDescription>Maven test project</shortDescription>

    This a simple Nice project, built with Maven.

      <name>Your Name</name>



You can build this project by simply typing maven nice.

Other useful command are:

maven clean Erase all the generated files
maven site:generate Generate a website that documents the project
maven site:deploy Publish the website on a web server
maven -g List all commands

See the documentation for general information about how to use Maven.

Known issues

For the generation of the website, javadoc will fail if there is not any Java source file in the source tree. Until we manage to use NiceDoc instead, a workaround is to add a dummy Java. (This is fixed in the CVS version of maven) 化工泵 净化设备 稳压电源 初级会计师 留学签证 珠海生活 波峰焊 晶振 移动PC 视频点播 聊天室 消毒 越野车 电容器 电磁阀 类风湿 留学专家 首饰 晶体 内存 东莞生活 拓展训练 股票证券 留学中介 广告 电教 液晶屏 超声波 桌面 黑客帝国 挤出机 汽车租赁 消毒液 博天堂 投影仪 黄历 液晶显示器 温控器 动画 屏幕保护 白癜风 垫片 证券 电热膜 主机 户外 扑克 防火墙 肝硬化 注册税务师 广东生活 逆变电源 北京现代汽车 枫叶卡 资源库 风湿 脉管炎 汇款 电脑报价 西联 工作站 监控 广州生活 空间租用 信息化 螺丝 套管 外语 强直性脊柱炎 邮件系统 办公楼 胶粘剂 压力变送器 电线 铃声 皮具 星座 扣件 印花 工商注册 温度计 实验台 歌曲下载 文化 工业控制 雨伞 管理咨询公司 证卡打印机 液压件 注册 助剂 豆粕 胰岛素泵 电子元件 链条 流水线 防爆电机 水处理公司 水产品 紧固件 铸件 保健品 粉末涂料 文件柜 工装 隔离器 中药 手推车 光通信 喷涂设备 铸造 绿茶 宽带接入 计算机学校 工控 激光测距仪 清洗机 尖锐湿疣 网络布线 手电筒 读卡器 网络维护 数码管 栈板 蜂胶 打码机 思科 托盘 免费下载 野营用品 护肤 絮凝剂 色织布 护肤品 儿童玩具 人才招聘 旅游用品 减速电机 金属材料 不锈钢制品 癫痫 电视 电视剧 电工工具 电动摩托车 客车 抛光 黄页 磨床 洗地机 木门 圆珠笔 铜门 调节阀 搜索引擎 环境实验设备 塑料管材 呼吸机 节能 电解电容 网页 医疗 司法考试 结婚 防腐涂料 玻璃仪器 书店 光盘制作 医药 音乐网站 臭氧 网球 铁柜 医院管理 洗衣 致富信息 冠心病 保姆 报关 法语 散热片 毛巾 形象设计

Topic MavenGuide . { Edit | Attach | Ref-By | Printable | Diffs | r1.8 | > | r1.7 | > | r1.6 | More }
Revision r1.7 - 27 Jan 2005 - 06:18 GMT - LiYan
Parents: WebHome > DevelopmentTools
Copyright © 1999-2003 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback.