m2e

What is Eclipse doing when it says that it's updating indexes?

馋奶兔 提交于 2019-11-28 18:32:39
When I load up a workspace (for Android Java development), Eclipse says in the status bar that it's updating indexes. The Progress tab reports that it's hitting maven.org. I read up on Maven - seems like a build manager. What I don't understand is why my Android workspace needs it or why it's hitting the server in the cloud. Do I need it? If not, how do I safely remove it? This is a general step that happens when m2e/m2eclipse (Maven integration for Eclipse) is installed, whether projects are actively using it or not. This step can be disabled through the Eclipse preferences: Window /

How to deal with missing src/test/java source folder in Android/Maven project?

别来无恙 提交于 2019-11-28 17:24:59
I'm not very experienced with Maven in combination with Android yet, so I followed these instructions to make a new Android project. When the project has been created, I get the following error message: Project 'xxx-1.0-SNAPSHOT' is missing required source folder: 'src/test/java' When I try to add a new source folder with New->Other->Java-Source Folder with src/test/java, I get another error message: The folder is already a source folder. But I don't have any src/test/java folder in my project. How should I deal with that? What's the clean way to setup the project, because I assume that there

How to eliminate the “maven-enforcer-plugin (goal ”enforce“) is ignored by m2e” warning by eclipse?

雨燕双飞 提交于 2019-11-28 17:22:09
问题 I am configuring a multi-module parent child maven project using maven and eclipse m2e, I am using the latest stuff from eclipse Juno SR1 which is m2e 1.2.0 the parent pom uses the enforcer plugin, so the parent pom.xml has the following in its plugin section <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-enforcer-plugin</artifactId> <version>1.1.1</version> <executions> <!-- Enforce that all versions of a transative dependency must converge. --> <execution> <id

Can't install Maven SCM Handler for EGit for Juno

安稳与你 提交于 2019-11-28 16:50:34
问题 I've updated my eclipse indigo to juno via the Help->Check for updates menu. I noticed I had updates for egit (2.x) and jgit (2.x) which clashed with my current installations (1.3.x) and so I removed all my egit plugins (eigt,jgit,egit-mylyn and Maven SCM Handler for EGit). I then tried to install the above egit plugins and was able to install egit and jgit but was unable to install Maven SCM Handler for EGit. I tried updating grvia the m2e marketplace and got the following error: Cannot

Eclipse JRE System Library [J2SE-1.5]

拜拜、爱过 提交于 2019-11-28 16:40:14
I'm using Eclipse EE 3.7 with m2e plugin installed. I have JDK7 set in eclipse. When I import maven projects, the JRE is set to JRE System Library [J2SE-1.5] , So i have compilation issues with java 6 related stuff. Instead I want the JRE in eclipse to be by default set to JRE System Library [J2SE-1.6] When i try to open a new project in eclipse File -> new -> Java project on the first screen i have an option to choose JRE and the third option is Use default JRE (currently 'jdk1.7.0_03') From this i can see that the default JRE in Eclipse is 1.7, but when i import new Maven projects, the JRE

m2e-wtp error: <path>/target/m2e-wtp/web-resources/META-INF/MANIFEST.MF (No such file or directory)

家住魔仙堡 提交于 2019-11-28 16:28:45
I use m2e 1.2.0 and m2e-wtp 0.16.0, and occasionally my Eclipse build fails with the error: <path>/target/m2e-wtp/web-resources/META-INF/MANIFEST.MF (No such file or directory) The problem can be temporarily solved by doing a Maven->Update project... , but the error will come back after a while. Not sure what exactly the trigger is.... Any suggestions on how to fix the issue permanently? [Edit] I found that the issue is triggered when I build the project externally using the Maven command line directly. This will remove the default MANIFEST.MF that m2e-wtp generates, and it apparently doesn't

In Eclipse m2e, how to reference workspace project?

和自甴很熟 提交于 2019-11-28 14:39:15
问题 How can I reference another workspace project using Eclipse m2e ? Do I have to add a project dependency in the project setting? But in that case the dependency is not shown in the pom. If I set them in the pom, it will not reference the project in workspace but reference the jar in the local repository. Quite annoying, anyone can help? 回答1: The correct way to do this is the following: Use the dependencies section in the POM file exclusively, don't fiddle with the Eclipse project references.

ADT+Android-m2e环境搭建(Mac OS)

人走茶凉 提交于 2019-11-28 11:22:18
环境要求 J DK1.6+ Maven 3.1.1+ Eclipse Indigo(3.7)、Juno(4.2)以上版本 虽然m2e-android官方推荐Eclipse使用Indigo和Juno以上版本,但本文是基于Kepler(4.3)来分享安装过程的。并整理了Juno(4.2)安装遇到的一些问题,其他版本可能会遇到一些其他的问题。 下载&安装 Maven 下载地址: http://maven.apache.org/download.html 描述:就像ant一样的一套工具,稍后安装的插件需要依赖maven 安装:直接下载binary文件,解压即可。 插件 我们的安装目标是m2e-android,但该插件依赖m2e(Maven Integration for Eclipse)。有两种策略: * 直接安装m2e-android,在安装过程中自动检测依赖,选择依赖的的m2e即可; * 先安装m2e,再安装m2e-android,这种适用于使用Juno版本的Eclipse,经过尝试,Juno无法直接安装m2e-android。 m2e-android(Android for Maven Eclipse)的安装 插件官方文档: http://rgladwell.github.io/m2e-android/ 描述:专用于ADT的maven插件。由于m2e-android的update

How to preinstall Eclipse m2e configurators (Plugin execution not covered by lifecycle configuration)

本秂侑毒 提交于 2019-11-28 11:21:39
When importing maven projects into Eclipse IDE fresh install, there is a pop-up question to "Setup Maven plugin connections" If not to install there will be errors shown in pom.xml like Plugin execution not covered by lifecycle configuration: org.eclipse.tycho:tycho-packaging-plugin:0.20.0:validate-id (execution: default-validate-id, phase: validate) How to install m2e configurators at any time (e.g. before when preparing Eclipse package for team, or again after interactive installation failed over network)? You can install M2Eclipse connectors at any time by going to "Window > Preferences >

With maven - clean package, xml source files are not included in classpath

不羁的心 提交于 2019-11-28 09:41:57
So it seems that Maven package is setup by default to compile but not copy xml files in the java classpath, unless they're already there. In Eclipse, I created the simplest test, a default spring mvc template app. There are only two files in the java source, a java controller and dummy xml file. The pom is: <?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/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>com