Skip to content
Advertisement

Tag: maven-plugin

Application build is successful but getting error: ‘no main manifest attribute, in app.jar’ while running the image

I am trying to deploy my spring boot application on a docker. I have created a docker file as follows. The docker file builds fine but when I run the image it throws the following error: Please note that my application runs on JDK 11, maven build and already added dependency for spring-boot-maven-plugin. I couldn’t find a proper solution for

Disabling “Download sources and javadoc” in eclipse

I’m using Eclipse 20210312-0638 I have unchecked “Download artifact sources” and “Download artifact javadoc” from preferences (First picture). It’s still downloading them (2nd picture). Is there any other configuration that I should change? Answer Someone already filled a bug at Eclipse: https://bugs.eclipse.org/bugs/show_bug.cgi?id=576112 Apparently, it’s fixed in M2E, but not yet released. Though, you can update on the latest snapshot as

Maven Package Command Failure

I am new with maven and package command for my project is failing but I have not been able to figure out what the error is from the generated log. Below is the output of the mvn clean package -X This is pom.xml Also, I am using jenv to toggle between different java versions, since I have another project that

Using custom packaging type as dependency in maven

I have created a custom packaging type in my maven plugin so that I can deploy files in this custom format. E.g. I have a project that uses this format for packaging. The pom.xml has: I am able to deploy successfully to a repository. But now I want to use this as a dependency in another project. E.g. by adding

Advertisement