Maven Notes
来源:互联网 发布:图片矩阵 编辑:程序博客网 时间:2024/06/16 02:50
1. Frequent Repositories
(1) Maven Central
<repository><id>Maven Central</id><url>http://repo1.maven.org/maven2</url></repository>
(2) Activiti
<repository><id>Alfresco</id><name>Alfresco</name><url>http://maven.alfresco.com/nexus/content/groups/public</url></repository>
(3) Spring Release
<repository><id>spring-maven-release</id><name>Spring Maven Release Repository</name><url>http://maven.springframework.org/release</url></repository>
2. Install M2Eclipse Plugin on Eclipse 4.2 JUNO
url: http://m2eclipse.sonatype.org/sites/m2e
3. Import Existing Projects into Workspace and Enable Maven
4. While setting up Activiti in Action example code, Eclipse JUNO stuck when processing this:
Check the url, found this:
3.1.1 doesn't exist! How to handle this kind of problem?
I installed the jar in my local repository, no joy yet.
Solution: Nexus
(1) I installed Nexus locally, and start it.
(2) Upload activiti-spring 5.10, activiti-cxf 5.10, activiti-engine 5.10, mybatis 3.1.1 to Nexus's thirdparty repository.
(3)
<properties><activiti-version>5.10</activiti-version><spring-version>3.1.2.RELEASE</spring-version><cxf-version>2.4.4</cxf-version><drools-version>5.3.0.Final</drools-version></properties>
<dependency><groupId>org.hibernate</groupId><artifactId>hibernate-entitymanager</artifactId><version>4.1.8.Final</version></dependency>
<dependency> <groupId>com.itextpdf</groupId> <artifactId>itextpdf</artifactId> <version>5.3.4</version> </dependency>
<repositories><repository><id>nexus</id><url>http://127.0.0.1:8081/nexus/content/groups/public/</url><releases><enabled>true</enabled></releases><snapshots><enabled>true</enabled></snapshots></repository><!--repository> <id>Activiti</id> <url>http://maven.alfresco.com/nexus/content/groups/public</url> </repository> <repository> <id>spring-extensions-milestone</id> <name>Spring Extensions Milestone Repository</name> <url>http://extensions.springframework.org/milestone</url> </repository --><repository><id>maven-restlet</id><name>Public online Restlet repository</name><url>http://maven.restlet.org</url></repository><repository><id>jboss-public-repository-group</id><name>JBoss Public Maven Repository Group</name><url>http://repository.jboss.org/nexus/content/groups/public-jboss/</url></repository><!-- <repository> <id>itextpdf.com</id> <name>Maven Repository for iText</name> <url>http://maven.itextpdf.com/</url> </repository --></repositories>
5. Nexus
Command: nexus console
Default URL: http://localhost:8081/nexus
Default Account: admin, admin123
<repository> <id>nexus</id> <url>http://127.0.0.1:8081/nexus/content/groups/public/</url> <releases> <enabled>true</enabled> </releases> <snapshots> <enabled>true</enabled> </snapshots> </repository>
6. Nexus Uploading Problem: does not allow updating artifacts.
Take it easy, this means you have already uploaded one identical jar, you can check the nexus's storage folder out.
7. Problem: The container 'Maven Dependencies' references non existing library
HERE IS THE KEY POINT: tick off 'Resolve dependencies from Workspace projects'
Delev/Comtemplate: What's the underlying meaning of this option?
- Maven Notes
- Maven notes
- Maven Notes
- Maven Study Notes 1
- Maven Study Notes 2
- Maven-Notes@ZZ 14-03-05
- Maven 项目管理工具 Notes 《Maven实战》 前3章
- Notes
- notes
- Notes
- notes
- notes
- notes
- notes
- Notes
- notes
- Notes
- notes
- 全同态加密技术文章分类
- struts2标签<s:url>
- UC_GUI LISTBOX列表控件工作学习笔记
- 设计模式之简单工厂模式,C++实现
- AS3中获取系统字体
- Maven Notes
- xvid编码器的弹出窗口解决方法
- 助理辞职了——献给那些浮躁的职场年轻人
- 真正优秀的程序员有哪些与众不同之处?
- 退耦和滤波
- Interface
- AS3中显示对象层级的控制
- struts2中的if/else,iterator标签以及ognl简单使用
- 关于SQL唯一性约束