maven-plugin

Which Eclipse wtp version should I use for maven?

心不动则不痛 提交于 2019-12-07 13:44:42
问题 I receive this error when I try to run the maven goal - mvn eclipse:eclipse -Dwtpversion=3.3.1 [ERROR] Failed to execute goal org.apache.maven.plugins:maven-eclipse-plugin:2.8 :eclipse (default-cli) on project conference-web: Unsupported WTP version: 3.3.1 . This plugin currently supports only the following versions: 1.0 1.5 2.0 R7 non e. -> [Help 1] [ERROR] Will using version 2.0 suffice ? But should'nt the goal run successfully ? <groupId>org.apache.maven.plugins</groupId> <artifactId>maven

Maven - Add Integration Tests

家住魔仙堡 提交于 2019-12-07 13:09:59
问题 trying to split my tests in a Maven build into Unit & Integration tests. I am using the failsafe plugin to run the Integration Tests and attempting to use the build-helper-maven-plugin to add the Integration Tests from the src/it/java directory. I am getting an error when I attempt to do the build and I can't see the reason, the path to my Integration Test source looks to be correct from the root folder of the module. [ERROR] Failed to execute goal org.codehaus.mojo:build-helper-maven-plugin

How to call maven-resources-plugin programmatically

家住魔仙堡 提交于 2019-12-07 11:59:06
问题 I am writing a custom Maven plugin and part of the plugin's job is to filter-copy some resources. The code I've written looks like this: CopyResourcesMojo rm = new CopyResourcesMojo(); rm.setOutputDirectory(outputDir); //determined dynamically in a loop rm.setOverwrite(true); rm.setFilters(filters); //determined dynamically in a loop rm.setResources(this.resources); //Actually is of type List<Resource> rm.execute(); //NulPointerException because rm's project member is null. This throws a

Error resolving version for plugin 'org.apache.maven.plugins:maven-jar-plugin' from the repositories ,Plugin not found in any plugin repository

混江龙づ霸主 提交于 2019-12-07 10:04:01
问题 I am trying to Maven build my Java project but it is getting failed and i am getting below error: Error resolving version for plugin 'org.apache.maven.plugins:maven-jar-plugin' from the repositories [local (C:\Users\Vinita.Gupta.m2\repository), central (https://repo.maven.apache.org/maven2)]: Plugin not found in any plugin repository -> [Help 1] I am trying to build the project in Eclipse Neon and have installed and setup Maven path,m2connector for Eclipse. Note: I am not connected to network

Maven Exec Plugin not reading configuration

自古美人都是妖i 提交于 2019-12-07 08:58:42
问题 I'm trying to execute my project using the Maven exec:exec goal and I've tried to configure it with this snippet: <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>exec-maven-plugin</artifactId> <version>1.1.1</version> <configuration> <executable>java</executable> <arguments> <argument>-jar ${staging.dir}/project.jar</argument> </arguments> </configuration> <executions> <execution> <goals> <goal>exec</goal> </goals> </execution> </executions> </plugin> When I run mvn exec:exec I get

How to remove repositories from Effective POM

最后都变了- 提交于 2019-12-07 06:54:52
问题 I have hard times learning Maven those days, it seems more difficult than learning all 4-5 programming languages I know altogether. However first steps are made and I succeeded to build a first Java REST services project based on Jersey in Eclipse with m2eclipse plugin. As I tried to do that I added a bunch of global repositories most of which are either irrelevant or incorrect and somehow I added all of them to 'Effective POM' instead of project POM so there are number of garbage

how to generate jar and war both in project

不羁岁月 提交于 2019-12-07 06:36:23
问题 we have two different project . And and the controller is almost same in two project. project A has controller inside it. So generating war for it is not problem. But project B is requiring Controller's jar of project A controller. Can any body tell me how can i generate the jar file from the controller of project A which i can use in project B? 回答1: The default solution for such thing is to have two separate modules one for the war and one for the controller module. Don't start fighting with

cant do mvn tomcat:deploy because of http response 405

一个人想着一个人 提交于 2019-12-07 06:24:13
问题 I am running a Tomcat 7 as a windows service. And i want to do mvn:tomcat deploy in my projects root directory. But all the time this error appears, can you help me with this plz? [INFO] Deploying war to http://localhost:8080/opendata [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 2.493s [INFO] Finished at: Sun Jan 20 18:48:30 CET 2013 [INFO]

Add additional path to exec-maven-plugin

牧云@^-^@ 提交于 2019-12-07 02:46:49
问题 I would like to add an additional class path to the exec-maven-plugin. Besides the %classpath, I would like to add an extra path to a directory containing resources (/Users/kornp/resources). Currently, my pom looks like this: <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>exec-maven-plugin</artifactId> <version>1.1.1</version> <configuration> <executable>java</executable> <classpathScope>runtime</classpathScope> <arguments> <argument>%classpath:/Users/kornp/resources</argument>

Is there still no solution for ignoring setter/getter (other trivial methods) with the cobertura-maven-plugin?

帅比萌擦擦* 提交于 2019-12-06 17:14:08
问题 Did someone find a good solution to ignore trivial methods ? Using some automated testing like Unitils is not really an option, since the code-coverage should not go up if only getters/setters are tested! Using cobertrua-maven-plugin version 2.5.1 : -) ignore for methods does not work <ignore>com.company.*.set*</ignore> -) did anyone try to include a patch like http://sourceforge.net/tracker/index.php?func=detail&aid=3010530&group_id=130558&atid=720017 into the maven-plugin? -) anyone uses a