Skip to content

Tag: maven

Why compile command failed in Maven?

I’m new on Maven and I am trying to run through command prompt. Command mvn build successfully clean command. but it failed to build compile and test command. this is my cmd screen Please suggest me what should I do? Answer Add two properties to specify the version of Java you want to target. Currently,…

Java Spring app can’t run after deploy on Tomcat7

I just deployed (first time ever) my Java app based on Spring. On localhost everything worked fine, but after deploy I can’t send any request. Applications just not running on the server. Logs: Any sugestions what’s wrong? I’ll be more than grateful for any help. EDIT: If it helps – I&…

Add maven project as dependency in maven project

I have two Maven projects, both created from the default Maven structure in Eclipse. Project A is dependant on Project B. In order to utilise classes from A in B, I can add B to A’s build path. How can I achieve the same effect using Maven? Currently, I have both of the projects on my file system, but I

405 Method Not Allowed when deploying artifact to Nexus

I am deploying an artifact to a Nexus snapshot repository that allows redeployment, using the maven command: but I have this error: Answer I have never seen a mvn deploy:deploy-file to a nexus/repo/browse URL: browse should not be used for deploying files, only for… browsing them. A typical call would b…

Unable to set mvn JAVA_HOME setting

I’ve also tried setting JAVA_HOME manually with: export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_261.jdk/Contents/Home for some reason mvn insists on using jdk 11. Do you know where it might be overridden? My pom.xml: Answer Your JAVA_HOME exporting command is incorrect. Your bash message al…