m2eclipse

Eclipse: The selection did not contain any resource that can run on a server

时光毁灭记忆、已成空白 提交于 2019-12-06 23:09:42
问题 I am not able to run maven java web application project to the configured tomcat within eclipse ide. Initially I could right click on the project and run it on tomcat server but ever since I shared the project to a repository I am not able to do that. I disconnected the project form the repository and now I I dont even see the Run as -> Run on Server option inside eclipse ide. I am using m2e plugin version .0.12.1 and eclipse helios and tomcat 6. Could someone help me understand what am I

how to run many maven goals from eclipse in one click

限于喜欢 提交于 2019-12-06 13:42:49
i want to know, if it's possible to run many maven goals from eclipse at the same time ,in other way in one click. for example i have 3 project project1 ,project2 ,project3. i want for example to clean them all ,and install project1 and project2 then project3 and deploy the 3 projects (in one click) . it's possible to do such a thing ? notice : Maven Integration Plugin for Eclipse is already installed. thanks You cannot run goals for multiple projects using m2e. I suggest the following: If projects are related, bundle them into a parent project and run the deploy goal on the parent project.

One click build and deploy using Eclipse/Maven/JBoss AS 7

你离开我真会死。 提交于 2019-12-06 10:17:09
I was wondering if it is possible to make a Java EE application being managed by Maven and automatically deploy it to JBoss all from Eclipse. To my knowledge I current right click on my project and select "Make install". After that completes, I open the server pane and right click on my deployed ear and either select "Full Publish" or "Incremental Publish". Is there a way to condense these actions into one click? I tried to write a windows batch file but I didn't have much luck with that, and it would only work for our devs working on Windows machines. I know I can make run configurations but

Compile maven projects with JDK 1.6 in Eclipse Mars

半城伤御伤魂 提交于 2019-12-06 10:10:22
I need older version of m2e because I need to use older maven version (I have to compile some projects with JDK 1.6). Here the exception when launch any build (with java 1.6) in Mars: Exception in thread "main" java.lang.UnsupportedClassVersionError: org/apache/maven/cli/MavenCli : Unsupported major.minor version 51.0 at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631) at java.lang.ClassLoader.defineClass(ClassLoader.java:615) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141) at java.net.URLClassLoader

How do I make running a JUnit test in Eclipse behave like running the test through Maven on the command line

扶醉桌前 提交于 2019-12-06 08:12:52
I’m using Eclipse Kepler and Maven 3.2.3. I have imported my projects using the M2Eclipse plugin. Normally, when I run a JUnit test on the command line, like mvn clean test -Dtest=MyJunitTest there are some things that run in the “process-resources” and “process-classes” phases before my test is executed. In Eclipse, when I open the JUnit test file in an editor, right click the class name (e.g. “MyJUnitTest”) and right click on “Run As” and “JUnit Test”, those phases do not seem to be getting run. So my question is, how can I make right-clicking on my Junit Test and selecting “Run As” ->

Why does Maven is looking in the wrong repo?

蹲街弑〆低调 提交于 2019-12-06 07:06:58
I'm trying to get the newest hibernate version for my project, for this purpose I've added the jboss repo into my settings.xml <repository> <id>jboss-releases</id> <url>http://repository.jboss.org/maven2</url> </repository> but when I do the depency search from my m2eclipse plugin I see only results from the official maven repo, why? Why I don't see the latest release 3.5.1? Instead only 3.3.2 is shown Maven isn't looking in the wrong repository and dependencies on hibernate 3.5.1 artifacts are available in the JBoss repository (and get resolved). However, m2eclipse is very likely not

How to convert maven project to web application project?

谁都会走 提交于 2019-12-06 03:03:32
I want to convert a maven project to a web application project, which should contain web.xml. I am using eclipse juno 4.2 with m2e (maven integration for eclipse) plugin software. Any reply would be appreciated. Install m2e-wtp In your pom.xml, change or add the war packaging right-click on project > Maven > Update project m2e-wtp will create the src/main/webapp folder and add the Dynamic Web project Facet¤ manually add a WEB-INF folder under src/main/webapp right-click on project > Java EE Tools > Generate Deployment Descriptor stub It will create a web.xml under src/main/webapp/WEB-INF/ ¤ By

Eclipse: Maven project builder generating NullPointerException when building workspace

a 夏天 提交于 2019-12-06 02:43:57
问题 I'm using STS, with the following version info Spring Tool Suite Version: 3.7.0.RELEASE Build Id: 201506290652 Platform: Eclipse Mars (4.5.0) I have imported a number of Maven projects. When Eclipse is automatically building my workspace, this dialog will pop up Errors occurred during the build. Errors running builder 'Maven Project Builder' on project 'myproject'. java.lang.NullPointerException When I look in my workspace/.metadata/.log file, I see !ENTRY org.eclipse.core.resources 4 75 2015

Maven workspace resolution missing jars for local Tomcat testing

北慕城南 提交于 2019-12-06 02:30:44
I have a mavenized project with dependencies upon 4 others mavenized projects that my team is currently working on. We have "workspace resolution" enabled. If I publish to Tomcat, jars are not available for the 4 projects so I see all sorts of NoClassDefFoundError exceptions. I don't see any problems with JUnit testing or packaging. (I run the package goal and the resulting war file includes the SNAPSHOT jars that I expect.) I see a lot of people advocating for using workspace resolution, but if we need to test in Tomcat should we disable this? Or what else might I be missing? We use Eclipse

Automatic update of generated css files via m2e

江枫思渺然 提交于 2019-12-06 00:56:06
问题 I'm using the lesscss-maven-plugin to generate different css files to the target directory ( target\generated-sources ) and then use maven-war-plugin to add this directory as an webResouce. Those files will generate perfectly fine. However the m2e-plugin (version 1.0.0) won't copy those files in the according web-resources folder ( m2e-wtp\web-resources ), when they have changed . Only when I run a eclipse "maven/update project" changes will be updated. But I want the changes to take affect