m2e

Difference between Eclipse's “clean project” and Maven's “mvn clean” in m2e

喜你入骨 提交于 2019-12-12 07:44:37
问题 I use M2e + Eclipse + Maven and I would like to know what the difference is between: running "mvn clean" in a terminal and running "clean project" from Eclipse ? Can anyone please advise? 回答1: From some quick tests, it seems that Eclipse's clean project is only clearing out the folders that are set as output folder in the project's preferences, whereas maven's clean is deleting the /target folder completely. 回答2: I have the following entry in my pom.xml file: <plugin> <artifactId>maven-clean

maven-assembly-plugin and eclipse Workspace resolution

无人久伴 提交于 2019-12-12 05:49:06
问题 I have a project, which uses the maven-assembly-plugin to compile one JAR out of a number of projects. I want to run the build with eclipse (Neon 4.6.3). When I run the build, I select the option Resolve Workspace Artifacts . Resolving workspace artifacts seems to work fine for compiling the classes and testing. However, when it comes to executing the assembly into a JAR, maven does not use the projects from the eclipse workspace but only projects in the local maven repository . Is there a

Can maven treat WEB-INF\lib the way eclipse (and m2e) does?

↘锁芯ラ 提交于 2019-12-11 18:56:54
问题 I have a servlet/jsp web project which runs fine on eclipse and is exported as war fine (once I clean it that is). I mavenized the project deleting all of the dependencies from the WEB-INF\lib folder except a homebrew jar (the output of another project in the workspace). When I run the package maven goal I get messages for missing classes from this jar: [ERROR] COMPILATION ERROR : [INFO] ------------------------------------------------------------- #..... NOTICE THIS COMES FROM A CUSTOM JAR

Is there any tool in eclipse to run maven commands directly?

倖福魔咒の 提交于 2019-12-11 07:49:17
问题 Is there any tool/plugin for eclipse which allows to run the maven commands directly from the eclipse? I have already added the M2E plugin to my eclipse which is allowing me to create/import and even able to run the Maven projects in Eclipse through the "Run As" configuration. For example, If I have added tomact7 plugin to my project then to execute "mvn tomcat:run" command on my project I must configure this new command in "Run As" so likewise for each new command I must configure a Run AS

Using m2e plugin in a Dynamic Web Project

為{幸葍}努か 提交于 2019-12-11 07:47:05
问题 I have an existing Dynamic Web Project in Eclipse Indigo and the m2e plugin installed. In another version of my eclipse setup that I dont quite remember (my hdd crashed) I could just right click on the project -> Maven -> Enable Dependency Management. This menu is gone for my Dynamic Web Project in my current eclipse version. Whats the way to go now? I tried right click on the project folder -> configure -> convert to maven project but that fails with errors. 回答1: M2Eclipse has migrated to an

Maven generate jar dependencies then war

风流意气都作罢 提交于 2019-12-11 06:40:29
问题 I'm using m2e Maven Plugin for Eclipse. I'm having 5 eclipse projects. A web application project and then 4 projects as jars dependencies for my web application. I would like to know how can I package jars before including them in the WAR using "mvn clean install" on war project. Here's my pom.xml: <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0

IDE with better Maven support than Eclipse with m2e?

孤者浪人 提交于 2019-12-11 02:36:11
问题 We are using maven for manage multi-module projects and Eclipse with m2e for development. Unfortunately Eclipse by itself does not understand the way Maven works, and even if m2e does a lot of work to make the "a parent pom with modules" Maven way look like the "several logically independent projects" Eclipse way it breaks when I e.g. add a new module to the parent pom. If Maven was a first class citizen I would expect Eclipse to pick up the new module immediately as a new Maven project. Is

Disable generics validation in Eclipse via M2E

你。 提交于 2019-12-11 02:05:52
问题 I have this legacy project coming from Java 1.4 (ancient, I know!) that has all the List and ArrayList with unspecified generic types. I have migrated this project lately to Maven for easier build automation. Now when I import it to Eclipse I see tons of warnings like ArrayList is a raw type. References to generic type ArrayList should be parameterized . Is there any way to instruct the M2E in pom.xml to have those check automatically disabled when importing this project into Eclipse? Note: I

Project files created with the maven-eclipse-plugin are not supported in M2Eclipse

五迷三道 提交于 2019-12-11 00:55:00
问题 We have a really simple Tycho project: <properties> <tycho-version>0.26.0</tycho-version> <maven.compiler.source>1.8</maven.compiler.source> <maven.compiler.target>1.8</maven.compiler.target> <maven.build.timestamp.format>yyyyMMdd_HHmmss</maven.build.timestamp.format> </properties> <build> <plugins> <plugin> <groupId>org.eclipse.tycho</groupId> <artifactId>tycho-maven-plugin</artifactId> <extensions>true</extensions> <version>${tycho-version}</version> </plugin> <plugin> <groupId>org.eclipse

Eclipse Faces Config Editor not working

南楼画角 提交于 2019-12-11 00:44:26
问题 Summary The Faces Config Editor in Eclipse does not open when editing faces-config.xml. This is in a JavaServer Faces project. Details Eclipse 3.7.2 Eclipse m2e 1.0.1 m2e-wtp plugin 0.15 I've seen this question already (How to activate Faces configuration editor in Eclipse?), but when I add the Faces facet to my project it no longer compiles. Probably because I imported a Maven project, rather than using the Eclipse WTP project creation wizard. I have the Maven directory structure (which I