[Building Sakai] got error when running "mvn -Pcafe clean install"

Mathieu Cantin mathieu.cantin at hec.ca
Tue Jun 1 07:48:01 PDT 2010


Hi,

In the setup walktrough page at :

http://confluence.sakaiproject.org/display/BOOT/Development+Environment+Setup+Walkthrough

Make sure you have performed step 8 and check the project root directory 
pom.xml file.  It should have a profile defined with id "cafe".  Also, 
make sure you are in this directory before performing : mvn clean 
install -Pcafe.
The error :     Profile with id: 'cafe' has not been activated.   shows 
up when no profile with this id is defined in the pom.xml.

If all this is correct and this error still shows up I don't know what 
the problem is.

Mathieu Cantin

-------- Message original --------
Sujet : Re: [Building Sakai] got error when running "mvn -Pcafe   
 clean    install"
De : x yj <xuey at hotmail.com>
Pour : david.horwitz at uct.ac.za, sakai-dev at collab.sakaiproject.org
Date : 2010-06-01 10:03
> Hi,
>
> Thanks for your quick reply. In my maven setting file,I using an 
> example from
> http://confluence.sakaiproject.org/display/BOOT/Development+Environment+Setup+Walkthrough
>
> to set my proxy server and change to my proxy address&port. 
>
> But "mvn -Pcafe clean install" still cant connect&download pom file
> I testing my internet connection by runing this. It is fine and smoothly.
> #export http_proxy=http://myproxy...:8080
> # wget http://www.softwaresummit.com/2003/speakers/GillardApacheMaven.pdf
>
> This is error I got when I run "mvn -Pcafe clean install" 
> =========================================
>
> # mvn -Pcafe clean install
> [INFO] Scanning for projects...
> [WARNING]
>         Profile with id: 'cafe' has not been activated.
>
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Building Maven Default Project
> [INFO]    task-segment: [clean, install]
> [INFO] 
> ------------------------------------------------------------------------
> Downloading: 
> http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-clean-plugin/2.2/maven-clean-plugin-2.2.pom
> [WARNING] Unable to get resource 
> 'org.apache.maven.plugins:maven-clean-plugin:pom:2.2' from repository 
> central (http://repo1.maven.org/maven2): Error transferring file: 
> Connection timed out
> Downloading: 
> http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-clean-plugin/2.2/maven-clean-plugin-2.2.pom
> [WARNING] Unable to get resource 
> 'org.apache.maven.plugins:maven-clean-plugin:pom:2.2' from repository 
> central (http://repo1.maven.org/maven2): Error transferring file: 
> Connection timed out
> [INFO] 
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Error building POM (may not be this project's POM)......
>
>
> ------------------------------------------------------------------------
> Date: Tue, 1 Jun 2010 11:52:28 +0200
> From: david.horwitz at uct.ac.za
> To: sakai-dev at collab.sakaiproject.org
> Subject: Re: [Building Sakai] got error when running "mvn -Pcafe clean 
> install"
>
> Hi,
>
> It looks like maven can't connect to the internet to download the 
> plugins it needs. Check the proxy settings in your {maven 
> home}/settings.xml
>
> D
>
> On 06/01/2010 11:46 AM, x yj wrote:
>
>
>
>
>     Please help this.
>
>
>
>     I am trying to install Sakai
>     and following the instructions in http://confluence.sakaiproject.org/display/BOOT/Development+Environment+Setup+Walkthrough
>
>
>
>     I got following error when running "mvn -Pcafe clean install"
>     to build and deploy it to my tomcat.
>
>
>
>     ====================================================
>
>      mvn -Pcafe clean install
>
>     [INFO] Scanning for projects...
>
>     [WARNING] 
>
>             Profile with id: 'cafe' has not been
>     activated.
>
>
>
>     [INFO] ------------------------------------------------------------------------
>
>     [INFO] Building Maven Default Project
>
>     [INFO]    task-segment: [clean, install]
>
>     [INFO] ------------------------------------------------------------------------
>
>     Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-clean-plugin/2.2/maven-clean-plugin-2.2.pom
>
>     [WARNING] Unable to get resource
>     'org.apache.maven.plugins:maven-clean-plugin:pom:2.2' from repository central
>     (http://repo1.maven.org/maven2): Error transferring file: Connection timed out
>
>     ......
>
>     ====================================================
>
>
>
>     Can anyone point me what could possible go wrong? I can open the  pom's
>     URL in firefox but why always get "Error transferring file: Connection
>     timed out"?
>
>
>
>     This is my system setting
>
>
>
>     # echo $HTTP_PROXY
>
>     http://.....:8080
>
>
>
>     # mvn --version
>
>     Apache Maven 2.2.1 (r801777; 2009-08-06 20:16:01+0100)
>
>     Java version: 1.6.0_20
>
>     Java home: /usr/java/jdk1.6.0_20/jre
>
>     Default locale: en_US, platform encoding: UTF-8
>
>     OS name: "linux" version: "2.6.18-53.1.14.el5" arch:
>     "i386" Family: "unix"
>
>
>
>     Tomcat
>
>     # sh version.sh
>
>     Using CATALINA_BASE:   /usr/local/tomcat
>
>     Using CATALINA_HOME:   /usr/local/tomcat
>
>     Using CATALINA_TMPDIR: /usr/local/tomcat/temp
>
>     Using JRE_HOME:       /usr/java/jdk1.6.0_20
>
>     Server version: Apache Tomcat/6.0.18
>
>     Server built:   Jul 22 2008 02:00:36
>
>     Server number:  6.0.18.0
>
>     OS Name:        Linux
>
>     OS Version:     2.6.18-53.1.14.el5
>
>     Architecture:   i386
>
>     JVM Version:    1.6.0_20-b02
>
>     JVM Vendor:     Sun Microsystems Inc.
>
>
>
>     # svn --version
>
>     svn, version 1.6.11 (r934486)
>
>        compiled Apr 20 2010, 00:33:28
>
>
>
>
>
>     Thanks
>
>     Yj
>
>      		 	   		  
>     _________________________________________________________________
>     The New Busy is not the too busy. Combine all your e-mail accounts with Hotmail.
>     http://www.windowslive.com/campaign/thenewbusy?tile=multiaccount&ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_4 <http://www.windowslive.com/campaign/thenewbusy?tile=multiaccount&ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_4>
>       
>
>
>     _______________________________________________
>     sakai-dev mailing list
>     sakai-dev at collab.sakaiproject.org <mailto:sakai-dev at collab.sakaiproject.org>
>     http://collab.sakaiproject.org/mailman/listinfo/sakai-dev
>
>     TO UNSUBSCRIBE: send email to sakai-dev-unsubscribe at collab.sakaiproject.org <mailto:sakai-dev-unsubscribe at collab.sakaiproject.org> with a subject of "unsubscribe"
>
>
> ------------------------------------------------------------------------
> The New Busy is not the too busy. Combine all your e-mail accounts 
> with Hotmail. Get busy. 
> <http://www.windowslive.com/campaign/thenewbusy?tile=multiaccount&ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_4> 
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> sakai-dev mailing list
> sakai-dev at collab.sakaiproject.org
> http://collab.sakaiproject.org/mailman/listinfo/sakai-dev
>
> TO UNSUBSCRIBE: send email to sakai-dev-unsubscribe at collab.sakaiproject.org with a subject of "unsubscribe"

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20100601/8bfdc89f/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Mathieu_Cantin.vcf
Type: text/x-vcard
Size: 428 bytes
Desc: not available
Url : http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20100601/8bfdc89f/attachment.vcf 


More information about the sakai-dev mailing list