m2eclipse

Classic error: Unable to update index for central|http://repo1.maven.org/maven2

最后都变了- 提交于 2019-11-27 19:03:40
I am facing a situation where my eclipse indigo is "Unable to update index for central|http://repo1.maven.org/maven2" . I am using an external Maven 3.0.3 installation and m2eclipse configured with Eclipse Indigo and I am definitely not behind any proxy. Also my networking configuration in eclipse is all set to direct and I am still unable to update the indices. What may I have overlooked? I have searched on Google and other forums but am unable to resolve it. From Wojtek's link. Close Eclipse Delete workspace_location/.metadata/.plugins/org.maven.ide.eclipse/nexus Delete workspace_location/

Maven and eclipse: a reliable way to add non-Maven or external jars to a project?

。_饼干妹妹 提交于 2019-11-27 18:45:40
Maven is great. It mostly keeps me out of jar dependency hell by specifying versions of dependent packages in the pom configuration, and applies them automatically. It also has great integration with Eclipse via m2e, so that things work seamlessly in an IDE. This is all great for dependencies that are globally known to Maven. However, sometimes, there are libraries that need to be included in a project that is not available in the Maven repos. In this case, I usually add them to a lib/ directory in my project. As long as they are in the classpath then things compile. However, the problem is

get rid of POM not found warning for org.eclipse.m2e:lifecycle-mapping

给你一囗甜甜゛ 提交于 2019-11-27 17:41:19
With intent to get m2e 1.0 working correctly I have had to specify the lifecycle mapping: <pluginManagement> <plugins> <plugin> <groupId>org.eclipse.m2e</groupId> <artifactId>lifecycle-mapping</artifactId> <version>1.0.0</version> <configuration> <lifecycleMappingMetadata> <pluginExecutions> <pluginExecution> <pluginExecutionFilter> <groupId>org.bsc.maven</groupId> <artifactId>maven-processor-plugin</artifactId> <versionRange>[2.0.2,)</versionRange> <goals> <goal>process</goal> </goals> </pluginExecutionFilter> <action> <execute /> </action> </pluginExecution> </pluginExecutions> <

Error while installing Maven Integration for Eclipse

我只是一个虾纸丫 提交于 2019-11-27 17:20:11
问题 I'm trying to install Maven integration for Eclipse (Galileo) through Install New Software menu nad using the sonatype link http://m2eclipse.sonatype.org/sites/m2e And getting following error: Cannot complete the install because one or more required items could not be found. Software being installed: Maven Integration for Eclipse (Required) 0.12.0.20101115-1102 (org.maven.ide.eclipse.feature.feature.group 0.12.0.20101115-1102) Missing requirement: Maven Integration for Eclipse (Required) 0.12

Maven “Module” vs “Project” (Eclipse, m2eclipse plugin)

那年仲夏 提交于 2019-11-27 16:58:35
I'm a beginner at Maven and I've played with it from a command line point of view a little, so now I was trying to use it in Eclipse; I installed the m2eclipse plugin to do so. But I'm stumped from the very beginning! Apparently I've missed a bit of terminology somewhere along the line. I can't keep track of all these new Maven terms... What is a Maven Project, and what is a Maven Module? These are my options when creating a new project in the Maven category in Eclipse. They are basically the same thing, but with one difference. When you create a module, you must specify a parent project. When

Eclipse Maven showing multiple paths for the same file

本小妞迷上赌 提交于 2019-11-27 16:14:49
问题 Is there any setting in Eclipse to show only the Maven project where the file resides? I have different Maven projects which are modules of a parent Maven project: projParent |-projWeb |-projModel |-projServices |-... If I look for a file using "Open Resource" (using Ctrl + Shift + r ) in Eclipse, it appears in many projects (E.g.: in projParent and in projWeb). Is there any way to show only relevant folder where that file is actually resided in? 回答1: Try defining a Working Set that includes

How do i remove m2eclipse from my eclipse installation?

Deadly 提交于 2019-11-27 15:52:29
问题 I don't need m2eclipse to work properly, I just need to remove m2eclipse for now and let eclipse behave normally. how do i do this? 回答1: Two solutions: Remove the plugin through the list of installed plugins (the illustrations are from the blog post "Install Eclipse UI Form Editor" written by Albert ATTARD): The "about eclipse" menu will give you access to the list of installed Software: You can click on the right application (m2eclipse for you, Jiglo in this example), and click uninstall,

Can I Configure m2eclipse through pom.xml?

。_饼干妹妹 提交于 2019-11-27 14:23:58
With the maven-eclipse-plugin, using mvn eclipse:eclipse , you can specifiy eclipse project natures and builders that will automatically be added to the eclipse project. Earlier versions of m2eclipse used the configuration block of the maven-eclipse-plugin and also let you activate natures and builders using the same mechanisms. This seems to no longer be the case because a) I can't find any reference to maven-eclipse-plugin in the m2eclipse sources and b) it just doesn't work :-) So this is my question: is there any way to configure the eclipse project generated by m2eclipse from the pom.xml?

Maven Project Builder is invoked every time I change a source file (GWT)

陌路散爱 提交于 2019-11-27 14:11:23
问题 Recently I converted my GWT web-app ( GWT 2.4.0 ) to a maven project. I am using maven 2.2.1, gwt-maven plugin (2.4.0), Eclipse Indigo (3.7) and the m2eclipse plugin. The dependencies and general configuration seem to be fine as the web-app compiles without any problems and also works in production mode. The same applies to hosted mode. However I have a strange behavior: When I change a single line in a Java/GWT source file, the Maven Project Builder is invoked and this steps takes painfully

Empty goals list in m2Eclipse

旧巷老猫 提交于 2019-11-27 13:50:07
问题 When I try to add a goal I don't get any goals. Is there any solution or I should manually add them.But in an example I saw it automatically lists all the available goals. 回答1: The workaround described in m2eclipse JIRA worked for me: In Eclipse, open the view "Maven Repositories" and expand "Global Repositories". Right-click on your mirror of central (or "central" if no mirror defined) and select "Enable Full Index". Right-click again on the repository and select "Rebuild Index". Wait until