m2e

Compile maven projects with JDK 1.6 in Eclipse Mars

折月煮酒 提交于 2020-01-02 16:20: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

WTP - m2e not deploying transitive dependencies

心不动则不痛 提交于 2020-01-01 08:39:29
问题 I have a web application which is structured in this way: A.jar -> B.war -> C.war I'm using Eclipse Juno and the WTP version is 1.1 . The A.jar is a workspace utility project which is being included by B.war. B.war is a war project that is included by C.war as an overlay. That's the way I'm doing that: <dependency> <groupId>com.projects</groupId> <artifactId>B</artifactId> <version>1.0-SNAPSHOT</version> <type>war</type> <scope>runtime</scope> </dependency> After that, I deploy the C project

Web resources filtering with Maven war plugin does not work in Eclipse with m2e

你离开我真会死。 提交于 2019-12-31 08:12:14
问题 I'm trying to filter a Spring configuration file using Maven filtering. My POM is configured like this: ... <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-war-plugin</artifactId> <version>2.2</version> <configuration> <webResources> <resource> <filtering>true</filtering> <targetPath>WEB-INF/context</targetPath> <directory>src/main/webapp/WEB-INF/context</directory> <includes> <include>applicationContext.xml</include> </includes> </resource> </webResources> <

No Maven menu items in Eclipse Indigo SR2 EE even after m2e + DWM install

泄露秘密 提交于 2019-12-31 02:55:33
问题 I've installed Eclipse Indigo SR2 EE: Eclipse Java EE IDE for Web Developers. Version: Indigo Service Release 2 Build id: 20120216-1857 and even after installing m2e from Marketplace I don't have any Maven menu items in File->Import, File->New->Project..., or Window->Preferences. I'm really confused. I'm on a Fedora 17 x64 machine - and my other Fedora 17 x64 machine at work works fine with the same version of Eclipse! m2e is clearly shown in "Installed Software": m2e - Maven Integration for

Maven m2e enforces its own compiler settings - disable

北城余情 提交于 2019-12-30 08:23:09
问题 After starting Eclipse, Mven seems to set the compiler settings to 1.5 and forget all the other global code style settings to ensure a higher code quality. Is there some way to disable this feature? Or can I specify all compiler and code style checks in my POM? It is very annoying because Ecplise can't run the app because of not allowed override annotations for interfaces. The tick in Java compiler -> Enable project specific settings is always set after a restart. 回答1: You can set the

Jacoco Maven Plugin - Plugin execution not covered by lifecycle configuration

旧城冷巷雨未停 提交于 2019-12-30 05:38:11
问题 I'm new to Maven and want to use the Jacoco Maven Plugin to build my projects. I've set up an example project with TestNG the only dependency. Here is part of the pom.xml: <dependencies> <dependency> <groupId>org.testng</groupId> <artifactId>testng</artifactId> <version>6.8</version> </dependency> </dependencies> <build> <plugins> <plugin> <groupId>org.jacoco</groupId> <artifactId>jacoco-maven-plugin</artifactId> <version>0.6.2.201302030002</version> <executions> <execution> <goals> <goal

Failure to transfer dependency, was cached in the local repository

烈酒焚心 提交于 2019-12-29 06:48:19
问题 I am working on maven 2 project on eclipse, and I have the m2e plugin, and I am getting the following error in Eclipse: Failure to transfer com.thoughtworks.xstream:xstream:pom:1.3.1 from http://repo1.maven.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer artifact com.thoughtworks.xstream:xstream:pom:1.3.1 from/to central (http:// repo1.maven.org/maven2):

Maven (m2e) is not executing ant task

牧云@^-^@ 提交于 2019-12-25 18:21:48
问题 I have a POM file (to be executed by Eclipse) where I want to execute a ANT task during the generate-sources phase. Based on m2e documentation, in How to solve "Plugin execution not covered by lifecycle configuration" for Spring Data Maven Builds, Maven: execute antrun task during package and Where should be placed maven-compiler-plugin declaration: in <plugins> or <pluginManagement>?, I wrote my POM file in this way: <?xml version="1.0" encoding="UTF-8"?> <project> ... <build>

Eclipse plugin: how to read the “settings.xml” file path which is configured in M2Eclipse plugin

廉价感情. 提交于 2019-12-25 08:00:14
问题 Now I'm developing a new Eclipse plugin, in this plugin I need to get the settings.xml file which is configured in m2Eclipse plugin and update it. I want to know whether the m2eclipse plugin has provided the related extension point so that I can use directly. I've researched its user guide and the website, I cannot find any useful information for resolving my problem. P.s: I'm not saying how to configure the settings.xml in maven plugin but developing a new plugin to read the settings.xml in

M2E Eclipse Maven Workspace resolution and CDI

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-25 07:24:45
问题 I have a war project A that I am deploying to JBoss AS7 that uses CDI and all works fine. But I want to use some classes in another project B, which I added to my pom.xml and turned on workspace resolution for, because these classes will be shared by multiple war projects. Now these classes work perfectly fine as long as they are in the war project A, but when I move them to B, the CDI on them stops working. The other project B has a webapp/WEB-INF/beans.xml, but when looking at the deployed