m2eclipse

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

喜夏-厌秋 提交于 2019-12-07 18:51:59
问题 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

vaadin ---用maven创建vaadin 的工程

时间秒杀一切 提交于 2019-12-07 17:07:29
使用maven 命令创建vaadin 工程: mvn archetype:generate -DarchetypeGroupId=com.vaadin -DarchetypeArtifactId=vaadin-archetype-clean -DarchetypeVersion=LATEST -DgroupId=your.company -DartifactId=project-name -Dversion=1.0 -Dpackaging=war 我的eclipse 里已经安装了m2eclipse 插件,所以使用该工具创建一个这样的maven工程: 生成的工程: 原pom 中已经有了jetty 服务器支持,但tomcat 习惯了,加上tomcat 热部署支持: 到tomcat的安装目录中apache-tomcat-6.0.24\conf在其中增加一个用户定义,默认是没有用户的,结果如下: <tomcat-users> <user username="admin" password="password" roles="manager"/> </tomcat-users> 在maven的setting.xml中定义本机的tomcat: <servers> <server> <id>tomcat</id> <username>admin</username> <password

Unable to download jars using M2Eclipse (0.10.0, using Maven 3)

好久不见. 提交于 2019-12-07 16:05:34
I am using M2Eclipse (0.10.0, Maven 3)in projects. I can add Maven dependency using m2eclipse. But dependency jars couldn't be downloaded. Instead, it created a file in each local repo folder named [JAR_Name].jar.lastupdate. The content of this file is some thing like : http://[REPO_URL]/central/=1276221188566 Even using Maven 3 command line. Jars couldn't be downloaded. Any idea about how could this happen? First off, the presence of "lastupdated" file is irrelevant. We need to know the debug output (mvn -X dependency:tree). Then you mentioned you were using repository manager and mirroring

Import Existing Maven in Eclipse as WTP

瘦欲@ 提交于 2019-12-07 07:36:30
问题 I had to reinstall my Eclipse and now i have to import all the existing projects into the new workspace. The previous version of Eclipse was Galileo, this version is Indigo. The plugins are installed, but after the "Import Existing Maven Project" the projects are not showing as WTP (WebApp Project)... Do i need something else to setup or config? Thanks a lot! 回答1: Yes, you need to install additional software. The "Maven Integration for Eclipse WTP" See here: http://marketplace.eclipse.org

Error in pom.xml Maven build

戏子无情 提交于 2019-12-07 07:05:29
问题 I am getting an error in my pom.xml when trying to build a maven project. The error is here on this plugin: <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>3.1</version> <configuration> <source>1.6</source> <target>1.6</target> </configuration> </plugin> This is the error Eclipse shows: Multiple annotations found at this line: - Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:maven-compiler-plugin:

Deployment to tomcat from eclipse via M2eclipse and Maven

妖精的绣舞 提交于 2019-12-07 06:04:15
问题 I'm using M2E to create Maven archetype projects (in this case a simple web app) with the aim of using Maven to deploy to a remote tomcat server. I've added the tomcat-maven-plugin to the POM.XML file, and it appears to be correct. <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>tomcat-maven-plugin</artifactId> <configuration> <server>localServer</server> </configuration> </plugin> and when I type "mvn tomcat:deploy" into terminal it deploys successfully. So I know my settings.xml

How to add maven repository jars to eclipse buildpath?

不问归期 提交于 2019-12-07 05:43:51
问题 From eclipse I can see all the necessary jars in maven repositories view. But I have around 100 errors for the missing jar files. So I have set M2_REPO environment variable. I have ran the mvn eclipse:eclipse command from command line. When I run this command an ear package is added to one of subpackages of my project. For example my project name is portal. And sub package is portal_ear. The ear after running mvn eclipse:eclipse command is added to target folder of portal_ear. So my question

Change output folder for Android R.java in Eclipse when using Maven

我只是一个虾纸丫 提交于 2019-12-07 04:08:32
问题 I have an android project setup using the maven-android plugin. This plugin adheres to maven output folders for the location of the R.java file (i.e. target/generated-sources/r ). However, when using this project in Eclipse, I can't configure aapt to rely on that folder. Even if I manually go into the project properties and set up the folders manually, the ADT plugin goes in and resets just some of the settings (i.e. adds the /gen folder back as a source folder, and restores the output folder

M2Eclipse, META-INF/MANIFEST.MF

。_饼干妹妹 提交于 2019-12-07 03:08:27
问题 I use the M2Eclipse plugin in Eclipse. And I don't know for what reason, each time I import a Maven project in Eclipse, it always generates an empty - src/main/META-INF/MANIFEST.MF file (jar-packaged projects) - src/main/webapp/META-INF/MANIFEST.MF file (war-packaged projects) I find this a bit annoying ;-) Does someone know how to disable this behavior ? Thanks 回答1: This was fixed in m2e-wtp 0.13.0. Latest m2e-wtp version can be found at http://download.jboss.org/jbosstools/updates/m2eclipse

m2eclipse resource filtering

佐手、 提交于 2019-12-07 01:02:41
问题 I've having problems with resource filtering using m2eclipse Maven support in Eclipse. It seems that filtering only takes place on resources that have changed. This is fundamentally flawed because, if I have a file that references properties (e.g. ${my.property}, if the value of the property changes, the filtering will only be performed if the referencing file is also modified - if I only change the property value (in my pom.xml), the filtering is not applied to the files that that reference