Maven Notes

1. Frequent Repositories

(1) Maven Central

		
			Maven Central
			http://repo1.maven.org/maven2
		

(2) Activiti

		
			Alfresco
			Alfresco
			http://maven.alfresco.com/nexus/content/groups/public
		

(3) Spring Release


			spring-maven-release
			Spring Maven Release Repository
			http://maven.springframework.org/release
		


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)


		5.10
		3.1.2.RELEASE
		2.4.4
		5.3.0.Final
	


			org.hibernate
			hibernate-entitymanager
			4.1.8.Final
		


            com.itextpdf
            itextpdf
            5.3.4
        


		
			nexus
			http://127.0.0.1:8081/nexus/content/groups/public/
			
				true
			
			
				true
			
		
		
		
			maven-restlet
			Public online Restlet repository
			http://maven.restlet.org
		
		
			jboss-public-repository-group
			JBoss Public Maven Repository Group
			http://repository.jboss.org/nexus/content/groups/public-jboss/
		
		
	



5. Nexus

Command: nexus console


Default URL: http://localhost:8081/nexus

Default Account: admin, admin123

 	      
                 nexus
                 http://127.0.0.1:8081/nexus/content/groups/public/
                 
                    true
                 
                 
                    true
                 
              

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?

你可能感兴趣的:(Continuous,Integration)