Re: Maven java.lang.OutOfMemoryError
Thanks guys for your suggestions. I have used the following compiler plugin configuration: org.apache.maven.plugins maven-compiler-plugin 1.5 1.5 UTF-8 true 512m 1024m 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 : >> >> 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: >> >> org.apache.maven.plugins >> maven-compiler-plugin >> >> 1.5 >> 1.5 >> UTF-8 >> -Xms512m >> -Xmx1024m >> true >> >> >> >> 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
Maven java.lang.OutOfMemoryError
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: org.apache.maven.plugins maven-compiler-plugin 1.5 1.5 UTF-8 -Xms512m -Xmx1024m true 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: How to omit generated jar version number?
Thank you Ketil. It helped! Ketil Aasarød wrote: > > In your pom.xml, add the following in the build-section: > > ${artifactId} > > The default value for finalName is ${artifactId}-${version}. > > -ketil > > On Tue, Aug 11, 2009 at 10:25 AM, kopemor > 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
How to omit generated jar version number?
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