m2e

tomcat-maven-plugin: Server returned HTTP response code: 403

那年仲夏 提交于 2019-11-28 06:07:45
问题 I'm trying to automatically deploy a Maven webapp from Eclipse Java EE to my local Tomcat server. I'm using Windows XP. This is the error: [ERROR] Failed to execute goal org.codehaus.mojo:tomcat-maven-plugin:1.1:deploy (default-cli) on project practicaIW: Cannot invoke Tomcat manager: Server returned HTTP response code: 403 for URL: http://127.0.0.1:8080/manager/deploy?path=%2Fpractica-3&war= -> [Help 1] I think I know the reason of this error: If I run the Tomcat server inside eclipse, 127.0

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

How do you install m2e-android-plugin in Eclipse?

旧时模样 提交于 2019-11-28 03:43:44
问题 I am trying to get setup to use Maven and pom.xml files in Eclipse for my Android projects. I have Eclipse Indigo setup (m2e included), Android SDK installed, ADT installed. I am struggling to understand what it means to "Install the m2e-android-plugin" (I am always taken to this page which provides instructions on installing it, but which I cannot follow) Specifically, when I go through the instruction on that page, after I complete all the steps in part 2, my structure does not have "Maven

Maven and eclipse: a reliable way to add non-Maven or external jars to a project?

。_饼干妹妹 提交于 2019-11-27 18:45:40
Maven is great. It mostly keeps me out of jar dependency hell by specifying versions of dependent packages in the pom configuration, and applies them automatically. It also has great integration with Eclipse via m2e, so that things work seamlessly in an IDE. This is all great for dependencies that are globally known to Maven. However, sometimes, there are libraries that need to be included in a project that is not available in the Maven repos. In this case, I usually add them to a lib/ directory in my project. As long as they are in the classpath then things compile. However, the problem is

get rid of POM not found warning for org.eclipse.m2e:lifecycle-mapping

给你一囗甜甜゛ 提交于 2019-11-27 17:41:19
With intent to get m2e 1.0 working correctly I have had to specify the lifecycle mapping: <pluginManagement> <plugins> <plugin> <groupId>org.eclipse.m2e</groupId> <artifactId>lifecycle-mapping</artifactId> <version>1.0.0</version> <configuration> <lifecycleMappingMetadata> <pluginExecutions> <pluginExecution> <pluginExecutionFilter> <groupId>org.bsc.maven</groupId> <artifactId>maven-processor-plugin</artifactId> <versionRange>[2.0.2,)</versionRange> <goals> <goal>process</goal> </goals> </pluginExecutionFilter> <action> <execute /> </action> </pluginExecution> </pluginExecutions> <

Usage of maven Build Helper Maven Plugin

元气小坏坏 提交于 2019-11-27 17:38:08
问题 I'm attempting to add a source folder for maven java project to Eclipse using a maven plugin. When trying to use the org.codehaus.mojo plugin I receive the following error Failed to execute goal org.codehaus.mojo:build-helper-maven-plugin:1.7:add-source (default-cli) on project application-framework: The parameters 'sources' for goal org.codehaus.mojo:build-helper-maven-plugin:1.7:add-source are missing or invalid -> [Help 1] From reading the docs on http://mojo.codehaus.org/build-helper

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>

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

Eclipse JRE System Library [J2SE-1.5]

本秂侑毒 提交于 2019-11-27 09:44:54
问题 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

Compiler error “archive for required library could not be read” - Spring Tool Suite

旧城冷巷雨未停 提交于 2019-11-27 06:47:03
I am starting to configure my development environment and I am using Spring Tool Suite 2.8.1 along with m2E 1.01. As far as I can tell, since this is a Maven Project (my first), my Maven POM is dictating (along with m2E smarts) my project build configuration and dependencies. What I would like to know is why my IDE is displaying Java Build Problems that read "Archive required for library library/path/somejar.jar cannot be read or is not a valid zip file" when I can see the jars in my .m2 repository? All the errors pertained to commons-logging:1.1.1 which I excluded in my parent-pom. This was a