Category "maven"

How to Run as a TestNG test file

When I right-click the class file and choose "Run As" TestNG isn't an option. I've added the TestNG jars by adding the dependency in the pom.xml and running as

How to configure toolchains plugin in m2e / Installed maven in Eclipse

Currently i am using maven(Apache Maven 3.3.9) & Java(Java version: 1.8.0_91) installed in my windows machine. I have a java application which was develope

How to configure toolchains plugin in m2e / Installed maven in Eclipse

Currently i am using maven(Apache Maven 3.3.9) & Java(Java version: 1.8.0_91) installed in my windows machine. I have a java application which was develope

Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:maven-toolchains-plugin:1.1:toolchain

I am using m2e to build a java project. I need to use JAVA VERSION 1.6 . So i am trying to configure toolchains plugin to achieve it. by referring the below lin

which dependency is overriding version of a transitive dependency (Maven)

I'm using the below dependency: <dependency> <groupId>com.azure</groupId> <artifactId>azure-identity</artifactId> <versio

IllegalArgumentException: At least one JPA metamodel must be present

while starting with spring rest I got following error as > org.springframework.beans.factory.BeanCreationException: Error > creating bean with name 'jpaM

MSC00001: Failed to start service jboss.deployment.unit

I have problem with my project using Jboss 7.0 I can't build that. This is my problem 19:00:38,809 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-3

Junit 5 @SpringBootTest executable jar

I am trying to create an executable jar with my test. I cannot use maven to run the tests so I am trying to create a jer that will execute them. I have a jar w

Could not HEAD 'https://jcenter.bintray.com/com/facebook/react/react-native/maven-metadata.xml'. Received status code 502 from server: Bad Gateway

I am trying to build my react-native project for android and getting the following error on Windows but its working on Mac. $ react-native run-android info Runn

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