m2e

Getting “The POM for <name> is invalid, transitive dependencies (if any) will not be available” only in Eclipse

人走茶凉 提交于 2019-12-06 01:48:36
问题 I have recently upgraded to JAXB 2.2.11 and noticed in my Eclipse console the following message: 10/15/14, 11:42:46 PM GMT+2: [INFO] Creating new launch configuration 10/15/14, 11:42:58 PM GMT+2: [INFO] C:\Projects\workspaces\mj2p\maven-jaxb2-plugin-project\tests\JAXB-1044 10/15/14, 11:42:58 PM GMT+2: [INFO] mvn -B -X -e clean install 10/16/14, 12:09:07 AM GMT+2: [WARN] The POM for com.sun.xml.bind:jaxb-impl:jar:2.2.11 is invalid, transitive dependencies (if any) will not be available: 1

Eclipse doesn't start in Ubuntu 14.04

谁说我不能喝 提交于 2019-12-06 01:33:59
问题 I have a problem trying to launch Eclipse in Ubuntu 14.04. Splash picture pops up, then blinks, turns white - and nothing happens until kingdom come. I have tried Luna, Kepler and 3.8 (from Ubuntu repository). EE and SE editions - both the same. I have also tried to launch them with different (oracle) vm - 1.7 and 1.8. And yes, I have tried the -clean and simple workspace removal. This is the only thing it says in console: org.eclipse.m2e.logback.configuration: The org.eclipse.m2e.logback

Unable to start Jetty Server - Error scanning entry META-INF/versions/9/

这一生的挚爱 提交于 2019-12-06 00:00:23
When running XACML-PAP-ADMIN and XACML-PAP-REST on Windows 10. Java jdk1.8.0_144. I get next error: Error scanning entry META-INF/versions/9/module-info.class from jar file:///D:/Projects/XACML/XACML-PAP-ADMIN/target/xacml-pap-admin-2.0.0-SNAPSHOT/WEB-INF/lib/log4j-api-2.11.0.jar That could be linked to your version of Jetty, considering it fails on log4j 2.11 jar. See this question : log4j 2.9 and later are multi-release jars for Java 9 . Make sure to use a Jetty compatible with that, or use slf4j instead . 来源: https://stackoverflow.com/questions/51999676/unable-to-start-jetty-server-error

Maven project dependency error in eclipse using m2e plugin (for maven)

为君一笑 提交于 2019-12-05 13:28:49
I am working on a java maven project in eclipse using the m2e plugin. I updated my system and my jvm updated from icedtea-bin-6.1.11.4 to icedtea-bin-6.1.11.5. Eclipse now outputs the below error in my pom file and I can't run my project. I am new to maven and eclipse and, after a day of googling, I still haven't managed to find a solution for this. I personally think that this is some sort of problem with eclipse (a misconfiguration?), because I am able to get a successful build on the command line with mvn clean install -U . Moreover, I get the same error even on a fresh eclipse install

Why Jenkins fails to load the resources?

十年热恋 提交于 2019-12-05 04:39:48
Here is the layout of my project: src/ test/ resources/ ares/ file1.xml file2.xml Here is the layout of the Jenkins workspace: my-module/ target/ test-classes/ ares/ file1.xml file2.xml Under eclipse the tests run without any error. On Jenkins, the tests just fail. Jenkins is unable to locate the resources. Below are some output from the test execution: Eclipse MyClass.class.getResourceAsStream(/ares/file1.xml) => java.io.BufferedInputStream@4f4b2f1a MyClass.class.getResourceAsStream(ares/file1.xml) => null Thread.currentThread().getContextClassLoader().getResourceAsStream(/ares/file1.xml) =>

How to set default Maven's Java in Eclipse?

。_饼干妹妹 提交于 2019-12-05 02:38:08
If I create new Maven project in Eclipse and base it on quickstart archetype, it appears with J2SE-1.5 in Java Build Path window and 1.5 in Java Compiler / JDK Compliance window. So, I usually have to change this to other Java manually. Where are these default setting come from? How to change to 1.6 or 1.7? The m2eclipse plugin uses the settings from the POM. So you need to add this to your POM: <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>3.1</version> <configuration> <source>1.6</source> <target>1.6</target> </configuration> <

Eclipse Maven Error Plugin execution not covered by lifecycle configuration:

时间秒杀一切 提交于 2019-12-05 02:04:57
问题 I am using Eclipse Juno with Maven 3.0.5 on Windows 7. The project was previously on Windows XP and I have moved to Windows 7 64 bit machine. I have copied my Eclipse Spring 3, Hibernate 4 and JSF 2.0 project and when I try to compile I am getting the following error Plugin execution not covered by lifecycle configuration: org.bsc.maven:maven-processor-plugin:2.0.6:process (execution: process, phase: generate-sources) I tried as mentioned in this thread by adding the following in Eclipse.ini

m2e: copy-dependencies is not supported by m2e

点点圈 提交于 2019-12-04 23:42:01
问题 I get this error in my pom.xml , and I can't understand what I need to change in order to get eclipse to run the project (run as -> maven build) <build> <plugins> <plugin> <artifactId>maven-jar-plugin</artifactId> <configuration> <archive> <manifest> <addClasspath>true</addClasspath> <classpathPrefix>lib/</classpathPrefix> <mainClass>com.cc.adapter.mock.InsertAccountStarter</mainClass> </manifest> </archive> </configuration> </plugin> <plugin> <artifactId>maven-dependency-plugin</artifactId>

Why Maven project is tied to J2SE-1.5 by default?

℡╲_俬逩灬. 提交于 2019-12-04 10:22:14
问题 If I create default empty based on no archetype Maven project in Eclipse , it will be based on J2SE-1.5 . I am to change manually both Build Path entry and code compliance. Why? How to make it be other? 回答1: @axtavt is right, add source level configuration to your project. But do not configure maven-compiler-plugin , simply put this properties into pom.xml . <properties> <maven.compiler.source>1.7</maven.compiler.source> <maven.compiler.target>1.7</maven.compiler.target> </properties> After

How to add pom.xml to existing Eclipse project?

那年仲夏 提交于 2019-12-04 08:53:35
问题 I'm new to Maven and use Eclipse Juno. I've installed Maven Integration for Eclipse. There are three options in File > New > Other > Maven: 1. Checkout Maven Projects from SCM 2. Maven Module 3. Maven Project But I don't see Maven2 POM as described here. I've read that adding pom.xml is the first thing to do when using Maven. I have an existing Dynamic Web Project so I'm not sure whether I need to create Maven Project just to use Maven. How to use Maven with this existing project? Further,