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?