m2eclipse

Android 4.0 Eclipse compilation failed

百般思念 提交于 2019-12-05 00:57:57
问题 Today I switched to Android 4.0 for app developent using Eclipse. After upgrading I get the following exception. Any ideas? Some blog entries mentioned to remove the Android library from the Eclipse project update the project configuration, but this does not work. [2011-10-27 22:29:27 - ...] Dx warning: Ignoring InnerClasses attribute for an anonymous inner class (org.apache.commons.logging.impl.LogFactoryImpl$1) that doesn't come with an associated EnclosingMethod attribute. This class was

How to disable auto “Update Maven Dependencies” after saving a pom.xml?

谁说胖子不能爱 提交于 2019-12-04 22:32:07
问题 How to disable auto "Update Maven Dependencies" after saving a pom.xml in Eclipse IDE with m2eclipse Plugin? 16.04.10 11:09:40 MESZ: Refreshing [/project/pom.xml] 16.04.10 11:09:40 MESZ: Maven Builder: AUTO_BUILD 回答1: You can't. But why would you even want to do that? Keeping your project build path in sync with the pom is a good thing. 回答2: Window -> Preferences -> Maven -> enable Offline option 回答3: You can edit "Goals to run when updating project configuration" in Window > Preferences >

eclipse indigo marketplace Maven Integration install error

a 夏天 提交于 2019-12-04 12:35:05
问题 Use the marketplace in eclipse indigo to install Maven Integration for eclipse. But when confirming selected features, no matter I choose "Maven Integration for eclipse" only or with "slf4j over logback logging",the error remains : Cannot complete the provisioning operation. Please change your selection and try again. See below for details. Cannot complete the install because one or more required items could not be found. Software being installed: m2e - Maven Integration for Eclipse 1.4.0

src/main/webapp directory not recognized by Eclipse

心不动则不痛 提交于 2019-12-04 09:17:55
问题 I use m2eclipse to import Maven Java projects in Eclipse. It fails to recognize src/main/webapp as a source directory. Graphically in the package explorer (or when I look into Java-Build-Path in the project's properties), this directory isn't in the list of sources folder (while src/main/java or src/main/resources do). To access it, I have to look directly into the src/ directory, and start unfolding... Not very convenient! However, if I run maven install , the resources are copied to the

What is the difference between “Maven Install” and “Maven Build” with M2Eclipse?

。_饼干妹妹 提交于 2019-12-04 08:56:08
问题 I tried to search about the differences between maven install and maven build in the eclipse m2e plugin (if you right click the project and click "run as", you will see them), and I still cannot find a good explanation of them (I looked through the official document as well). Anyone can help? From what I currently understand: maven install: build and install the artifacts in to the local repository maven build: only build but not install? what does install mean then? Also, when you checkout a

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,

Eclipse has no Java facet version 1.8

拟墨画扇 提交于 2019-12-04 07:42:41
I am using eclipse Kepler (enterprise edition), Java 8, and M2Eclipse and trying to make a web application. I have already gone to help -> eclipse marketplace and installed these two patches: Java 8 support for Eclipse Kepler SR2 Java 8 support for m2e for Eclipse Kepler SR2 Those patches cleared up a lot of my problems, but one remains. I did a maven -> update from within eclipse, it went and updated all my projects except the only web app in my workspace. It gives me a pop up message that says "Version 1.8 of project facet java does not exist" I opened my project properties and clicked

Automatic update of generated css files via m2e

北战南征 提交于 2019-12-04 05:29:39
I'm using the lesscss-maven-plugin to generate different css files to the target directory ( target\generated-sources ) and then use maven-war-plugin to add this directory as an webResouce. Those files will generate perfectly fine. However the m2e-plugin (version 1.0.0) won't copy those files in the according web-resources folder ( m2e-wtp\web-resources ), when they have changed . Only when I run a eclipse "maven/update project" changes will be updated. But I want the changes to take affect automatically, when the files have changed. Here is my pom configuration: <plugin> <groupId>org.eclipse

Can't find maven 'update dependencies' menu on Eclipse juno

笑着哭i 提交于 2019-12-04 03:03:57
问题 I used to have 'update dependencies' menu in project right click menu, when I was using eclipse helios. But from when I update the eclipse & m2e plugin, I can't find 'update dependencies' menu anymore. whre is 'update dependencies' menu? or is there any alternative? I'm using m2e v1.1.0.20120530-0009, by the way thank you in advance. 回答1: The menu entry is now "Update Project". In that wizard you find a checkbox "Update dependencies". 回答2: And now "Update Project" gives you option to do

Is there a way to force maven to copy resource folder changes incrementally?

泪湿孤枕 提交于 2019-12-04 02:24:52
I'm using Maven 2.2.1 and m2eclipse. I have two resource folders. When I save a change to any file in any of the resource folders, the Maven incremental build kicks off and re-copies ALL files in both resource folders to the target folders. This behavior would be fine if there were a relatively small number of files in the resource folders - but there are enough that the copy can take several minutes. Is there a way to force maven to be more selective in its incremental build and copy only those resources that were changed? I chased the problem down to org.codehaus.plexus.util.FileUtils