Maven java.lang.OutOfMemoryError

2009-08-13 Thread kopemor

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
   groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-compiler-plugin/artifactId
configuration
  source1.5/source
  target1.5/target
  encodingUTF-8/encoding
  argLine-Xms512m/argLine
  argLine-Xmx1024m/argLine
  disableXmlReporttrue/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: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Maven java.lang.OutOfMemoryError

2009-08-13 Thread kopemor

Thanks guys for your suggestions. I have used the following compiler plugin
configuration:

plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-compiler-plugin/artifactId
configuration
  source1.5/source
  target1.5/target
  encodingUTF-8/encoding
  forktrue/fork
  meminitial512m/meminitial
  maxmem1024m/maxmem
/configuration
  /plugin

It helped, but not straightway.

I am using multiple project structure and have one aggregate project that
manages other sub projects and provides configuration used by all sub
projects. The compiler plugin above was specified in the aggregate project
and the project that was failing was one of the sub projects. However, when
I placed the compiler plugin configuration specified above into the sub
project's POM the compilation went fine.

I am not Maven guru and I have probably missed something, but I was assuming
that sub project will use configurations from the parent one.

Thanks for your help!




Bruno Aranda wrote:
 
 It's MAVEN_OPTS
 
 Cheers,
 
 Bruno
 
 2009/8/13 kopemor developm...@knollenstein.nl:

 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
       groupIdorg.apache.maven.plugins/groupId
        artifactIdmaven-compiler-plugin/artifactId
        configuration
          source1.5/source
          target1.5/target
          encodingUTF-8/encoding
          argLine-Xms512m/argLine
          argLine-Xmx1024m/argLine
          disableXmlReporttrue/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: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org


 
 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Maven-java.lang.OutOfMemoryError-tp24952498p24954068.html
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



How to omit generated jar version number?

2009-08-11 Thread kopemor

I am generating a JAR artifact and in my pom.xml I should specify a version
of that JAR in a version tag. However, I want Maven to generate a JAR file
without the version number, i.e.FooComponent.jar.

If I remove a version tag, maven reports me of an error.

Is there a way to achieve what I want?

Thanks,
-- 
View this message in context: 
http://www.nabble.com/How-to-omit-generated-jar-version-number--tp24913645p24913645.html
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: How to omit generated jar version number?

2009-08-11 Thread kopemor

Thank you Ketil. It helped!


Ketil Aasarød wrote:
 
 In your pom.xml, add the following in the build-section:
 
 finalName${artifactId}/finalName
 
 The default value for finalName is ${artifactId}-${version}.
 
 -ketil
 
 On Tue, Aug 11, 2009 at 10:25 AM, kopemordevelopm...@knollenstein.nl
 wrote:

 I am generating a JAR artifact and in my pom.xml I should specify a
 version
 of that JAR in a version tag. However, I want Maven to generate a JAR
 file
 without the version number, i.e.FooComponent.jar.

 If I remove a version tag, maven reports me of an error.

 Is there a way to achieve what I want?

 Thanks,
 --
 View this message in context:
 http://www.nabble.com/How-to-omit-generated-jar-version-number--tp24913645p24913645.html
 Sent from the Maven - Users mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org


 
 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org
 
 
 

-- 
View this message in context: 
http://www.nabble.com/How-to-omit-generated-jar-version-number--tp24913645p24914718.html
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org