m2eclipse

Version 1.8 of project facet java does not exist

萝らか妹 提交于 2019-11-28 04:38:29
I'm trying to build a Dynamic Web Application in eclipse using Java 8 (and Wildfly appServer if that matters) but I'm unable to make Eclipse Luna M5 use Java 8 (I do have Java 8 BETA support installed and it works on JavaSE projects). In my POM I set the level to Java 8: <plugin> <artifactId>maven-compiler-plugin</artifactId> <version>3.1</version> <configuration> <source>1.8</source> <target>1.8</target> </configuration> </plugin> But after I do maven -> update project I get the following error: Could not update project ExampleApp configuration Version 1.8 of project facet java does not exist

How to exclude a folder that is producing warnings/errors in an Eclipse project?

ⅰ亾dé卋堺 提交于 2019-11-28 04:37:25
Okay. I'm sick of this problem. This has to have an easy fix, I'm sure of it!! I hope SO can help me to get rid of this once and for all! Question How do we get Eclipse to stop trying to process/compile all files under a particular project directory? The goal is for no errors/warnings to exist in the problems view if they relate to something in this folder or it's subfolders. Background We run Eclipse 3.6 and the m2eclipse plugin v0.10.2.20100623 manages our autobuild. For reasons beyond my control, we have the entire BlazeDS distribution in our SVN project directory under src/main/resources

Tomcat throws ClassNotFound exceptions for classes in other open eclipse projects

巧了我就是萌 提交于 2019-11-28 04:33:17
I have an eclipse project structure that looks something like this: eclipse project a project b All of these projects are Maven projects. Project B is an Eclipse WTP project and contains Project A as a dependency. I'm using the m2eclipse plugin. When I deploy Project B to Tomcat (all from within Eclipse) it always throws errors saying that it can't find classes from Project A. The only way I can resolve this is to close Project A in Eclipse and do a mvn install command, so at this point Project A is treated like any other dependency. I would like to not have to keep reopening and then closing

How To: Eclipse Maven install build jar with dependencies

房东的猫 提交于 2019-11-28 03:51:39
I am using Eclipse Maven (m2e) inside Eclipse and I am running my project like this: My pom.xml looks like this: <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/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>ro.project</groupId> <packaging>jar</packaging> <version>1.0-SNAPSHOT</version> <name>ro.project</name> <properties> <org.springframework.version>3.1.1.RELEASE</org.springframework.version> <org.hibernate.version>4.1.0.Final</org.hibernate

m2eclipse error

。_饼干妹妹 提交于 2019-11-28 02:56:58
I am developing a web application with Eclipse and I generate the project with a maven archetype. When I enable maven dependency management, Eclipse mark some errors in the pom file, this error is: Multiple annotations found at this line: - Execution default-testResources of goal org.apache.maven.plugins:maven-resources- plugin:2.4.3:testResources failed: Plugin org.apache.maven.plugins:maven-resources-plugin:2.4.3 or one of its dependencies could not be resolved: Failed to collect dependencies for org.apache.maven.plugins:maven-resources-plugin:jar:2.4.3 () (org.apache.maven.plugins:maven

Java compiler level does not match the version of the installed Java project facet

限于喜欢 提交于 2019-11-28 02:41:01
I have created a New Dynamic Project under Eclipse Helios Version, where my JRE Version is set to 1.6. I have added Maven capabilities to the Web Application by clicking on Configure → Convert to Maven Project . After adding this, a build error appeared in the Eclipse Problems view: Java compiler level does not match the version of the installed Java project facet. Unknown Faceted Project Problem (Java Version Mismatch) Please tell me how to resolve this error (I want to have my JRE version as 1.6 only). Assuming that you are using the m2e plugin in Eclipse, you'll need to specify the source

Maven 3 Artifact problem

寵の児 提交于 2019-11-27 22:41:25
I made a new struts project in eclipse using the struts2-archtype-starter. A few errors where in my project already before doing anything. Solved most of them but there is 1 the still give me some problems. Missing artifact com.sun:tools:jar:1.5.0:system pom.xml I tried to add the tools.jar to my repository manually but that didn't solve the issue. My pom looks like this <?xml version="1.0" encoding="UTF-8" ?> <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

彻底解决m2eclipse之Unable to update index for central |

有些话、适合烂在心里 提交于 2019-11-27 20:39:40
maven是个好东西,eclipse上的maven插件m2eclipse也非常方便,但是最近这个东西经常无法连接到maven index的更新网站,然后eclipse就很无奈的出现提示out of momery... google了下,发现大片的相同问题,但是解决方案就大都比较 而且有个解决方法被无数人转载——直接禁用maven index的自动更新。。。 好吧,我知道不用maven的人很多。。。对这部分人来说禁用确实是个办法。。。 不过经常要用的怎么办?目前我就有不少地方需要经常更改pom.xml,试验新的东西,如果每次都要去网页里搜索那就太悲剧了。。。 这个问题的原因很明显:m2eclipse连不上maven index更新站点,咱们不谈原因,遇到这种问题日程解决的办法有: 1 弄个代理继续上 这里可以设置.m2/settings.xml内的proxy部分,加上代理就ok。限制是你得有稳定好使的代理。。。虽然我有个常用的代理,不过这两天同样不好使。。略过 2 自已架设or找个镜像站连上去 自已架设。。。由于想尽快搞定,不去花这心思了。。 然后就镜像吧。一开始想找国内的,失败了。。。环境太恶劣,不说了 最后在maven官方镜像介绍的doc里找到个uk的镜像。。。试了下,能用。OK,就是它了: 也是在.m2/settings.xml内设置 <mirror> <id>UK</id>

Eclipse JVM configuration

允我心安 提交于 2019-11-27 20:39:06
Background: I've got a new eclipse installation and have installed the m2eclipse plugin. After startup m2eclipse generates the message: Eclipse is running in a JRE, but a JDK is required Following the instructions from here I've changed the eclipse.ini file to use the JDK JVM: -startup plugins/org.eclipse.equinox.launcher_1.0.200.v20090520.jar --launcher.library plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.0.200.v20090519 -product org.eclipse.epp.package.jee.product --launcher.XXMaxPermSize 256M -showsplash org.eclipse.platform --launcher.XXMaxPermSize 256m -vmargs -Dosgi

Maven in Eclipse complains that “Unable to locate the Javac Compiler” whenever POM changed

自作多情 提交于 2019-11-27 19:45:35
I got error message every time I changed my pom.xml in eclipse. Build errors for myapp; org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.0.2:compile (default-compile) on project web: Compilation failure Unable to locate the Javac Compiler in: C:\Program Files (x86)\Java\jre6\..\lib\tools.jar Please ensure you are using JDK 1.4 or above and not a JRE (the com.sun.tools.javac.Main class is required). In most cases you can change the location of your Java installation by setting the JAVA_HOME environment variable I