惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

J
Java Code Geeks
GbyAI
GbyAI
阮一峰的网络日志
阮一峰的网络日志
Cloudbric
Cloudbric
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
宝玉的分享
宝玉的分享
I
Intezer
Simon Willison's Weblog
Simon Willison's Weblog
博客园_首页
The Cloudflare Blog
C
Cisco Blogs
AWS News Blog
AWS News Blog
IT之家
IT之家
Cyberwarzone
Cyberwarzone
罗磊的独立博客
美团技术团队
V
V2EX
Project Zero
Project Zero
A
Arctic Wolf
C
Cyber Attacks, Cyber Crime and Cyber Security
大猫的无限游戏
大猫的无限游戏
博客园 - 叶小钗
月光博客
月光博客
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
酷 壳 – CoolShell
酷 壳 – CoolShell
博客园 - 聂微东
有赞技术团队
有赞技术团队
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
雷峰网
雷峰网
S
Schneier on Security
P
Privacy International News Feed
V
Visual Studio Blog
量子位
T
Tor Project blog
S
Securelist
腾讯CDC
A
About on SuperTechFans
T
Threat Research - Cisco Blogs
G
GRAHAM CLULEY
B
Blog RSS Feed
D
DataBreaches.Net
博客园 - 三生石上(FineUI控件)
B
Blog
NISL@THU
NISL@THU
L
Lohrmann on Cybersecurity
V
Vulnerabilities – Threatpost
人人都是产品经理
人人都是产品经理
博客园 - 【当耐特】
L
LINUX DO - 热门话题
Recorded Future
Recorded Future

博客园 - 书生无用

Improve the speed to display a transparent background winform Replace the with CR in Microsoft Excel 开源的codecoverage(测试代码覆盖率)检测工具 使用zoudry编辑blog的设置 wiki为什么会流行 实现 DWR Sample 的几个要注意的问题(2) DWR Sample的两个问题 几个有意思的在线服务网站 静悄悄的变化 APPFUSE wiki中文文档问题解决了 appfuse使用Taperstry框架(一)——创建Tapestry框架页面 又是一个艳阳天 有几个Gmail、Wallop邀请 Appfuse开发实践(五)—— 增加校验和列表页面 Appfuse开发实践(四)——创建Webwork 框架的 Actions和JSP Appfuse开发实践(三) —— 创建Manager类 Appfuse开发实践(二)——创建DAO对象 Appfuse里面带的Ant任务列表 Appfuse实践(一)——配置安装
using maven and eclipse created a mutiple module project for eclipse
书生无用 · 2006-02-16 · via 博客园 - 书生无用
  • Set up a new eclipse workspace called mysn. I set the newly created workspace to "F:\myfile\mysn".
  • add the M2_REPO classpath by executing the following command:
    mvn -Declipse.workspace=F:\myfile\mysn eclipse:add-maven-repo
  • Open the command line shell and change to the newly created workspace directory.
  • Create a new maven project using the archetype plugin.Execute the following command in command line shell:
    mvn archetype:create -DgroupId=cn.org.mysn -DartifactId=mysn
  • Create a new simple project mysn inside the mysn workspace with eclipse (From the menu bar, select File >New >Project. Select Simple >Project). Eclipse will create a simple .project-file for your mysn project and you should be able to see the pom.xml-file.
  • Delete the src-folder and open the pom.xml-file to change the packaging of your parent project to pom
    <packaging>pom</packaging>

  • Inside the workspace directory and create some modules.
  • cd mysn
    mvn archetype:create -DgroupId=cn.org.mysn.model.core -DartifactId=mysn-model-core
    mvn archetype:create -DgroupId=cn.org.mysn.dao.core -DartifactId=mysn-dao-core
    mvn archetype:create -DgroupId=cn.org.mysn.service.core -DartifactId=mysn-service-core
    mvn archetype:create -DgroupId=cn.org.mysn.web.core -DartifactId=mysn-web-core
    -DarchetypeArtifactId=maven-archetype-webapp

    Note: the mysn-web-core module is created as a webapp project.

  • Add the newly created modules to your parent pom.
  • <modules>
    <module>../mysn-model-core</module>
    <module>../mysn-dao-core</module>
    <module>../mysn-service-core</module>
    <module>../mysn-web-core</module>
    </modules>
  • Add the parent to the POMs of the new modules:
  • <parent>
    <groupId>cn.org.mysn</groupId>
    <artifactId>mysn</artifactId>
    <version>1.0-SNAPSHOT</version>
    </parent>
  • Add dependency from module1 to the mysn-dao-core:
  • <dependency>
    <groupId>cn.org.mysn.model.core</groupId>
    <artifactId>mysn-model-core</artifactId>
    <version>1.0-SNAPSHOT</version>
    </dependency>
  • Add dependency from module1 to the mysn-service-core:
  • <dependency>
    <groupId>cn.org.mysn.dao.core</groupId>
    <artifactId>mysn-dao-core</artifactId>
    <version>1.0-SNAPSHOT</version>
    </dependency>
  • Add dependency from module1 to the mysn-web-core:
  • <dependency>
    <groupId>cn.org.mysn.service.core</groupId>
    <artifactId>mysn-service-core</artifactId>
    <version>1.0-SNAPSHOT</version>
    </dependency>
  • Install the project in your local repository and generate the eclipse files:
  • mvn install
    mvn eclipse:eclipse
  • Open the command line shell and change to the mysn-web-core module directory.generate the eclipse file for mysn-web-core module.
    mvn -Dwtpversion=1.0 eclipse:eclipse