m2eclipse

How to configure maven install to skip tests in eclipse?

大兔子大兔子 提交于 2019-12-03 02:59:23
问题 i was wondering if it's possible to configure run as maven install in eclipse to skip unit tests, if such thing is doable, then please tell me how to do it, thanks in advance. 回答1: Ensure Maven is configured for your project Right-click on your project Go to 'Run As' Select 'Run Configurations' In the left-hand column, right-click 'Maven Build' and select 'New' Select the base directory (the project) you want to build from Write 'install' and any other goals you want in the 'Goals' field

Eclipse does not recognize content of persistence.xml

▼魔方 西西 提交于 2019-12-03 02:58:48
问题 Im getting the following error in eclipse: The persistence.xml file does not have recognized content. My persistence.xml file works great in my application but eclipse keeps giving me this error. I got this after moving the file and updating my project configuration with m2eclipse. I did not change the file itself. Anyone knows how to solve this? persistence.xml: <?xml version="1.0" encoding="UTF-8"?> <persistence version="2.0" xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http:/

Eclipse: Re-run Maven using the -X switch to enable full debug logging

南笙酒味 提交于 2019-12-03 02:57:45
I have a Maven project I'm trying to build/run in Eclipse but I'm getting the error below. How do I do what the error suggests and add the -e or X switches to try to troubleshoot this? [ERROR] Failed to execute goal org.bsc.maven:maven-processor-plugin:2.0.5:process (process) on project glw-crm: Error executing: NullPointerException -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read

Error in pom file in Maven project after importing into Eclipse

☆樱花仙子☆ 提交于 2019-12-03 02:15:49
I am actually new to the Maven framework. I already have a Maven project. I installed the Maven plugin etc into my EclipseIDE from http://m2eclipse.sonatype.org/sites/m2e . Then I imported my project and enabled dependencies, but the project is showing too many errors. The pom.xml itself is showing errors. The errors are Project Build Error:unknown packaging:apk Project Build Error:unresolvable build extension:plugin" etc. My error area is: 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

Eclipse Maven web application - can not run on server anymore

拜拜、爱过 提交于 2019-12-03 02:03:35
I have an maven eclipse webapp project that I was able to right click and 'Run on server' and it would deploy on tomcat. I recently did a 'maven -> Update project conifgurations' and I now can NOT deploy and run the project as a webapp. Has anyone seen this before? The only output from tomcat is as follows - it doesnt even look like its trying to deploy the application. Apr 14, 2010 3:58:54 PM org.apache.catalina.core.AprLifecycleListener init INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: .:

No archetypes currently available. The archetype list will refresh when the indexes finish updating

守給你的承諾、 提交于 2019-12-03 02:01:38
问题 In Eclipse with m2eclipse installed, when I choose File > New > Project... > Maven > Maven Project with Use default Workspace location and Catalog: Nexus Indexer selected, the following error message is showing up: No archetypes currently available. The archetype list will refresh when the indexes finish updating. Why does this error occur? 回答1: I had same problem and it was solved by adding a remote catalog: http://repo1.maven.org/maven2/archetype-catalog.xml This solution i found at : http:

src/main/webapp directory not recognized by Eclipse

自作多情 提交于 2019-12-03 01:43:49
I use m2eclipse to import Maven Java projects in Eclipse. It fails to recognize src/main/webapp as a source directory. Graphically in the package explorer (or when I look into Java-Build-Path in the project's properties), this directory isn't in the list of sources folder (while src/main/java or src/main/resources do). To access it, I have to look directly into the src/ directory, and start unfolding... Not very convenient! However, if I run maven install , the resources are copied to the correct directory. (example : src/main/webapp/index.jsp to target/mywar/index.jsp ) Questions Is this a

How to add pom.xml to existing Eclipse project?

橙三吉。 提交于 2019-12-03 01:16:46
I'm new to Maven and use Eclipse Juno. I've installed Maven Integration for Eclipse. There are three options in File > New > Other > Maven: 1. Checkout Maven Projects from SCM 2. Maven Module 3. Maven Project But I don't see Maven2 POM as described here . I've read that adding pom.xml is the first thing to do when using Maven. I have an existing Dynamic Web Project so I'm not sure whether I need to create Maven Project just to use Maven. How to use Maven with this existing project? Further, when I try to add Maven Project and on step "Select an Archetype", then all shown archetypes have

Eclipse loops endlessly: Invoking 'Maven Project Builder'

南楼画角 提交于 2019-12-03 00:56:20
Ugh! My Eclipse is stuck in an endless loop: No operations to display at this time Refreshing Workspace Building Workspace. Invoking 'Maven Project Builder' on /MobileWebApp The building workspace never gets past 58%. Details: Google's GWT provides a sample app MobileWebApp. They suggest adding it to Eclipse via File > Import > Checkout Maven projects from SCM. I followed the instructions in this blog for adding the plugins for m2e, subclipse, and the m2e-subclipse connector. After installing the plugins, I imported the sample project via File > Import > Checkout Maven projects from SCM and

An internal error occurred during: “Updating Maven Project”. Unsupported IClasspathEntry kind=4

倖福魔咒の 提交于 2019-12-03 00:18:05
问题 As the title mentioned I have the following problem: I use Eclipse with Maven Nature and when I update my Maven Project, I get this error: An internal error occurred during: "Updating Maven Project". Unsupported IClasspathEntry kind=4 The solution that always comes back is the following: rightclick project, remove maven nature mvn eclipse:clean (with project open in eclipse/STS) (sometimes they suggest to do mvn eclipse:eclipse next) rightclick project and reenable maven nature Now I