Hi all,

This is sammaiah nagapuri. Sorry if I am asking trivial issue. I am the new 
user for this community and I am just learning now. 

What the problem I am getting is in my company we don't have access to lot of 
cites. Is it really necessary to work with maven? 
And one more thing is if we download all the plugins while connecting to the 
internet and I am trying now to perform one task like compile (mvn compile). 
This time also is it really necessary the internet connection? As we already 
downloaded all the plugins. Then why it will connect to internet once again 
even though we are having some plugins in our repository?

I am facing this problem nearly from 2 weeks. I am searching in google about 
this. But I am not getting any info.

I am getting the stacktrace like following one.

--------------------------
F:\Ravi\sam>mvn compile
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Building Maven Default Project
[INFO]    task-segment: [compile]
[INFO] ------------------------------------------------------------------------
Downloading: 
http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-resources-plugin/2.3/maven-resources-plugin-2.3.pom
[WARNING] Unable to get resource 
'org.apache.maven.plugins:maven-resources-plugin:pom:2.3' from repository 
central (http://repo1.maven.org/maven2): Er
ror transferring file: Connection timed out: connect
Downloading: 
http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-resources-plugin/2.3/maven-resources-plugin-2.3.pom
[WARNING] Unable to get resource 
'org.apache.maven.plugins:maven-resources-plugin:pom:2.3' from repository 
central (http://repo1.maven.org/maven2): Er
ror transferring file: Connection timed out: connect
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to resolve artifact.

GroupId: org.apache.maven.plugins
ArtifactId: maven-resources-plugin
Version: 2.3

Reason: Unable to download the artifact from any repository

  org.apache.maven.plugins:maven-resources-plugin:pom:2.3

from the specified remote repositories:
  central (http://repo1.maven.org/maven2)



[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 43 seconds
[INFO] Finished at: Thu Aug 13 18:04:40 GMT+05:30 2009
[INFO] Final Memory: 1M/2M
--------------------------------

Here what I done is my laptop is having internet connection. So there I done 
like 'mvn install'. Later I copied those repositories into another system 
(which is not having internet connection). There I am getting this problem?

I am working in Bangalore. If anybody is there in Bangalore please share the 
mobile number. Then I'll call you.

Please show me some way.

Thanks in advance.


Thanks & Regards
Sammaiah Nagapuri
"Inaction breeds doubt and fear. Action breeds confidence and courage. If you 
want to conquer fear, do not sit home and think about it. Go out and get busy."


-----Original Message-----
From: Bruno Aranda [mailto:[email protected]] 
Sent: Thursday, August 13, 2009 5:10 PM
To: Maven Users List
Subject: Re: Maven java.lang.OutOfMemoryError

It's MAVEN_OPTS

Cheers,

Bruno

2009/8/13 kopemor <[email protected]>:
>
> Hello,
>
> I am getting "java.lang.OutOfMemoryError: Java heap space" exception when I
> compile my project using Maven. I have tried several options:
>
> 1. Setting variable: export MAVEN_OPT=-Xmx1024m
>
> 2. Using Maven compile plugin:
>     <plugin>
>       <groupId>org.apache.maven.plugins</groupId>
>        <artifactId>maven-compiler-plugin</artifactId>
>        <configuration>
>          <source>1.5</source>
>          <target>1.5</target>
>          <encoding>UTF-8</encoding>
>          <argLine>-Xms512m</argLine>
>          <argLine>-Xmx1024m</argLine>
>          <disableXmlReport>true</disableXmlReport>
>        </configuration>
>      </plugin>
>
> I have even tried to put max heap size to 4094, the result is the same.
>
> Any help?
>
> --
> View this message in context: 
> http://www.nabble.com/Maven-java.lang.OutOfMemoryError-tp24952498p24952498.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]


DISCLAIMER:
-----------------------------------------------------------------------------------------------------------------------

The contents of this e-mail and any attachment(s) are confidential and intended 
for the named recipient(s) only. 
It shall not attach any liability on the originator or HCL or its affiliates. 
Any views or opinions presented in 
this email are solely those of the author and may not necessarily reflect the 
opinions of HCL or its affiliates. 
Any form of reproduction, dissemination, copying, disclosure, modification, 
distribution and / or publication of 
this message without the prior written consent of the author of this e-mail is 
strictly prohibited. If you have 
received this email in error please delete it and notify the sender 
immediately. Before opening any mail and 
attachments please check them for viruses and defect.

-----------------------------------------------------------------------------------------------------------------------

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to