I want to exclude a direct dependency of a Maven plugin and the approach described in this answer does not work (as indicated by this comment). As a particular example: I still see javax.xml.bind:jaxb-api in the list of dependencies (with mvn … -X). What am I doing wrong? (In case someone has an idea for how to replace the dependency
Tag: maven
java.lang.NoClassDefFoundError: com/google/inject/Module using Guice
I am trying to use the DI mechanism provided by Google, but when I run my application, I am getting the following error: The pom.xml file looks like: And the code where I am using it looks like: And I have imported com.google.inject.Guice and com.google.inject.Injector I have been checking for several places but I cannot see any relevant solution for
Could not exec java with Spring+Maven exit code 1
I am new to Spring/Maven, and am following this tutorial: Serving Web Content with Spring MVC. Everytime I run mvn spring-boot:run, I get this error: Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:1.5.2.RELEASE:run (default-cli) on project gs-serving-web-content: Could not exec java: Application finished with exit code: 1 -> I tried to add classpath, tried to run mvn install clean spring-boot:run, did a lot
Why are some maven projects in IntelliJ grayed out?
Why are some maven projects in IntelliJ greyed out? Answer Seems images are better way to answer this question. Projects are greyed out when you ignore them in your IntelliJ workspace. To add those projects or modules back in your workspace, right click on them and click on unignore projects as shown in below screenshot. Alternatively, you can also go
Maven build failure : could not transfer metadata
I’m trying to run maven clean install but i got these errors and warnings here is my pom.xml When i run the mvn -X compile i got this I’ve already tried to delete the repository and i’m not using any proxy. Is there anything i’m missing? Could you help me please Answer You have wrong URLs for the repos. Please
Run a Maven Project using IntelliJ IDEA
I’m new to IntelliJ IDEA and I would like to run a simple Maven Quickstart project using it. I followed all the instructions, the project was sucessfully built. But when I try to compile and run it , the Run button is not activated. It looks like IntelliJ IDEA couldn’t figure out where the main class is. This is a
Spring boot application won’t run when trying to run from the jar file
I have a spring boot application which works fine when run through intellij. But when I run it from the jar I am getting the below exception. Below is my pom file. I tried to create the jar by both and Then I run the jar by java -jar -DParamName=”someParam” What am I doing wrong here? I am new to
How to deploy a java jar file to remote server through maven
I want to deploy a jar file to a remote server and run it. Is there a plugin for maven can do this process? I know that tomcat for maven plugin can deploy the war file to remote server, but my project …
Spock Error:Groovyc: Could not instantiate global transform class
I m new to Spock, tried to write a simple Spock but it failed: here is my Spec: and here is my pom.xml: what is wrong my Spec or pom setting? do i have to install Groovy to make it work? Answer Here is your test, re-written in more idiomatic Spock/Groovy: A couple of notes: Groovy (in which Spock tests
Report not being generated with Maven-Surefire-Report plugin
As the title suggests, I’m trying to generate an HTML report of the JUnit results when my maven project executes. I was told to check out maven-surefire-report plugin by another person and it looks like it has what I’m wanting but I just can’t seem to get the HTML file to generate. I’m looking to ONLY generate an HTML file