m2eclipse

Maven surefire arguments when running JUnit test via eclipse

眉间皱痕 提交于 2019-12-04 01:11:46
问题 A newbie question on Maven - Surefire - Eclipse - JUnit I have configured the maven-surefire-plugin in the pom file of my project to pass some additional JVM arguments as below: <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <version>${maven.surefire.plugin.version}</version> <configuration> <argLine>-d64 -Xms128m -Xmx4096m -XX:PermSize=512m -Duser.timezone=UTC -XX:-UseSplitVerifier</argLine> </configuration> </plugin> When I run a test

Artifact has not been packaged yet - maven-dependency-plugin

做~自己de王妃 提交于 2019-12-03 23:28:44
When I build a multi module maven project(using mvn clean compile ) where one dependency(part of the build reactor) is copied into another using dependency:copy, then maven complains with the below error. Artifact has not been packaged yet. When used on reactor artifact, copy should be executed after packaging: see MDEP-187 is thrown This is perfectly fine, Maven can't copy the dependent jar because it has not been packaged yet and the dependency has to be resolved from the local project and not from the repository. Lets say project A is being copied into project B using the dependency:copy

How do I get m2eclipse to recognize $M2_OPTS?

跟風遠走 提交于 2019-12-03 22:11:59
It appears m2eclipse is not recognizing my $M2_OPTS variable. I can run the same build outside of eclipse fine (with cranked up heapsize): [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESSFUL [INFO] ------------------------------------------------------------------------ [INFO] Total time: 51 seconds [INFO] Finished at: Tue Nov 10 00:00:02 EST 2009 [INFO] Final Memory: 72M/187M [INFO] ------------------------------------------------------------------------ But when I run this with m2eclipse I always run out of memory: [INFO] ------------------

Restore maven plugin for a project on eclipse

北慕城南 提交于 2019-12-03 22:11:42
I've disabled m2eclipse plugin for a project by clicking on "Disable Maven Nature" as shown in the Figure below. Then the Maven entry disappeared from the menu and I'm unable to restore it. How do I restore/reset/re-enable so that the entry appears again? PS 1: I'd like to do that without re-importing the project. PS 2: I've looked in ${WORKSPACE}/.metadata\.plugins\org.eclipse.m2e.core.ui and ${WORKSPACE}/.metadata\.plugins\org.eclipse.m2e.core but nothing seems related. Solution: Go to the project menu (right click on Package Explorer) > Configure > Convert to Maven Project This should

Tomcat-Maven 401 Error: Cannot invoke Tomcat manager

拟墨画扇 提交于 2019-12-03 19:28:23
问题 Went through most of the errors shown in StackOverFlow and still couldn't solve it. I'm trying to deploy a SpringMVC application. But, I just can't get it to work. Maven Deploy Error: [ERROR] Failed to execute goal org.codehaus.mojo:tomcat-maven-plugin:1.1:redeploy (default-cli) on project productmgmt: Cannot invoke Tomcat manager: Server returned HTTP response code: 401 for URL: http://localhost:8080/manager/text/deploy?path=%2Fproductmgmt&war=&update=true -> [Help 1] Pom.xml: <build>

m2eclipse says “Missing artifact” but I can build from cmdline!

青春壹個敷衍的年華 提交于 2019-12-03 19:21:23
问题 I'm trying to use this Sonatype Eclipse plugin for the first time to handle an existing (huge) software that I can build with maven form the command line. I have configured the plugin to use my maven 2.2.1 installation instead of the built-in Maven 3. In Eclipse I have 25 projects (loaded through the root pom.xml) and 4 of them have compilation errors; the maven console contains a lot of lines like this one: Missing artifact commons-logging:commons-logging:jar:1.0.4:compile I have all the

maven android plugin:No Android SDK path could be found

有些话、适合烂在心里 提交于 2019-12-03 17:09:25
问题 I use the maven-android-plugin version 3.3.2. When I try to build my android project I have the following exception: org.apache.maven.plugin.MojoExecutionException : No Android SDK path could be found. You may configure it in the plugin configuration section in the pom file using <sdk><path>...</path></sdk> or <properties><android.sdk.path>...</android.sdk.path></properties> or on command-line using -Dandroid.sdk.path=... or by setting environment variable ANDROID_HOME However environment

m2eclipse is unable to locate C:\\Program Files\\Java\\jre6\\..\\lib\\tools.jar

自闭症网瘾萝莉.ら 提交于 2019-12-03 16:55:06
I have a problem, concerning the jdk/jre usage of my eclipse. I know that this question was asked and answered a lot of times here and I researched what could be wrong for quite a while. I actually didn't find anything so I'm going to ask you again. Maybe I'm missing something (if yes, I hope it's not to embarrasing :) My problem is, that when I'm running mvn clean install I get an error which says that the m2eclipse plugin is "Unable to locate the Javac Compiler in: C:\Program Files\Java\jre6..\lib\tools.jar". First thing I checked was if the right JRE was configured in eclipse. So I switched

Eclipse Maven Error Plugin execution not covered by lifecycle configuration:

旧城冷巷雨未停 提交于 2019-12-03 16:47:07
I am using Eclipse Juno with Maven 3.0.5 on Windows 7. The project was previously on Windows XP and I have moved to Windows 7 64 bit machine. I have copied my Eclipse Spring 3, Hibernate 4 and JSF 2.0 project and when I try to compile I am getting the following error Plugin execution not covered by lifecycle configuration: org.bsc.maven:maven-processor-plugin:2.0.6:process (execution: process, phase: generate-sources) I tried as mentioned in this thread by adding the following in Eclipse.ini file, however it didn't solve the issue. -vm c:\Program Files\Java\jdk1.7.0_21\jre\bin\server\jvm.dll

Android 4.0 Eclipse compilation failed

跟風遠走 提交于 2019-12-03 16:46:50
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 probably produced by a compiler that did not target the modern .class file format. The recommended