m2eclipse

Plugin error: execution not covered by lifecycle configuration

大憨熊 提交于 2019-11-27 13:15:43
I am trying to use the maven-warpath-plugin available here . But I keep getting an error in my pom.xml file that says: Plugin execution not covered by lifecycle configuration: org.appfuse.plugins:maven-warpath-plugin:2.1.0:add-classes (execution: default, phase: generate-sources) How do I resolve this? Here is my pom.xml snippet for the plugin: <plugin> <groupId>org.appfuse.plugins</groupId> <artifactId>maven-warpath-plugin</artifactId> <version>2.1.0</version> <extensions>true</extensions> <executions> <execution> <goals> <goal>add-classes</goal> </goals> </execution> </executions> </plugin>

Missing tools.jar in local repository breaks m2eclipse

Deadly 提交于 2019-11-27 13:14:49
问题 The problem I'm experiencing is that eclipse can't resolve any of the dependencies of my project. This causes problems because even though the dependencies seem to work alright when coding (I get autocompletion) I still get a huge list of errors referring to missing artifacts. When filtering these, I found the following: The container 'Maven Dependencies' references non existing library '/home/[...]/.m2/repository/com/sun/tools/1.5.0/tools-1.5.0.jar' It seems that this dependency was

Maven / M2Eclipse excludes my resources all the time

我的未来我决定 提交于 2019-11-27 13:14:14
问题 I have two very annoying issues with Maven-Eclipse integration, from time to time it excludes all my resources in src/main/resources and src/test/resources from the build path. If I inspect "Properties >> Java Build Path >> Source" I can see that these two folders have "Excluded: **". The problem can be easily solved by clicking on "Remove" on the exclusions, but it is really-really frustrating. The project setup is very simple, it has some modules and sub-modules, but nothing fancy. I don't

Eclipse Deployment Assembly does not appear in properties

五迷三道 提交于 2019-11-27 12:56:25
问题 In a new project of mine I cannot see the Deployment Assembly link in the project properties. It is There in my other projects which are configured in the same way (as far as I can see). I have dynamic web module and java in the facets. I have m2eclipse installed and invoked the menu option "update project configuration". I am running eclipse 3.7 EE edition. I have google eclipse plugin also. What I want to know is how to get the deployment assembly option to appear so I can configure which

ubuntu 使用link方式安装eclipse m2eclipse插件

折月煮酒 提交于 2019-11-27 12:07:09
一、环境说明: 操作系统:Ubuntu 12.04.2 LTS Eclipse:eclipse indigo(3.7) for linux 32-bit 文中提到的路径“/home/yan”是我本机的,需要替换成你的路径。 下载保存文件的路径是:/home/yan/下载/,需要替换成你的下载路径。 二、 环境准备 由于eclipse maven插件相关的gef、m2eclipse离线安装包在官网没找到下载,所以我上传了插件,供大家下载。 svn下载地址: http://subclipse.tigris.org/servlets/ProjectDocumentList?folderID=2240 gef下载地址: http://download.csdn.net/detail/yanhongdeng/5887677 m2eclipse下载地址 : http://download.csdn.net/detail/yanhongdeng/5887859 建议: 将eclipse所有插件放到一个固定的目录,如plugin。 建立一个存放link文件的目录links。 我的目录结构如下: /usr/local/eclipse #用于存放eclipse相关文件 /usr/local/eclipse/maven/eclipse #用于存放maven环境的eclipse,可能会有多个eclipse

How do I start Maven “compile” goal on save in Eclipse?

岁酱吖の 提交于 2019-11-27 11:29:14
I have a Maven project with JavaScript code. There is a special javascript compiler plugin connected to the compile goal in the pom.xml. So when I type "mvn compile" then the JavaScript sources in src/main/javascript are compiled (compressed and obfuscated) and saved into the target/classes directory. On the command line this works great. But now I want to make the development easier by using Eclipse with the m2eclipse plugin. I want Eclipse to call the compile goal whenever I change a JavaScript file. How can I do this? When I save a JavaScript file then I just see a "AUTO_BUILD" logging line

Checkout Maven project from SCM - no connectors

筅森魡賤 提交于 2019-11-27 11:11:23
I have a problem with checkout Maven project in Eclipse Indigo. I've installed m2e plugin, Subclipse, Git, but can't select appropriate SCM type ? How to solve this ? Affan was correct. The connectors are all still there in Indigo, just hidden a little. Start Eclipse and open preferences. Find the Maven group and expand it. Select the "Discovery" item and click "Open Catalog". A dialog will pop up with all the goodies. The connectors are at the bottom. I ran into this issue with Eclipse where when you would try to Import a project via: "Check out Maven Projects from SCM" from the project

How to deal with missing src/test/java source folder in Android/Maven project?

时光毁灭记忆、已成空白 提交于 2019-11-27 10:26:48
问题 I'm not very experienced with Maven in combination with Android yet, so I followed these instructions to make a new Android project. When the project has been created, I get the following error message: Project 'xxx-1.0-SNAPSHOT' is missing required source folder: 'src/test/java' When I try to add a new source folder with New->Other->Java-Source Folder with src/test/java, I get another error message: The folder is already a source folder. But I don't have any src/test/java folder in my

maven-dependency-plugin (goals “copy-dependencies”, “unpack”) is not supported by m2e

天涯浪子 提交于 2019-11-27 10:03:47
I have a fairly simple Maven project: <project> <dependencies> ... </dependencies> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-dependency-plugin</artifactId> <version>2.4</version> <executions> <execution> <id>copy-dependencies</id> <phase>package</phase> <goals> <goal>copy-dependencies</goal> </goals> <configuration> <outputDirectory>${project.build.directory}/dependencies</outputDirectory> </configuration> </execution> </executions> </plugin> </plugins> </build> </project> However, I get the following error in m2eclipse: Description Resource Path

How to fix error “Updating Maven Project”. Unsupported IClasspathEntry kind=4?

馋奶兔 提交于 2019-11-27 09:56:01
I have imported maven project in STS, when I run update update project I receive: "Updating Maven Project". Unsupported IClasspathEntry kind=4 Is there a workaround for this? Marco This issue has been fixed in m2e 1.5.0 which is available for Eclipse Kepler (4.3) and Luna (4.4) Please see https://bugs.eclipse.org/bugs/show_bug.cgi?id=374332#c14 The problem is caused by the fact that STS (the Spring IDE/Eclipse), as well Eclipse and other Eclipse based IDE's, use the m2e(clipse) plugin but that eclipse:eclipse has been probably been run on the project. When m2e encounters a "var" .classpath