m2e

M2e - plugin execution not covered by lifecycle

荒凉一梦 提交于 2019-12-10 01:50:31
问题 OS: ubuntu 11.10 Eclipse: Java EE IDE for Web Developers. Version: Indigo Service Release 2 Build id: 20120216-1857 Java: jdk1.7.0_03 SDK adb :Android Debug Bridge version 1.0.29 Trying to build javaocr in eclipse by using m2e android (2.8.4). it results in project being built with errors in pom.xml: Description Resource Path Location Type Plugin execution not covered by lifecycle configuration: com.jayway.maven.plugins.android.generation2:maven-android-plugin:2.8.4:generate-sources

Maven for Eclipse (M2E) Installation error

萝らか妹 提交于 2019-12-10 00:58:43
问题 Error 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.20130601-0317 (org.eclipse.m2e.feature.feature.group 1.4.0.20130601-0317) Missing requirement: Maven Integration for Eclipse (Editors) 1.4.0.20130601-0317 (org.eclipse.m2e.editor 1.4.0.20130601-0317) requires 'bundle org.slf4j.api 1.6.2' but it could not be found Cannot satisfy dependency: From: m2e - Maven Integration for

m2e shade eclipse “project main artifact does not exist”

非 Y 不嫁゛ 提交于 2019-12-09 07:13:08
问题 I'm trying to make a deployment package that bundles all the dependencies of my maven module that has dependencies to another maven project in eclipse. I have this in my pom.xml <modelVersion>4.0.0</modelVersion> <groupId>com.my.proj</groupId> <artifactId>AAA</artifactId> <version>0.0.2-SNAPSHOT</version> <name>btc</name> <dependencies> <dependency> <groupId>com.another.proj</groupId> <artifactId>BBB</artifactId> <version>1.4-SNAPSHOT</version> </dependency> </dependencies> <build> <plugins>

How to do 'mvn compile' and 'mvn package' with m2e in Eclipse?

半城伤御伤魂 提交于 2019-12-08 19:16:27
问题 I've started this week to use Maven for some projects I'm working on and I use Eclipse with the m2e plugin. I've been having a look at it but I can't find a way to compile and package (as far as I can see I can do clean, generate-sources, test and install). How can this be achieved with m2e? 回答1: Right click on your project Run As Maven build... Fill in the goals you want Hit Run 回答2: You have to create own Run Configuration of type Maven Build. These four are some kind of predefined builds,

Eclipse fails to update Maven index while behind company proxy

爷,独闯天下 提交于 2019-12-08 13:05:29
Eclipse Mars m2e plugin fails to download repository index updates on startup. I run Eclipse behind a company firewall but the proxy settings work fine for "check for updates", "eclipse marketplace", and eclipse's built-in browser. I have tried the following: Deleting the cache directory \eclipse\p2\org.eclipse.equinox.p2.repository\cache and then refreshing the repositories. Preferences -> Install Update -> Available Software Sites => select the entry and click "Reload" Adding -Djava.net.preferIPv4Stack=true to -vmargs in eclipse.ini Edit: Proxy configurations are correctly set in $HOME/.m2

Maven project dependency error in eclipse using m2e plugin (for maven)

六月ゝ 毕业季﹏ 提交于 2019-12-07 09:13:35
问题 I am working on a java maven project in eclipse using the m2e plugin. I updated my system and my jvm updated from icedtea-bin-6.1.11.4 to icedtea-bin-6.1.11.5. Eclipse now outputs the below error in my pom file and I can't run my project. I am new to maven and eclipse and, after a day of googling, I still haven't managed to find a solution for this. I personally think that this is some sort of problem with eclipse (a misconfiguration?), because I am able to get a successful build on the

java.lang.ClassNotFoundException android + eclipse + maven + osx

放肆的年华 提交于 2019-12-07 03:56:00
问题 I'm trying to implement maven into an existing android project. I've done so through the context menu > Configure > Convert to Maven project . And everything seems okay, no warnings or errors. But when I try to run the app (just like before) I get: 12-31 10:16:57.423: E/AndroidRuntime(14242): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{xxx/xxx.MainActivity}: java.lang.ClassNotFoundException: xxx.MainActivity I've followd all the instructions on implementing m2e

Eclipse 4.3.2 with Java 8 patches doesn't recognize source level 1.8

女生的网名这么多〃 提交于 2019-12-07 03:30:40
问题 I'm using Eclipse 4.3.2 with the patches for Java 8 from, along with m2e and Subclipse, completely updated to the latest versions of everything. I went into the Maven POMs for our project and changed the maven-compiler-plugin to: <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>2.5.1</version> <configuration> <source>1.8</source> <target>1.8</target> I updated all my Maven projects tried to do a complete clean and build. Errors all over the

Compile maven projects with JDK 1.6 in Eclipse Mars

半城伤御伤魂 提交于 2019-12-06 10:10:22
I need older version of m2e because I need to use older maven version (I have to compile some projects with JDK 1.6). Here the exception when launch any build (with java 1.6) in Mars: Exception in thread "main" java.lang.UnsupportedClassVersionError: org/apache/maven/cli/MavenCli : Unsupported major.minor version 51.0 at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631) at java.lang.ClassLoader.defineClass(ClassLoader.java:615) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141) at java.net.URLClassLoader

How to configure maven or eclipse in order to use the RELEASE constant within versions?

十年热恋 提交于 2019-12-06 07:10:10
All our projects are built using maven. we have centralized some of our main configuration within a super pom. In order to always have an update version of this super pom (without having to modify the version), we have used the following syntax : <parent> <groupId>my.organization</groupId> <artifactId>superPom</artifactId> <version>RELEASE</version> </parent> The problem is that Maven Eclipse plugin (m2e) doesn't understand this syntax (the RELEASE constant is not resolved). So, our Eclipse users can't use built-in compilation. What do you suggest to overcome this problem ? By the way, we have