m2eclipse

pom.xml marks “Missing artifact com.sun:tools:jar:1.8.0”

一世执手 提交于 2021-02-10 21:21:25
问题 I am trying to develop with Eclipse 2020.6 and m2e using openJDK-11 on Win10 . The computer is maintained by IT department having jre-8 in its PATH and I dot have the rights to change that. I have installed JDK11 below my user folder. Changed eclipse.ini for Eclipse and toolchain.xml for commandline Maven . I also checked Module Dependencies in Java Build Path : com.sun.tools.jar is no longer there. Commandline Maven and Eclipse are using JDK11 instead of jre-8 , except the eclipse-editor for

Strange Characters instead of actual titles in Eclipse

六眼飞鱼酱① 提交于 2021-02-05 09:34:27
问题 Strange characters are being shown in different tabs in Eclipse IDE. I have tried reinstalling and nothing changed. But when I hover over those tabs it shows the actual name. The issue seems to be only with the different tabs, rest are fine(menus and project name inside the Workspace explorer) 来源: https://stackoverflow.com/questions/62970368/strange-characters-instead-of-actual-titles-in-eclipse

How do I configure Eclipse and Maven to detect jdk.tools?

北战南征 提交于 2021-01-28 01:42:41
问题 I have a maven project in Eclipse where I am using some hadoop libraries (hadoop-common, hadoop-auth, hadoop-hdfs) and these bring in a dependency on jdk.tools. When I check this project out on a different machine, it works fine, but on mine the pom.xml complains about "missing artifact jdk.tools:jdk:tools:jar:1.6". I can fix this by adding a dependency manually and specifying the file on my local drive (eg "${JAVA_HOME}/../lib/tools.jar") but I would like to understand why it works on one

pom文件报错org.apache.maven.archiver.mavenarchiver.getmanifest

社会主义新天地 提交于 2021-01-02 19:24:46
  eclipse导入新的maven项目时,pom.xml第一行报错: org.apache.maven.archiver.MavenArchiver.getManifest(org.apache.maven.project.MavenProject, org.apache.maven.archiver.MavenArchiveConfiguration)   原因是你的maven的配置文件不是最新的,执行以下步骤:   1、help->Install New Software -> add -> https://otto.takari.io/content/sites/m2e.extras/m2eclipse-mavenarchiver/0.17.2/N/LATEST/   或者http://repo1.maven.org/maven2/.m2e/connectors/m2eclipse-mavenarchiver/0.17.2/N/LATEST/    注意: 点击next前,将eclipse Install 窗口右下角的 "Contact all update sites during install to find required software"选项取消掉。   2、一直next confirm 安装更新,最后提示重启eclipse,重启后再右键项目maven

此环境中未提供编译器。也许您运行的是JRE而不是JDK?

久未见 提交于 2020-10-25 04:54:30
问题: I'm compiling a project in Eclipse using m2eclipse. 我正在使用m2eclipse在Eclipse中编译一个项目。 I set the JDK path in Eclipse like this: 我在Eclipse中设置JDK路径,如下所示: Windows-->preferences-->installed jres--> jdk1.7.xx path But this is showing an error 但这显示出错误 [ERROR] COMPILATION ERROR : [INFO] ------------------------------------------------------------- [ERROR] No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK? [INFO] 1 error [INFO] ------------------------------------------------------------- [INFO] -------------------------------------------------------------

此环境中未提供编译器。也许您运行的是JRE而不是JDK?

扶醉桌前 提交于 2020-08-11 05:26:31
问题: I'm compiling a project in Eclipse using m2eclipse. 我正在使用m2eclipse在Eclipse中编译一个项目。 I set the JDK path in Eclipse like this: 我在Eclipse中设置JDK路径,如下所示: Windows-->preferences-->installed jres--> jdk1.7.xx path But this is showing an error 但这显示出错误 [ERROR] COMPILATION ERROR : [INFO] ------------------------------------------------------------- [ERROR] No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK? [INFO] 1 error [INFO] ------------------------------------------------------------- [INFO] -------------------------------------------------------------

m2eclipse issues ArtifactTransferException - But pom.xml compiles / installs from the command line

自作多情 提交于 2020-04-07 14:22:11
问题 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>com.cloudst</groupId> <artifactId>cloudst</artifactId> <version>0.1.2</version> <packaging>jar</packaging> <name>cloudst</name> <url>http://maven.apache.org</url> <repositories> <repository> <id>com.springsource.repository.bundles.release</id> <url

Invoking the Exec Maven Plugin goal exec:java from any directory

孤街浪徒 提交于 2020-02-06 19:37:08
问题 I have been able to run an Eclipse Java Maven project from a Windows shell. However, I am able to do so only by invoking mvn from the parent directory of the Maven project. Is it possible to invoke mvn from any directory? In other words, are there any command line arguments mvn supports that would allow invocation from any directory? I am not able to gather this from the mvn manual page. 来源: https://stackoverflow.com/questions/58737699/invoking-the-exec-maven-plugin-goal-execjava-from-any

Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.6.0:java

…衆ロ難τιáo~ 提交于 2020-01-23 11:45:11
问题 I am trying to execute the testNG main class using pom.xml file by using the below command in Maven Run Configurations . exec:java -Dexec.mainClass=com.selenium.controls.TestNGMainClass Here, I am using Java 8 . But I got the below error. [INFO] ------------------------------------------------------------------------ [INFO] Building seleniumScriptsRegression 0.0.1-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- exec-maven-plugin:1.6.0

Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.6.0:java

旧街凉风 提交于 2020-01-23 11:44:55
问题 I am trying to execute the testNG main class using pom.xml file by using the below command in Maven Run Configurations . exec:java -Dexec.mainClass=com.selenium.controls.TestNGMainClass Here, I am using Java 8 . But I got the below error. [INFO] ------------------------------------------------------------------------ [INFO] Building seleniumScriptsRegression 0.0.1-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- exec-maven-plugin:1.6.0