Stackoverflow exception during maven package - eclipse

Need your help in fixing the maven compilation issue. I am not able to run any maven commands on my project. I am getting the following exception. Maven version used is
Maven home: C:\Program Files (x86)\maven\apache-maven-3.0.4\bin\..
Java version: 1.7.0_09, vendor: Oracle Corporation
Java home: C:\Program Files\Java\jdk1.7.0_09\jre
Default locale: en_US, platform encoding: Cp1252
OS name: "windows 7", version: "6.1", arch: "amd64", family: "windows"
Maven Command Used
mvn -o package and mvn package
Exception Stacktrace :-
Exception in thread "main" java.lang.StackOverflowError
at org.sonatype.aether.util.graph.PathRecordingDependencyVisitor.visitEnter(PathRecordingDependencyVisitor.java:88)
at org.sonatype.aether.impl.internal.GraphEdge.accept(GraphEdge.java:198)
at org.sonatype.aether.impl.internal.GraphEdge.accept(GraphEdge.java:202)
at org.sonatype.aether.impl.internal.GraphEdge.accept(GraphEdge.java:202)
Please give some idea to fix this issue.

Looks like a bug of Maven 3.0.4.
Upgrade to Maven 3.2.1 resolved that for me.

Related

Maven compilation error when run through command line - Cucumber Maven Project

mvn clean test running from command line says , No Compiler is provided in this environment , perhaps you are running on JRE rather than a JDK.
Selected Installed JRE's as latest JDK in preferences, still am getting the above error.
When running single feature file , the old code is being executed (i.e. though i comment out few steps from the scenario , they are being executed)
Same code when building with Jenkins is working fine.
Assuming windows and your actual directories may vary, make sure :
1) Your JAVA_HOME environment variable is set to .../jdk1.8/ directory
2) Your M2_HOME is set to your ../apache-maven-3.... directory
3) %JAVA_HOME%/bin & %M2_HOME%/bin are in your path
4) Check this with mvn -version, you should see something like:
Apache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5; 2015-11-10T16:41:47+00:00)
Maven home: C:\opensource\apache-maven-3.3.9
Java version: 1.8.0_92, vendor: Oracle Corporation
Java home: C:\PROGRA~1\Java\jdk1.8.0_92\jre
Default locale: en_GB, platform encoding: Cp1252
OS name: "windows 7", version: "6.1", arch: "amd64", family: "dos"

ObjectAid issue with version

Eclipse Kepler Environment:
JDK Compliance 1.6
Installed JREs: jre1.6
System Environment:
Java 1.6
I am using all the versions which should be suitable for ObjectAid, but I am still getting below error.
Error:
The selected wizard could not be started.
Plug-in com.objectaid.uml.cls was unable to load class com.objectaid.uml.cls.editor.NewClassDiagramWizard.
com/objectaid/uml/cls/editor/NewClassDiagramWizard : Unsupported major.minor version 52.0
Can anybody help on this please?
Thanks!
The error indicates you have installed ObjectAid 1.2 which requires JDK 8.
ObjectAid 1.1 still runs on JDK 6.

Maven 3.2.5 doesn't work with JDK6

I have an issue and after many attempts don't know how to resolve it.
I have Java/Maven project with JDK 6 and installed Maven 3.2.5 in Eclipse Luna
Now I'm trying to run clean install command to create ZIP package but getting the following error message:
Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project ABC: Fatal error compiling: invalid target release: 1.7
Does someone has this issue before and how do you resolve it.?
Could you help me please?
Thanks in advance.
The project you are attempting to compile specifies that the generated bytecode should be for Java 1.7. To do that you have to have a JDK7 or later.
Either change the project to specify 1.6, or upgrade your Java to 1.7. (There is really no reason to still stay on Java 1.6, it is old and obsolete now.)

eclipse importing a mavenproject

Please please help me ,
I have eclipse Luna installed (which is preloaded with maven), installed Maven Microsoft Windows [Version 6.3.9600]
(c) 2013 Microsoft Corporation. All rights reserved.
C:\>mvn -version
Apache Maven 3.2.5 (12a6b3acb947671f09b81f49094c53f426d8cea1; 2014-12-14T17:29:2
3+00:00)
Maven home: C:\software\apache-maven-3.2.5-bin\apache-maven-3.2.5\bin\..
Java version: 1.7.0_45, vendor: Oracle Corporation
Java home: C:\Program Files\Java\jdk1.7.0_45\jre
Default locale: en_GB, platform encoding: Cp1252
OS name: "windows 8", version: "6.2", arch: "amd64", family: "windows"
I have imported a maven project
Eclipse keeps giving me ERROR:Missing artifact org.springframework:spring-core:jar:3.1.0.RELEASE.
There is about 61 of these errors. How do I clear these ??
I am new to Maven , I found some example code which I am trying to import.
Thanks in advance
Jemrug

Gradle Integration for Eclipse daemon startup failure

I am new to Eclipse Juno using the Gradle Integration for Eclipse plugin. I am at a loss why gradle works perfectly from the command line and as an external tool; but in Eclipse Juno Package Explorer menu: gradle task it fails constantly with the following stack trace:
Error while initializing classpath container
Unable to start the daemon process.
This problem might be caused by incorrect configuration of the daemon.
For example, an unrecognized jvm option is used.
Please refer to the user guide chapter on the daemon at http://gradle.org/docs/1.5/userguide/gradle_daemon.html
Please read below process output to find out more:
java.lang.IllegalArgumentException: URI has an authority component
at java.io.File.(File.java:423)
at org.gradle.api.internal.classpath.EffectiveClassPath.findAvailableClasspathFiles(EffectiveClassPath.java:41)
at org.gradle.api.internal.classpath.EffectiveClassPath.(EffectiveClassPath.java:32)
at org.gradle.api.internal.classpath.DefaultModuleRegistry.(DefaultModuleRegistry.java:61)
at org.gradle.api.internal.classpath.DefaultModuleRegistry.(DefaultModuleRegistry.java:55)
at org.gradle.launcher.bootstrap.ProcessBootstrap.runNoExit(ProcessBootstrap.java:41)
at org.gradle.launcher.bootstrap.ProcessBootstrap.run(ProcessBootstrap.java:32)
at org.gradle.launcher.daemon.bootstrap.GradleDaemon.main(GradleDaemon.java:22)
Could not fetch model of type 'EclipseProject' using Gradle distribution 'http://services.gradle.org/distributions/gradle-1.5-bin.zip'.
The env variables for GRADLE_HOME, GRADLE_USER_HOME, PATH are all setup correctly. From the command line gradle -v returns:
Gradle 1.6
Gradle build time: Tuesday, May 7, 2013 9:12:14 AM UTC
Groovy: 1.8.6
Ant: Apache Ant(TM) version 1.8.4 compiled on May 22 2012
Ivy: 2.2.0
JVM: 1.7.0_45 (Oracle Corporation 24.45-b08)
OS: Windows 7 6.1 amd64
Eclipse version:
Eclipse Java EE IDE for Web Developers.
Version: Juno Service Release 2
Build id: 20130225-0426
OS is Win7 64 on amd64 platform with 4GB of system memory so it show not be a memory issue and there are no gradle daemons running when I get the above stack trace in Eclipse Juno.
I have exhausted all means on the web, this site, and my team to resolve the issue. I need some help please.
Windows 7 sets the user.home as a UNC path.
Add -Duser.home=x:\ to your Eclipse INI file where "x" is a local drive name.
That should solve your problem
If you are using the Gradle plugin, ensure it is pointing to the correct Gradle installation. I get the error you show when I use the embedded Gradle that comes with Spring Tools Suite.