maven-3

How to configure the Maven dependency for Guice 3.0 for use without AOP?

跟風遠走 提交于 2019-12-23 09:20:05
问题 I have an Android Maven project and want to use Google Guice 3.0 in it. There is a "No-AOP" version of Guice, which is compatible with Android. How can I tell maven to use the "No-AOP" version of guice? Update 1 (03.05.2013 10:46 MSK): When I add the dependency on Google Guice, I get following exception during the build ( mvn clean install ): [INFO] UNEXPECTED TOP-LEVEL EXCEPTION: [INFO] java.lang.IllegalArgumentException: already added: Lcom/google/inject/Abs tractModule; [INFO] at com

Send Maven output to console and log file using pom

北慕城南 提交于 2019-12-23 07:11:34
问题 Question : When running Maven in Eclipse, how do I send the console output to file? I would like to achieve this using a pom setting or a maven plugin. I do not want to modify the run configurations or the maven system settings. For reference, I am using Windows 7, Eclipse Luna, Java 6, Maven 3. 回答1: As per official command line options you could use -l,--log-file <arg> which provide the: Log file where all build output will go. As such, running: mvn clean install -l output.log Would not

Send Maven output to console and log file using pom

爷,独闯天下 提交于 2019-12-23 07:10:28
问题 Question : When running Maven in Eclipse, how do I send the console output to file? I would like to achieve this using a pom setting or a maven plugin. I do not want to modify the run configurations or the maven system settings. For reference, I am using Windows 7, Eclipse Luna, Java 6, Maven 3. 回答1: As per official command line options you could use -l,--log-file <arg> which provide the: Log file where all build output will go. As such, running: mvn clean install -l output.log Would not

Guice + Jersey integration injects null objects

蓝咒 提交于 2019-12-23 05:01:26
问题 Following the excellent step-by-step given in Up and running on AppEngine with Maven, Jersey and Guice - Part 3, I have been able to get everything working except injecting objects into a Jersey POJO. The only difference I have from that configuration is that I also have Objectify integrated, but that is working. The TestClass instance (a singleton) injected into HelloWorldServlet works, but the TestClass and SecondTest ( RequestScoped ) objects injected into the HeyResource POJO are always

Running ghostdriver using java gives error

笑着哭i 提交于 2019-12-23 04:06:33
问题 I am using remote ubuntu machine to run my test cases. I have jenkins configured with github. I can access this machine using putty.exe using my windows7 machine. I want to use phantomjs to run headless test cases (schedule jobs)i.e. when my windows machine is off the tests will run on remote ubuntu machine which is always on. Now the problem is , when I am build now it gives error : Caused by org.openqa.selenium.HasInputDevices ... ... My setup() method and pom looks like : setup()

How to set project version in maven at build time?

蹲街弑〆低调 提交于 2019-12-23 03:55:10
问题 I am trying to implement semantic versioning in our project. I tested maven semver plugin but that didn't help me so please don't ask me why. I finally ended up using maven groovy. It works like a charm, however, when I install or deploy the maven project the version in repository is the variable name. This is despite the fact that all the artefacts and jar files are packaged with correct version. So please look at my pom.xml <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven

Transitive dependencies brought by provided scope and compile scope are computed as compile scope

白昼怎懂夜的黑 提交于 2019-12-23 03:45:49
问题 We face an issue when a same artifact-X is transitively brought by a dependency-1 with provided scope, and another dependency-2 with default (compile) scope. This artifact-X will be computed as compile scope, while we expect it to be explicitly provided by dependency-1 . For example, dependency-1 pom contains: <dependencies> <dependency> <groupId>org.apache.commons</groupId> <artifactId>commons-lang3</artifactId> <version>3.7</version> </dependency> <dependency> <groupId>org.apache.commons<

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

南笙酒味 提交于 2019-12-23 02:17:21
问题 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? 回答1: First off, the presence of "lastupdated" file is irrelevant. We need to know the

Maven build for Grails 2.2.0 app fails with JDK 1.7: Could not find artifact com.sun:tools:jar:1.6

删除回忆录丶 提交于 2019-12-22 12:18:22
问题 (Updated question title due to updated question/problem, please see my update notes at the bottom!): I have a Grails 2.2.0 project, created the pom.xml for it via ' grails create-pom com.mycompany '. pom.xml: http://pastebin.com/AVahZjZF Without modifications to the pom.xml, I run ' mvn package ' with JDK 1.7 and getting the error below, while with JDK 1.6 it would work fine. $ java -version java version "1.7.0_11" Java(TM) SE Runtime Environment (build 1.7.0_11-b21) Java HotSpot(TM) 64-Bit

Intellij - Cannot start maven service - ExecutionException

本小妞迷上赌 提交于 2019-12-22 11:17:28
问题 I'm using Intellij 13.1.5 on Ubuntu 14.0.4 (amd64), Maven 3.0.5, Java Oracle 1.7.0_72 I noticed some irregularities with maven whilst using Intellij namely dependencies added and removed where not reflected in the module or in the External Libaries listing. Then when I ran Intellij from the shell I saw this exception: [ 14649] WARN - #org.jetbrains.idea.maven - Cannot open index /home/sbotting/.IntelliJIdea13/system/Maven/Indices/Index0 org.jetbrains.idea.maven.indices.MavenIndexException: