Category "maven"

BUILD ERROR The plugin 'org.apache.maven.plugins:maven-eclipse-plugin' does not exist or no valid version could be found

Searching repository for plugin with prefix: 'eclipse'. org.apache.maven.plugins: checking for updates from central NG] repository metadata for: 'org.apache.ma

Implementation OKHTTP doesn't work on Android project

i followed this tutorial: https://www.journaldev.com/13629/okhttp-android-example-tutorial But when i try to start the project give me this error: Execution fai

Maven build error after setting toolchain right

I have Java version 1.8.111 installed and the initial error message after running mvn3 install was as below. [ERROR] Failed to execute goal org.apache.maven.p

Using junit @Rule, expectCause() and hamcrest matchers

I have a test: @Rule public ExpectedException thrown = ExpectedException.none(); ... @Test public void testMethod() { final String error = "error message";

How can we set up Maven project in GoCD?

I have worked with Jenkins before. But we moved to GoCD now. I want to run a simple Maven project periodically for regression testing purposes.

Is there any way of having maven scp wagon work consistently on linux/mac/windows platform?

Given the very poor documentation about scp/ssh and maven I tried different approaches, basically falling in two main categories: using scpexe wagon and scp wag

Maven toolchain not getting triggered in build

I'm using the latest maven 3.3.9 which enforces java 8, and trying to compile a project in java 7 using a java 7 maven toolchain. As per: The maven guide I'

How to quickly detect and remove log4j classes from our code base and the base image? "mvn dependency:tree" does not check base image

We are building an app based on Red Hat JBoss AMQ 6. We wrap some Java code around the base image to provide extra functionalities which are lacking in AMQ 6. N

mvn command is not recognized as an internal or external command

I am getting the mvn command not recognized as an internal or external command. I have setup the M2_HOME, JAVA_HOME and added %M2_HOME%/bin to the path variabl

Is it at all possible to execute 'mvn test' when tests are in src/main/java and not in src/test/java [duplicate]

I have inherited a project which has over 100 Junit test classes. The problem is the unit test sources and main source files are in the same

SonarQube 3.7 with maven and Jenkins - Maven session does not declare a top level project

Context I'm currently having an issue with sonarqube 3.7 being run by maven via jenkins The project is setup as a maven multi-module project and jenkins is ru

maven-javadoc-plugin sourceFileExcludes not working

I'm not too sure what is the right way to use this tag, but I use it like this: <sourceFileExcludes> <exclude></exclude> <exclude>&

Getting "Skipping JaCoCo execution due to missing execution data file" upon executing JaCoCo

I'm using Maven 3.0.3, JUnit 4.8.1, and Jacoco 0.6.3.201306030806, and I am trying to create test coverage reports. I have a project with unit tests only, but

Could not read standard output of command 'cmd'

I am getting the below error when I try to execute the 'clean package' maven command. Any ideas why the stream is closed ? However, when I launch the task by it

What does M1 mean in a maven repository?

I've been using maven for a while, and I often review repositories before selected what version I want to use. I don't entirely understand what the extensions

maven : deploy artifact file name

Hi : Im finding that maven deploys by default change the file name to match the version+artifact id. For example Deploying a jar file, with artifact=A and ve

maven toolchain in profile

If I define toolchain plugin in activated by default profile it's not working for some plugin such as maven-javadoc-plugin(for maven-compiler-plugin it is worki

Maven doesn't execute any unit test

I am using Maven with multi-modules. There are 3 projects. foo(the parent project) foo-core foo-bar I configure all the dependencies and plugins in foo's pom