m2eclipse

How does one get JAXB-generated sources onto the Eclipse build path under m2e/Indigo?

故事扮演 提交于 2019-11-29 23:32:02
Under Helios/m2eclipse, when I generated jaxb sources they would be put on the Eclipse source path when I did an "Update Project Configuration". This doesn't happen with Indigo/m2e (initial release of 22 June 2011). What do I need to do to fix this? I'm using the standard maven-jaxb2-plugin, version 0.75. Eric In Eclipse go to "Install New Software" add the software site: http://bitstrings.github.com/m2e-connectors-p2/releases/ Select the "m2e connector for jaxb2" Once you get that plugin installed the jaxb2 plugin should integrate correctly with the new version of m2e. This info is from:

Maven plugin in Eclipse - Settings.xml file is missing

北城余情 提交于 2019-11-29 21:24:22
I installed the maven plugin for eclipse. Then tried updating the index and got the following error: Unable to update index for central|http://repo1.maven.org/maven2 While trying to edit the proxy settings through windows-preferences-maven-user settings, I realise there is no such file. I don't have separate maven installation and only the plugin. Please someone could help resolving the problem? Thank you very much. Cheers A Config: Helios Service Release 1 org.maven.ide.eclipse.feature (0.12.0.20101115-1102) "Maven Integration for Eclipse" The settings file is never created automatically, you

How do I find the correct Maven archetype project for developing with Scala in Eclipse?

南楼画角 提交于 2019-11-29 21:07:32
I'm having problems trying to just create a Maven project using Scala (v2.11.6) within Eclipse (Luna). The instructions here says to install both plugins below. Maven Integration in Eclipse m2eclipse-scala connector Both plugins can be installed by using the m2eclipse-scala update site . So here's what I did in my first attempt. Download Eclipse Luna (for JavaEE developers) Install "both" plugins above by using the m2eclipse-scala update site. When Eclipse loads up, I attempt to create a Maven project, and the archetype I want to use is Group Id=net.alchim31.maven, Artifact Id=scala-archetype

Eclipse + Maven + Tomcat: testing web apps when the WAR is built with custom options

夙愿已清 提交于 2019-11-29 20:02:50
问题 I am using Eclipse (Helios), with the "m2eclipse" plugin. I am working on a Maven-based web application project, which I test on a local Tomcat server that is setup inside Eclipse. Generally, this works more or less great. "m2eclipse" can sometimes be flaky... but for the most part it keeps my POM and my Eclipse project settings in sync, and likewise keeps the deployed code current in Tomcat. However, recently I've added a wrinkle. I have one JavaScript include file that needs to be different

An internal error occurred during: “Updating Maven Project”. java.lang.NullPointerException

为君一笑 提交于 2019-11-29 19:41:21
I'm developing a Java EE web project. When I try to add a dependency, this error message appears. I use Eclipse Kepler. An internal error occurred during: "Updating Maven Project". java.lang.NullPointerException Could you help me? Thank you. user2985381 I solved mine by deleting the .settings folder and .project file in the project and then reimporting the project. For me worked the answer I found on CodeRanch , by user Maneesh Godbole : Close eclipse. Navigate to your "workspace" folder Ensure the setting on your OS to view hidden files is turned on Identify and delete the .metadata directory

How does one automate configuration of Eclipse?

雨燕双飞 提交于 2019-11-29 14:26:19
问题 A team working on a project will tend to need a common configuration of Eclipse. This includes general configuration and project specific configuration. For example, generally, everyone might wish to share indentation, installation of certain plugins (say m2eclipse, testng, egit, Spring support). Further, for a project, you might want specific plug-in configurations (e.g., for m2eclipse, setting up a custom Maven settings file, configuring extra Maven targets for eclipse build events), or a

Failure to transfer dependency, was cached in the local repository

坚强是说给别人听的谎言 提交于 2019-11-29 06:44:58
I am working on maven 2 project on eclipse, and I have the m2e plugin, and I am getting the following error in Eclipse: Failure to transfer com.thoughtworks.xstream:xstream:pom:1.3.1 from http://repo1.maven.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer artifact com.thoughtworks.xstream:xstream:pom:1.3.1 from/to central (http:// repo1.maven.org/maven2): Failed to create a selector. to http://repo1.maven.org/maven2/com/thoughtworks/xstream/ xstream/1.3.1

Maven的使用,Nexus建立本地仓库以及Eclipse导入Maven项目(一): 准备篇

℡╲_俬逩灬. 提交于 2019-11-29 05:14:31
Maven的使用,Nexus建立本地仓库以及Eclipse导入Maven项目(一): 准备篇 准备工作: JDK Homepage: http://www.oracle.com/technetwork/java/javase/downloads/index.html 从Oracle官方网站下载合适版本的JDK [32位 or 64位, 以操作系统为准] 64位Windows操作系统可以使用32位JDK,但不推荐 [64位JDK内存分配和性能较好] Eclipse Homepage: http://www.eclipse.org/downloads/ 从官方网站下载合适版本的Eclipse [32位 or 64位, 以操作系统为准] **64位Windows操作系统可以使用32位Eclipse,但不推荐 [64位的内存分配和性能较好] Eclipse与对应的JDK版本关系要注意. 32位的Eclipse要使用32位的JDK,同理64位的要使用64位的JDK Maven Homepage: maven.apache.org Maven 2.0.11 要求JDK1.4 Nexus Homepage: http://www.sonatype.org/nexus/ Bundle版本内置了Jetty, 也可以下载war版本,部署于自己的app server中 m2eclipse [Maven

关于m2eclipse插件在myeclipse 及其以后版本的问题及终极解决办法!

时光怂恿深爱的人放手 提交于 2019-11-29 04:34:37
关于m2eclipse插件在myeclipse9 及其以后版本的问题及终极解决办法! 关于maven-archetype-webapp 新建 maven webapp 无法直接在tomcat中部署的问题的解决方案 首先请注意,本文不配图 如果你看到本文请仔细看 首先说明 myeclipse自身自带有maven4Myeclipse 的maven插件,但是在myeclipse 9下通过 新建maven project 选择默认工作路径后 选择 maven-archetype-webapp 模式新建maven web工程会出现工程无法创建的情况或者创建工程不全的情况。 针对以上情况,对于以上情况 myeclipse9以后的用户可以保存好工作区然后 1、安装myeclipse 在安装时选择自定义 左下角复选框 2、把默认的maven support勾选掉然后进行安装(顺便说下这个地方不用的东西很多可以根据自己的选择去掉) 3、安装m2eclipse插件 官方网站: http://www.eclipse.org/m2e/download/ 官方提供在线安装地址 ,但是不建议在线安装,离线咋myeclipse安装目录下myeclipse/dropins文件中采用离线安装方式更为好(具体安装方式www.baidu.com) 4、关于版本选择:我在安装离线包的时候1.4版本最新release

Maven: adding a reference to a parent pom project

折月煮酒 提交于 2019-11-29 03:34:46
I'm not sure if I'm understanding how to use a parent pom project correctly. I have the following parent pom defined: <modelVersion>4.0.0</modelVersion> <groupId>com.example</groupId> <artifactId>parent</artifactId> <version>0.0.1-SNAPSHOT</version> <packaging>pom</packaging> <modules> <module>../child1</module> <module>../child2</module> </modules> And then the children pom reference the parent (each child has their own set of dependencies which are not shown): <parent> <groupId>com.example</groupId> <artifactId>parent</artifactId> <version>0.0.1-SNAPSHOT</version> <relativePath>../Parent/pom