m2e

Increase heap size in m2e Eclipse plugin

元气小坏坏 提交于 2019-11-30 13:13:31
问题 How does one increase the heap size of the m2e Eclipse plugin? Basically, I'm trying to run an automated integration test using Cargo and Selenium under STS (SpringSource's version of Eclipse) with pre-installed m2e (the popular Maven plugin for Eclipse). Whenever I run mvn verify I get the infamous java.lang.OutOfMemoryError: Java heap space... 63M/63M . So I made some research first. Increase the memory via MAVEN_OPTS, Eclipse.ini / STS.ini, Run Configurations, and even via the Maven

How to force Eclipse m2e plugin to use jdk for a project

▼魔方 西西 提交于 2019-11-30 10:03:34
I'm using Maven with 'Eclipse Kepler JavaEE'. I have something like this in 'maven-compiler-plugin' : <configuration> <source>1.7</source> <target>1.7</target> </configuration> Each time I'm changing somethin in 'pom.xml', eclipse forces me to perform 'Maven -> Update Project' and than project settings are changed to use JRE instead JDK and some maven builds are stopping to work. The only solution I found to solve it is to set How I can set eclipse/m2e to use JDK is to define a path in maven-compiler-plugin. It is not good solution, since it is working only for my computer will fail for other.

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

梦想与她 提交于 2019-11-30 06:25:57
问题 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? 回答1: This is a general step that happens when m2e/m2eclipse (Maven integration for Eclipse) is installed, whether

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

大兔子大兔子 提交于 2019-11-30 06:15:03
问题 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

Is it a good practice to include Eclipse project files in with sources in SCM?

走远了吗. 提交于 2019-11-30 05:17:12
问题 We have a rather complicated multi-module Maven project. There are Flex modules, GWT modules, Java modules, and a number of WAR modules. In order to simply the process of importing these projects into Eclipse, historically we have included all the relevant Eclipse project files in the source tree. However, this has been a source of problems in the past because sometimes those files are modified accidently and checked in...thus causing problems for other developers. With the advent of M2E and

How can I map Maven lifecycle phases not covered by the Eclipse m2e plugin?

眉间皱痕 提交于 2019-11-30 02:42:04
问题 I’m using Eclipse Kepler on Mac 10.9.5. I have imported a number of Maven projects using the m2e Eclipse plugin. All these projects are children of a parent pom. When I look at the “Overview” in the individual child pom.xml files, I see stuff like this: Plugin execution not covered by lifecycle configuration: org.codehaus.mojo:properties-maven-plugin:1.0-alpha-2:write-project-properties (execution: default, phase: process-resources) I would like Eclipse to execute these lifecycle phases at

How do I use android libraries (apklibs) with maven and eclipse?

ぃ、小莉子 提交于 2019-11-30 01:20:15
问题 I am using Eclipse 3.7.2 + Android + Maven + m2e and I have a problem with Android libraries included via Maven as apklibs. I built a test scenario with two projects, mvntest1 (the main project) and mvntest2 (my library project). The pom.xml 's are included after this text. So far so good. I can build mvntest2 via console $ mvn install without any errors. Thus, I have an apklib in my local maven repository ( ~/.m2/repository/mvntest2/mvntest2/0.0.1-SNAPSHOT/mvntest2-0.0.1-SNAPSHOT.apklib ).

How does one get JAXB-generated sources onto the Eclipse build path under m2e/Indigo?

故事扮演 提交于 2019-11-29 23:32:02
Under Helios/m2eclipse, when I generated jaxb sources they would be put on the Eclipse source path when I did an "Update Project Configuration". This doesn't happen with Indigo/m2e (initial release of 22 June 2011). What do I need to do to fix this? I'm using the standard maven-jaxb2-plugin, version 0.75. Eric In Eclipse go to "Install New Software" add the software site: http://bitstrings.github.com/m2e-connectors-p2/releases/ Select the "m2e connector for jaxb2" Once you get that plugin installed the jaxb2 plugin should integrate correctly with the new version of m2e. This info is from:

Cleaning Maven m2e .cache directory

元气小坏坏 提交于 2019-11-29 20:51:19
My Maven installation (Windows 7 64-bit) has a .cache directory that is almost 3.5GB! It contains only a m2e directory. (I'm running Eclipse 4.3M7 with m2e.) Surely all the things inside aren't needed at present, and moreover I don't even know what this stuff is! I could find no Maven documentation of a .cache directory online. So what are the .m2/repository/.cache and .m2/repository/.cache/m2e directories? Why do they have so much stuff from years ago? How do I dispose of all the stuff that's not needed anymore? In contrast to the other answers, make sure to keep .m2/*.xml (your settings) and

Can't install Maven SCM Handler for EGit for Juno

别等时光非礼了梦想. 提交于 2019-11-29 20:44:22
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 complete the install because of a conflicting dependency. Software being installed: Maven SCM Handler for