Nexus Repo gives 503 with Maven but not with browser

I just created a Nexus repo on a remote server. If I go to a browser on my local computer I see the pom file just fine. However, when I try mvn clean compile I...

How to set specific Java version to Maven?

On my machine I have two Java versions installed: (1.6 and 1.7 installed manually by me). I need both of them for different projects. But for Maven I need 1.7, but my Maven uses the 1.6 Java...

No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?

I'm compiling a project in Eclipse using m2eclipse. I set the JDK path in Eclipse like this: Windows-->preferences-->installed jres--> jdk1.7.xx path But this is showing an error [ERROR]...

How to understand Maven dependency tree

Please excuse if this a dump question but I have searched a lot and couldn't understand how to actually read Maven Dependency tee. I know this command is used to figure out the dependencies but...

pom.xml shows multiple annotations errors in Eclipse

I can build the project from command line, but when I import it to Eclipse I get following error in pom.xml: Multiple annotations found at this line: - Plugin execution not covered by lifecycle...

Two Maven Errors - 'Type Cannot Be Resolved' + aspect weaver.1.8.0.M1 missing

I have two errors on an existing mvm project I am trying to build and not sure how to get these resolved. First the main one: [ERROR] Failed to execute goal...

Using maven cxf plugin cxf-codegen-plugin java artifacts from WSDL

Using maven cxf plugin cxf-codegen-plugin java artifacts from WSDL. But the javacodes are not populating in the eclipse IDE. Do I need to specify the any other tags to get the java source code in...

mvn dependency:tree fails on trivial project

I've got a pretty complex project (about 100 modules) on which I'd like to run mvn dependency:tree. It fails, complaining about dependencies it cannot resolve. The project otherwise compiles fine....

Building Scala Object, Class Not Found

I am trying to build my Scala Project with Maven, I have used this sample POM as a guide line: http://ryancompton.net/2014/05/19/sample-pomxml-to-build-scala--jar-with-dependenciesjar/ But I am...

LoggerFactory is not a Logback LoggerContext but Logback is on the classpath. Either remove Logback or the competing implementation

I try to start my spring boot in tomcat server but when I'm adding some external jars to my project : appsert-rt.jar gf-client.jar javaee.jar it gives me that error : Exception in thread...

Stop JaxB from generating files in an episode using maven

I have 4 modules in this service I'm creating. There's upload, association, read, and common. The first 3 modules each have their own wsdls that import a common xsd in the common module. I have...

How to change port number for tomcat server using maven

I am writing a Rest service using spring mvc framework and maven. I am using tomcat server for now. My pom for the project is <?xml version="1.0" encoding="UTF-8"?> <project...

Why does SBT look for pom instead of ivy.xml

So i have a build.sbt that looks like this , This is a part of it . resolvers ++= Seq( "Typesafe Repository" at "http://repo.typesafe.com/typesafe/releases/", ...

Encoding in Maven Tests not working properly

I am currently trying to write a test that is run via Maven that specifically addresses strings containing UTF-8 characters. If I run said test in IntelliJ everything is fine and the results are...

RESTEASY003210: Could not find resource for full path : Tomcat

I am getting the following error: This is the stack trace: javax.ws.rs.NotFoundException: RESTEASY003210: Could not find resource for full path:...

What project files are supposed to be ignored in '.gitignore' file? (Spring Boot)

I have created my first git repository and trying to put Spring Boot project. In the initial git asked to configure ".gitignore" file but i was not sure what files must (supposed to) be in, so i...

Error: log4j-api-2.9.0.jar is a multi-release jar file but --multi-release option is not set

Exploring the maven-jdeps-plugin:3.1.0 with Java9 using the following minimal pom.xml:- <dependencies> <dependency> <groupId>org.apache.logging.log4j</groupId> ...

Maven compilation issue with Java 9

Trying to compile a Maven project using JDK 9.0.1 I'm facing this stacktrace without much of an explanation: Exception in thread "main" java.lang.AssertionError at...

Maven compiler plugin null pointer

I have a problem during run of my tests by terminal. I need to run mvn install, but I get: [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.7.0:compile...

Java Spring Boot MongoDB Configuration

I am new and I try to develop an API with Java Spring Boot. I have a problem with MongoDB Config and I have no problem in another project. I don't understand why. I have already looked but the...

How to specify Java version in Spring/Spring Boot pom.xml?

What is the correct way of specifying Java 11 as the version to be used in Spring (or Spring Boot) pom.xml file? I.e., what value do I need to put in the java.version property of the pom? For Java...

DynamoDB fake server for integration testing

I am new to DynamoDB and I was wondering if there is any kind of embedded DynamoDB fake server available as a maven dependency/plugin, in order to run end-to-end tests as part of the maven build....

'Error: java: cannot access java.util.function.Function' - while trying to use WebDriverWait

I'm using Maven and Intellij, project set for jdk-12.0.2, maven in pom 1.8 and when trying to run this code : WebDriverWait wait = new WebDriverWait(driver, 5); WebElement el = ...

Java Maven Project "Source option 5 is no longer supported. Use 6 or later."

I'm following a PluralSight course, "Spring Framework: Spring Fundamentals" by Bryan Hansen. I've followed the demo precisely (I believe) but am getting the error message "Error:java: Source...

NetBeans doesn't recognize that dependency is a local project - how to fix?

I have two pairs of projects that I develop in NetBeans, both of which have a GUI project, and a library project, where the GUI project depends on the library one. In one of them, NetBeans...

How to exclude generating of episode file in jaxb2-maven-plugin version 2.5.0?

I use the xjc goal of the jaxb2-maven-plugin to generate Java classes from a set of xsd files. A minimal, complete and verifiable example would be a Maven project with the following pom.xml...

When I am trying to run mvn dependency:tree , I am getting : java.lang.NoClassDefFoundError: org/sonatype/aether/version/VersionConstraint

I have no idea why this is happening. I tried deleting my m2 repository as well. I tried with various versions of maven plugins(2.8) as well. <dependency> ...

React Native build failing Could not HEAD /android-jsc/maven-metadata.xml'

I'm trying to build my react native app which has been working for weeks, but now I'm getting the following error: FAILURE: Build failed with an exception. * What went wrong: Execution failed for...

Error "the JAVA_HOME environment variable is not defined correctly" on running "mvn clean javadoc:jar package"

When I try to execute the command mvn clean javadoc:jar package it shows the JAVA_HOME environment variable is not defined correctly. This environment variable is needed to run this program. NB:...

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 Running jetifier to migrate libraries to...