eclipse importing a mavenproject - eclipse

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

Related

Why is my VSCode debugger stopping in the Method.class file?

All of a sudden, the debuggger stops at return ma.invoke(obj, args);in the java.lang.reflect.Method.class file.
And it ignores my own breakpoints.
I'm under release:
Version: 1.36.1
Commit: 2213894ea0415ee8c85c5eea0d0ff81ecc191529
Date: 2019-07-08T22:55:08.091Z
Electron: 4.2.5
Chrome: 69.0.3497.128
Node.js: 10.11.0
V8: 6.9.427.31-electron.0
OS: Linux x64 5.0.0-050000-generic snap
I have the following extensions:
Name: Java Extension Pack
Id: vscjava.vscode-java-pack
Description: Popular extensions for Java development and more.
Version: 0.7.1
Publisher: Microsoft
VS Marketplace Link: https://marketplace.visualstudio.com/items?itemName=vscjava.vscode-java-pack
Name: Language Support for Java(TM) by Red Hat
Id: redhat.java
Description: Java Linting, Intellisense, formatting, refactoring, Maven/Gradle support and more...
Version: 0.47.0
Publisher: Red Hat
VS Marketplace Link: https://marketplace.visualstudio.com/items?itemName=redhat.java
Name: Debugger for Java
Id: vscjava.vscode-java-debug
Description: A lightweight Java debugger for Visual Studio Code
Version: 0.20.0
Publisher: Microsoft
VS Marketplace Link: https://marketplace.visualstudio.com/items?itemName=vscjava.vscode-java-debug
Doing a Java: Clean the Java language server workspace solved the issue.

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"

Can't install MobileFirst 7.1.0 studio on Eclipse Luna 4.4.2

I'm trying to install Mobile First 7.1.0 platform studio on Luna Service Release 2 (4.4.2) - 64bit as written in Mobile First requirements. My java is as following:
java version "1.8.0_65"
Java(TM) SE Runtime Environment (build 1.8.0_65-b17)
Java HotSpot(TM) 64-Bit Server VM (build 25.65-b01, mixed mode)
I'm trying to install from Eclipse Marketplace and after few minutes of installation I get the following error:
Cannot complete the install because one or more required items could not be found.
Software being installed: IBM jQuery Mobile Tools 7.1.0.00-20151219-1535 (com.ibm.webtools.jquery.tools.licensed.feature.feature.group 7.1.0.00-20151219-1535)
Missing requirement: IBM MobileFirst Platform Studio 7.1.0.00-20151219-1535 (com.worklight.studio.feature.feature.group 7.1.0.00-20151219-1535) requires 'org.apache.commons.collections4 [4.0.0]' but it could not be found
Cannot satisfy dependency:
From: IBM MobileFirst Platform Studio 7.1.0.00-20151219-1535 (com.ibm.imp.tools.wce.feature.feature.group 7.1.0.00-20151219-1535)
To: com.worklight.studio.feature.feature.group 7.1.0
Cannot satisfy dependency:
From: IBM jQuery Mobile Tools 7.1.0.00-20151219-1535 (com.ibm.webtools.jquery.tools.licensed.feature.feature.group 7.1.0.00-20151219-1535)
To: com.ibm.imp.tools.wce.feature.feature.group 7.1.0
Any help would be highly appreciated.
See here: Issues installing MobileFirst Studio v7.1
This has been identified as a defect introduced in a recent iFix and is in the process of being fixed. I will update this answer once a fixed version will be available via Eclipse Marketplace.
As a workaround you can install an older release and then select to update it using the "faulty" release through Eclipse Marketplace. The update will work as the problem manifests itself only in new installations.
For reference, this is APAR - PI54604 CANNOT INSTALL MOBILEFIRST PLATFORM STUDIO 7.1 ON ECLIPSE.
#Idan: I have tried same steps as mentioned above but got the same error like #Anatoly. Let me know any other solution for the same.

Stackoverflow exception during maven package

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.

Mobile Tools for Java 1.1.0 plug-in to eclipse

i tried to add Mobile Tools for Java 1.1.0 plug-in in eclipse juno but it shows the below error
Error
Thu Dec 06 12:20:33 IST 2012
No repository found at http://download.eclipse.org/dsdp/mtj/updates/1.1.0/stable.
is there any-other way to add this plug-in ?
There is already version 1.1.2 available at http://download.eclipse.org/mtj/updates/1.1.2/stable/
But MTJ is known for not working with Juno. Please, try it with Indigo.