m2e

Cleaning Maven m2e .cache directory

醉酒当歌 提交于 2020-01-20 13:21:47
问题 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

Cleaning Maven m2e .cache directory

隐身守侯 提交于 2020-01-20 13:21:12
问题 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

Maven - how to add a module in parent project's pom as dependency

自作多情 提交于 2020-01-16 01:00:10
问题 I have a situation mentioned in this question. I have a multi-module Maven project with a parent project P and two sub-modules A and B. When I only had A as a sub module it worked fine. I added a new source folder in the main project, created a package and added a class (am i doing something wrong here?), lets call it module B. Now i import the class in package B in a class in package A, but A's pom doesnt get updated to include B as dependency and thus when I try to mvn compile the parent

My maven Java project in Eclipse doesn't generate jar file

六眼飞鱼酱① 提交于 2020-01-12 14:22:08
问题 If I use command line command like "mvn compile" and "mvn install", I see a jar file under target directory. But if I build the same project from Eclipse using m2e plugin, I don't see a jar file but only compiled class directories under target directory but they are empty. Any insight on this problem? 回答1: m2e won't build a jar unless you ask it to. (An exception to that is when you're using it with certain connectors to develop OSGi bundles, but I assume you aren't.) To build a jar: Right

m2e lifecycle-mapping not found

谁说我不能喝 提交于 2020-01-08 19:42:24
问题 I am trying to use the solution described here to solve the annoying "Plugin execution not covered by lifecycle configuration: org.codehaus.mojo:build-helper-maven-plugin:1.7:add-source (execution: default, phase: generate-sources)" when I place the following plugin on my pom.xml: <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>build-helper-maven-plugin</artifactId> <executions> <execution> <phase>generate-sources</phase> <goals><goal>add-source</goal></goals> <configuration>

m2e lifecycle-mapping not found

不羁的心 提交于 2020-01-08 19:40:35
问题 I am trying to use the solution described here to solve the annoying "Plugin execution not covered by lifecycle configuration: org.codehaus.mojo:build-helper-maven-plugin:1.7:add-source (execution: default, phase: generate-sources)" when I place the following plugin on my pom.xml: <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>build-helper-maven-plugin</artifactId> <executions> <execution> <phase>generate-sources</phase> <goals><goal>add-source</goal></goals> <configuration>

How to set eclipse project specific validation preferences with m2e

我只是一个虾纸丫 提交于 2020-01-06 19:43:51
问题 When invoking importing maven projects into eclipse from git using "Import Maven Projects" the m2e plugins to seems to generate a new .project and .classpath and some other files even though those files are checked in. To get around this problem I would like to not check in any eclipse specific files, but there are customizations made to each project file such as custom save actions, or changes to the validation to ignore specific things, or changes to the javascript configuration for a

Missing Main-Class attibute in MANIFEST.MF in Maven generated jar file

守給你的承諾、 提交于 2020-01-05 21:21:03
问题 I am currently experimenting with Maven in Eclipse (m2e-Plugin) and tried to build and run the Hello World example project. However, when launching the generated jar, nothing happens. I checked the MANIFEST.MF and noticed that the Main-Class attribute was missing. After adding the attribute, the jar could be launched. Why does Maven not add this attribute? 回答1: Have a look at this link: https://maven.apache.org/shared/maven-archiver/examples/classpath.html#aAdd You can find there how to

application.xml is not generated correctly while saying “Run On Server” using Weblogic (beadep)

大城市里の小女人 提交于 2020-01-04 04:45:07
问题 I always encounter the following situation while "Run On Server" on my mavenized EAR project. Situation If I take the following steps on my EAR project: mvn clean install Run on Server ... will lead to: The application.xml generated by Maven will be correct: <application xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/application_5.xsd" version="5"> <display

Why must I always “Add Spring project Nature” after Maven “Update Project Configuration” in Eclipse?

|▌冷眼眸甩不掉的悲伤 提交于 2020-01-04 01:50:11
问题 I'm using Eclipse to work on a Spring project that is controlled via Maven (well, the m2e plugin in Eclipse). Whenever I make a change to the Maven pom.xml file, the interface complains and says I subsequently need to run "Update project configuration" from the Maven item seen in the context menu when you right-click the top-level project. When this completes, the project has then always lost its "Spring project nature", which I need to add again from the Spring item in the same context menu.