maven-3

Maven workspace resolution missing jars for local Tomcat testing

痞子三分冷 提交于 2019-12-22 10:04:57
问题 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

Maven 3 - Distribute custom plugin in a .jar?

断了今生、忘了曾经 提交于 2019-12-22 09:34:17
问题 Complete Maven newb here, so forgive any abused terminology, etc. I've built a custom plugin in Maven 3 (one that defines goals for git rebase). I'm able to: mvn install No problem. I can then invoke the goal from the command line: mvn edu.clemson.cs.rsrg:git-plugin:rebase Everything's golden. I have this lovely git-plugin-XXX.jar file sitting in my target directory. I'd like to make my custom goals available to another project such that when other members of the dev team pull down that

Maven: execution from command line and multiple executions in config

百般思念 提交于 2019-12-22 05:43:08
问题 I would like to execute a plugin goal from command line but perform multiple executions of the plugin. To this end my POM looks like this: <plugin> <groupId>xxx.yyy</groupId> <artifactId>zzz</artifactId> <version>1.1.6</version> <executions> <execution> <id>default-cli-1</id> <goals> <goal>mygoal</goal> </goals> <configuration> .... config1 .... </configuration> </execution> <execution> <id>default-cli-2</id> <goals> <goal>mygoal</goal> </goals> <configuration> .... config2 .... <

How to deploy an artifact into Amazon S3 with Maven?

流过昼夜 提交于 2019-12-22 04:40:09
问题 I'm trying to follow these tutorials (1,2) to achieve the mentioned goal. But I'm still getting this error from Maven: INFO] Installing /home/valter/temp-workspace/document-engine/target/application-1.0.0.CI-SNAPSHOT.jar to /home/valter/.m2/repository/com/company-solutions/application/1.0.0.CI-SNAPSHOT/application-1.0.0.CI-SNAPSHOT.jar [INFO] Installing /home/valter/temp-workspace/document-engine/pom.xml to /home/valter/.m2/repository/com/company-solutions/application/1.0.0.CI-SNAPSHOT

Spark runtime error: spark.metrics.sink.MetricsServlet cannot be instantialized

吃可爱长大的小学妹 提交于 2019-12-22 01:43:12
问题 I got invocation target exception when running project with spark 1.3 lib in maven in IntelliJ. I got met this error only in IntelliJ IDE. After I deployed the jar and ran via spark-submit, the error went out. Any one has met with the same problem before? I hope to fix this problem so as to do easy-debugging. otherwise I have to package the jar every time when I want to run the code. details are as below: 2015-04-21 09:39:13 ERROR MetricsSystem:75 - Sink class org.apache.spark.metrics.sink

Spark runtime error: spark.metrics.sink.MetricsServlet cannot be instantialized

我是研究僧i 提交于 2019-12-22 01:43:06
问题 I got invocation target exception when running project with spark 1.3 lib in maven in IntelliJ. I got met this error only in IntelliJ IDE. After I deployed the jar and ran via spark-submit, the error went out. Any one has met with the same problem before? I hope to fix this problem so as to do easy-debugging. otherwise I have to package the jar every time when I want to run the code. details are as below: 2015-04-21 09:39:13 ERROR MetricsSystem:75 - Sink class org.apache.spark.metrics.sink

Maven SoapUI plugin - how to execute 2 SoapUI test projects during Maven's lifecycle

流过昼夜 提交于 2019-12-21 22:48:14
问题 I have 2 different SoapUI test projects that I want to run during the build (I am using maven-soapui-plugin 3.6.1 and Maven 3 for that). Currently all I can do is to execute only 1 project (see my pom.xml file)... Suppose I want to execute 2 SoapUI test projects and also control their execution order... What is the correct syntax to do so ? My current pom.xml file : <plugin> <groupId>eviware</groupId> <artifactId>maven-soapui-plugin</artifactId> <version>3.6.1</version> <configuration>

Why can't I find my settings.xml under ~/.m2?

不想你离开。 提交于 2019-12-21 21:10:45
问题 Why can't I find my settings.xml under ~/.m2 ? Note: I'm currently running Apache Maven 3.3.9 on my machine. 回答1: There are two locations where a settings.xml file may live: The Maven install: ${maven.home}/conf/settings.xml The user’s install: ${user.home}/.m2/settings.xml The former settings.xml are also called global settings, the latter settings.xml are referred to as user settings. If both files exists, their contents gets merged, with the user-specific settings.xml being dominant. Tip:

How to determine what artifacts are built from a maven reactor plan (ie: including sub modules)?

心不动则不痛 提交于 2019-12-21 20:35:15
问题 (Note: this question was originally posed by Dan Allen on Google+ here: https://plus.google.com/114112334290393746697/posts/G6BLNgjyqeQ) If I ran 'mvn install', what artifacts would it install? Or, if I ran 'mvn deploy', what artifacts would it deploy? This would likely be a fairly straightforward plugin to write, but I don't want to re-invent this if it's already available somewhere programmatically. It seems like this should be readily available somewhere. 回答1: As Andrew Logvinov already

Run Eclipse with M2 Maven build ignores “Store method parameter names” definition

主宰稳场 提交于 2019-12-21 20:17:09
问题 My application uses reflection in order to extract parameters names for a specific method. I need the names like they are written in my code (and not arg0, arg1...). In order to achieve this I go to: Windows -> Preferences -> Java -> Compiler - and mark: "Store method parameter names". (I use JDK1.8 with Eclipse Kepler) Now, when I do something like: method.getParameters()[0].getName() If I run my application with Debug Configuration = Java application --> it works fine! BUT , if I run it