Questions tagged [maven-package]

18 questions
18
votes
5 answers

Maven with an explicit finalName won't work properly

1. Background My maven project has a lot of modules and submodules with jars and wars and everything works. I also can deploy it on server without any problem. I decided to follow this maven naming conversion, I am making some tests with…
Paulo
  • 2,956
  • 3
  • 20
  • 30
4
votes
1 answer

Spring Boot with spring version 2.5.7 fails repackage with jdk 1.8

When running a maven package goal mvn clean package The build throws the error: goal org.springframework.boot:spring-boot-maven-plugin:3.0.0-M1:repackage failed: Unable to load the mojo 'repackage' in the plugin…
Leo
  • 43
  • 1
  • 1
  • 5
3
votes
3 answers

Maven package doesn't include all the dependecy's JARs

I'm creating a WAR for a Java Web application. The problem is that inside the WAR, in /WEB-INF/lib only a few JARs were included. Here is my POM.xml:
pfernandom
  • 929
  • 10
  • 22
2
votes
0 answers

Why does a Maven 3 multi-module project fail on "clean package", and succeed on "clean compile" followed by "package"?

This is similar to the asked and answered question Maven test dependency on multi module project. However, this has nothing to do with the test phase, instead I'm having problems with package. I have a multi-module project something…
rbellamy
  • 5,683
  • 6
  • 38
  • 48
2
votes
4 answers

Why during the install phase of maven cycle, package phase is called as well?

I have in my pom.xml a section org.apache.maven.plugins maven-install-plugin ./lib/pom.xml ./lib/wls-maven-plugin.jar
Oleksandr Papchenko
  • 2,071
  • 21
  • 30
1
vote
1 answer

JanusGraphFactory cannot make CQLStoreManager

Problem Why am I getting this error when the dependency is being included? Could not find implementation class: org.janusgraph.diskstorage.cql.CQLStoreManager org.janusgraph
Zach
  • 539
  • 1
  • 4
  • 22
1
vote
0 answers

Download only last published snapshot files from the latest version of maven package in azure artifact feeds

Is it possible with Download Package Manager just to download latest snaptshot war file from maven plugin? I'm trying to download maven artifacts from azure artifact feeds. Currenlty Download Package manager is downloading the latest version war…
1
vote
1 answer

Sharding-jdbc: preciseAlgorithmClassName: java -jar project.jar error:Caused by: java.lang.ClassNotFoundException

https://github.com/apache/shardingsphere/issues/5657 dependency: org.apache.shardingsphere sharding-jdbc-spring-boot-starter 4.0.0-RC1
1
vote
1 answer

A simple way to create a single file artifact using maven?

I'd like to create an single file artifact. Don't care if it's wrapped by an archive file. Is there a way to do it without creating a new maven-plugin or without using an additional assembly xml file? * Full code (XMLs) would be appreciated.
AlikElzin-kilaka
  • 34,335
  • 35
  • 194
  • 277
0
votes
1 answer

Getting 404 page not found error while using Artifactory as proxy for the GitHub repository where my Maven package is published

I have published Maven package into GitHub and Im trying to use Artifactory as an proxy to fetch the Maven packages from GitHub repository. For this, I have created one remote repository in Artifactory and configured with GitHub repo URL, I have set…
0
votes
1 answer

What tags are really required or recommended when using packaging type pom in Maven?

Once you set packaging equal to pom, do you need the groupID, artifactId and version tags and if so, what purpose do they serve? Are there any tags you should use (after all groupID is clearly intended for java so I wouldn't be surprised if there…
gunslingor
  • 1,358
  • 12
  • 34
0
votes
1 answer

create folder into maven package

I would like to include all the folders contained in "" within a folder that will be created in the package that will be called "common". To be more explicite, I would like the tree structure to be in this form: mypackage.jar | common |…
Arthur.D
  • 35
  • 5
0
votes
1 answer

How to fix maven-packaged jar reporting 'Error: Could not find or load main class .\FormulaTelemetryApp-1.0-SNAPSHOT.jar'

I am trying to package my JavaFX application using Maven, running it using exec:java is no problem and running maven - package yields no errors. But when I want to execute the runnable jar it returns the error 'Error: Could not find or load main…
YFrickx
  • 108
  • 1
  • 10
0
votes
1 answer

Packaging multiple JAR with Maven by changing a dependency

I have a simple problem but being a novice with Maven it's unclear which is the best practice to solve this problem. A project I'm working has a dependency to manage archives which is the following: net.sf.sevenzipjbindings. This dependency is made…
Jack
  • 131,802
  • 30
  • 241
  • 343
0
votes
0 answers

How does maven know to package web application?

I just used web-app archetype maven and develop in this style directory, calling the "mvn package" produces the right way of package, I found these configuration in eclipse by right click on application and deployment assembly, but where are these…
Placinta Alexandru
  • 463
  • 2
  • 7
  • 20
1
2