m2eclipse

Why am I receiving a “Plugin execution not covered by lifecycle configuration with GWT” error?

家住魔仙堡 提交于 2019-11-28 18:16:22
I'm using STS and I imported a GWT project from another machine. The project uses m2eclipse. I'm getting these two errors when building the project: Plugin execution not covered by lifecycle configuration: org.codehaus.mojo:gwt-maven-plugin:2.2.0:i18n (execution: default, phase: generate-sources) pom.xml /contactsgwt line 175 Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:maven-war-plugin:2.1.1:exploded (execution: default, phase: compile) pom.xml /contactsgwt line 198 What's wrong? Is there any further configuration that needs to be done so the gwt maven

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

别来无恙 提交于 2019-11-28 17:24:59
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 project. How should I deal with that? What's the clean way to setup the project, because I assume that there

How to eliminate the “maven-enforcer-plugin (goal ”enforce“) is ignored by m2e” warning by eclipse?

雨燕双飞 提交于 2019-11-28 17:22:09
问题 I am configuring a multi-module parent child maven project using maven and eclipse m2e, I am using the latest stuff from eclipse Juno SR1 which is m2e 1.2.0 the parent pom uses the enforcer plugin, so the parent pom.xml has the following in its plugin section <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-enforcer-plugin</artifactId> <version>1.1.1</version> <executions> <!-- Enforce that all versions of a transative dependency must converge. --> <execution> <id

Eclipse JRE System Library [J2SE-1.5]

拜拜、爱过 提交于 2019-11-28 16:40:14
I'm using Eclipse EE 3.7 with m2e plugin installed. I have JDK7 set in eclipse. When I import maven projects, the JRE is set to JRE System Library [J2SE-1.5] , So i have compilation issues with java 6 related stuff. Instead I want the JRE in eclipse to be by default set to JRE System Library [J2SE-1.6] When i try to open a new project in eclipse File -> new -> Java project on the first screen i have an option to choose JRE and the third option is Use default JRE (currently 'jdk1.7.0_03') From this i can see that the default JRE in Eclipse is 1.7, but when i import new Maven projects, the JRE

What exactly does Maven Update Project do in Eclipse?

…衆ロ難τιáo~ 提交于 2019-11-28 10:58:25
First of all, I am aware of this question , but I am interested in the details which are not provided there. I had a look at the documentation of m2eclipse and found it unsatisfactorily laconic. The only relevant part I could find is Alternatively you can run “Maven / Update project configuration” action from the project popup menu, which is configured to run “process-resources” by default and it can be also changed on the same preference page. but I could not make whether Update project configuration is the same as Update project . All other sources I have found while browsing around do not

Why can't maven find an osgi bundle dependency?

匆匆过客 提交于 2019-11-28 10:53:01
I have declared a OSGi bundle as a dependency in my maven project. ( It just happens to be the felix container. ) <dependency> <groupId>org.apache.felix</groupId> <artifactId>org.apache.felix.framework</artifactId> <version>4.0.2</version> <type>bundle</type> <scope>compile</scope> </dependency> When I try to build, it says it can't find it. [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Failed to resolve artifact. Missing: ---------- 1) org.apache.felix:org.apache.felix.framework:bundle:4.0.2 Try downloading the file manually from

m2eclipse and Eclipse WTP

天大地大妈咪最大 提交于 2019-11-28 09:24:28
I have a very large workspace with about 30 projects all together. I am using Eclipse 3.5 with m2eclipse. I check out of my subversion repository using the defaults in order to import the projects into my workspace. I create a Tomcat server instance, and publish my web project to the tomcat server. Sounds easy enough. The problem is that it does not appear as though the transitive dependencies for my other projects are being automatically added to the container, so when the container starts up I get classnotfound exceptions, etc. I go into the web project's properties, and I notice that the

Maven: how to fill a variable in web.xml file

梦想与她 提交于 2019-11-28 07:51:39
I am working in a Maven web project through Eclipse. In the web.xml , I have a context-param which value should change according the profile I use when I run the Maven. <context-param> <param-name>producao</param-name> <param-value>${ambiente.producao}</param-value> </context-param> In the pom file for project I have the following configuration: <project> <profiles> <profile> <id>prod</id> <properties> <ambiente.producao>true</ambiente.producao> </properties> </profile> <profile> <id>desenv</id> <properties> <ambiente.producao>false</ambiente.producao> </properties> </profile> </profiles>

How to tell M2Eclipse to install jar file as a maven dependency

假如想象 提交于 2019-11-28 06:38:42
I want to add jpoller.jar as a maven dependency, so I edited my pom.xml file to include it: <dependency> <groupId>org.sadun</groupId> <artifactId>jpoller</artifactId> <version>1.5.2</version> </dependency> Now, as expected, when I compile from the command line I get an error because jpoller isn't in any of the repositories I have listed in my pom, nor could I find one for it. Although I could create a repository for it, I'd rather not at this point. Thus, I get the following error: [INFO] Failed to resolve artifact. Missing: ---------- 1) org.sadun:jpoller:jar:1.5.2 Try downloading the file

m2Eclipse plugin: What does 'Resolve Workspace Artifacts' do?

旧街凉风 提交于 2019-11-28 05:47:20
I'm sorry if I am asking a possibly-trivial question, but I am having so much trouble finding out exactly what Resolve Workspace Artifacts does in the Maven build window in the Eclipse IDE, using the M2Eclipse plugin. I'm referring to this: Does anyone have any idea? I tried google-ing and stackoverflow-ing the solution; there are lots of bug requests/reports but no clear-cut descriptions of this option. Thanks for the help. Yogendra Singh Assume you have two or more projects in your workspace e.g. project1 , project2 and so on. If project1 is dependent on project2 and project3 , you just need