'Upload Quarkus dependency to Nexus

I have a Java based projects using Quarkus. However, the Jenkins pipeline does not support Maven 3.6.3 to build the project which is a Quarkus requirement.

Now, I need to move the Quarkus dependency (which are contained into the pom.xml file) to Sonatype Nexus and remove them from the pom.xml file so that the Jenkins pipeline build the project but takes the Quarkus libraries from Nexus already compiled.

So I take a look at the pom.xml file looking for the .jar files to upload to Nexus but there is a lot stuff here:

<dependency>
  <groupId>io.quarkus</groupId>
  <artifactId>quarkus-mongodb-client</artifactId>
</dependency>
<dependency>
  <groupId>io.quarkus</groupId>
  <artifactId>quarkus-resteasy-jsonb</artifactId>
</dependency>
<dependency>
  <groupId>io.quarkus</groupId>
  <artifactId>quarkus-mongodb-panache</artifactId>
</dependency>

And if I open the folder 'External libraries' from IntelliJ I can find a lot of dependencies too:

enter image description here

So, my final question is how can I simply upload Quarkus to Nexus with just one simple archive? (jar, war, ear..)



Solution 1:[1]

Try building your app in a maven docker container for the pipeline.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 random coder dude