Questions tagged [maven]

Maven is a build tool primarily for compiling, building, testing, and deploying Java artifacts and managing their dependencies.

Filter by
Sorted by
Tagged with
18 votes
3 answers
35k views

Migrate Sonatype Nexus repo from one machine to another

I am trying to migrate nexus repo. How can I go about it, any pointers?
zengr's user avatar
  • 337
11 votes
1 answer
2k views

Using Squid as a maven repository

Does someone know how to use Squid to proxify maven repositories ? What are the configuration files for that ? The main problem is that maven client issue HTTP request with headers which control the ...
Anthony O.'s user avatar
9 votes
3 answers
6k views

How can I download Maven artifacts in chef?

I want to do something like this in a chef recipe: maven_artifact "/opt/foo/my.jar" do source "com.foo:my:0.1:jar" end But I can't find a cookbook which provides this. I've written something which ...
recampbell's user avatar
9 votes
1 answer
2k views

Is it possible to authenticate to Sonatype Nexus via ssh keys

Is it possible to authenticate to Sonatype Nexus via ssh keys or any other method that does not require user password in maven settings.xml? I know there are user generated tokens in Sonatype Nexus ...
Andrzej Rehmann's user avatar
5 votes
2 answers
2k views

WSL and maven wrapper?

I'm trying to run my ./mvnw from a Spring Boot project in a WSL (Ubuntu) with Windows 10 Enterprise Build 1803. But I keep getting the same error every time: : not found ./mvnw: : not found ./mvnw: ./...
HFR1994's user avatar
  • 153
4 votes
4 answers
12k views

java.lang.OutOfMemoryError: unable to create new native thread

I consistently get this exception when trying to run my Junit tests on my mac: java.lang.OutOfMemoryError: unable to create new native thread at java.lang.Thread.start0(Native Method) ...
Brad's user avatar
  • 141
3 votes
1 answer
3k views

Can I authenticate to Artifactory or Nexus repositories via SSH?

We're looking for a maven repo with a better browser interface, and a question has come up about whether plaintext passwords in .m2/settings.xml can be replaced with an SSH key when using either ...
jldugger's user avatar
  • 14.5k
3 votes
1 answer
1k views

Running Hudson builds with a lower process priority

At my office we have an older server running Hudson (1.395) and a collection of other things (JIRA and SVN being the important two). When Husdon is running builds, the slowdown on the server is very ...
MBCook's user avatar
  • 165
3 votes
1 answer
5k views

GUI Tests in Hudson (Jenkins) on Windows

I will try to keep this question simple. I've done much research on the topic, and haven't found any solution. GUI Tests fail when doing maven builds on Hudson (Jenkins). Hudson is running as a ...
JT703's user avatar
  • 158
3 votes
0 answers
1k views

Can't reach own host URL from within Jenkins build docker environment

I am running Jenkins as Docker image (https://hub.docker.com/_/jenkins) From within, I run a node-12 docker image as build container. I am running a script to publish the new version to our local app ...
Martin Muzatko's user avatar
3 votes
0 answers
3k views

Can't deploy because folder was not inside a directory whose name ends .war. (JBoss)

I created a default JSF Project using Maven2Eclipse. When I try to start the home.xhtml JBoss returns the following error Message: (DeploymentScanner-threads - 1) JBAS015010: The deployment ...
Lama's user avatar
  • 253
3 votes
1 answer
6k views

How to migrate the sonatype-nexus repository from one instance to another? [duplicate]

We have two nexus instances running on two different Linux servers. We are planning to have only single instance for all apps and hence wanted to move the repositories from a smaller nexus to another ...
saketh's user avatar
  • 31
2 votes
2 answers
21k views

Tomcat Lib Folder JARs and Classpath

I'm not sure if this is the right place to ask this, but I'll go ahead anyway! I am trying to deploy a JAR that I built with maven into the Tomcat/lib folder. The problem I'm having is that all the ...
hell_storm2004's user avatar
2 votes
1 answer
2k views

Overriding attributes with Chef Solo

I'm trying to install Maven 3 using Chef Solo and the following cookbook: http://community.opscode.com/cookbooks/maven The cookbook installs Maven 2 by default, and the first time I ran it, it ...
user avatar
2 votes
2 answers
2k views

ant doesnt get the library dependencies

My system: Windows 7 Ant Version: 1.8.2 JDK: 1.6.27 x64 Sorry Im starting to work with ant and currently trying to install it properly. When I type in cmd this command: ant -f fetch.xml -Ddest=...
cOnf_ua's user avatar
  • 41
2 votes
1 answer
2k views

Disabling proxy repositories in Nexus

I'm setting up a new small Nexus OSS server on an Amazon EC2 instance. Nexus ships with proxies set up for the Apache, Central, and Codehaus repositories, assuming that the Nexus server will be local ...
chrylis -cautiouslyoptimistic-'s user avatar
2 votes
1 answer
608 views

How to build maven project from another folder in azure devops pipeline?

In github actions, we can set this using - name: Build with Maven working-directory: ./VaultService run: mvn clean package --file pom.xml env: CI: false But there is no working-directory ...
Sara June's user avatar
  • 521
2 votes
0 answers
2k views

Maven - resolving "java.security.cert.CertPathValidatorException: Path does not chain with any of the trust anchors"

I am attempting to build/install this project on an Ubuntu 12.04 box: https://bitbucket.org/petermr/pdf2svg However: mvn clean install Fails to build due to getting errors like this: Downloading: ...
Mary Grace's user avatar
1 vote
2 answers
1k views

Running two services on port 80

I need to run Apache and Maven on my server, and because of cross-domain security restrictions they must both be running on port 80. Originally I achieved this using HAProxy, but this got in the way ...
Theron Luhn's user avatar
1 vote
1 answer
4k views

Azure DevOps: Maven is not installed on agent

I have an Azure Pipeline that is meant to install Java 16 and the run Maven package on my repository. The pipeline looks like this: trigger: - master pool: vmImage: ubuntu-latest steps: - task: ...
SimonTheGoat's user avatar
1 vote
1 answer
821 views

Mapping between RPM file names and metadata names generated by maven

We have a Sonatype Nexus repo, where we publish RPMs with the Maven RPM plugin. Snapshots and release versions are available. The issue here is around the mapping between versions. First, I obtain a ...
Jepper's user avatar
  • 376
1 vote
1 answer
1k views

Maven interfering with Jenkins post build script

I have a Jenkins Maven job that has a post build script written in BASH. Periodically, while the post script is running, it seems like some sort of Maven operation is interfering with the BASH script ...
quickshiftin's user avatar
  • 2,185
1 vote
1 answer
2k views

Apache Archiva with ssl proxy

I am quite a newbie in the field of server configuration. At work we want to setup a Maven repository with Apache Archiva, basically we want a place in which store the Maven projects we create. I am ...
Antonio La Marra's user avatar
1 vote
1 answer
4k views

Apache Kafka consumer client connecting to Apache Zookeeper: EndOfStreamException

I get an error when trying to 'consume' messages from Kafka (2.9.2-0.8.1) with a Zookeer stand-alone (3.4.5). You can see the source code below as well as the error message and logfile from Zookeeper. ...
sema's user avatar
  • 121
1 vote
1 answer
2k views

What outbound ports does Nexus Repository Manager use to download Maven artifacts from other repos?

I'm loading up Nexus on a VM with all outbound ports locked down. I need to know what outbound ports Nexus uses to do whatever it does in all scenarios. Let's assume the repositories it connects to ...
Neil's user avatar
  • 2,489
1 vote
2 answers
738 views

Running Maven on port 80

This question is a followup to this one. I got Apache running on port 80 on one of my four IPs pretty easily. Now I need to run Maven on port 80 on another IP. Running Maven on port 80 is already ...
Theron Luhn's user avatar
1 vote
2 answers
6k views

Why does Sonatype Nexus seem to be taking up a ton of memory and CPU time?

Running nexus on Amazon Linux on my SC2 instance. Clean install, then I built a small project against it. Not being used by anyone but me. When I first start Nexus, CPU utilization starts out at 97%...
sangfroid's user avatar
  • 193
1 vote
0 answers
185 views

Installation/Configuration of Apache GUI web interface

I have a stand alone Windows Server 2019 on an AD network. I have been tasked with some configuration of this server that I will develop php web things on in the future. I currently have server admin ...
Anseur's user avatar
  • 11
1 vote
0 answers
506 views

How to install custom version of maven in azure devops pipleine?

I have installed adopt openjdk 16 using the task below. steps: - script: echo Hello, world! displayName: 'Run a one-line script' - script: | wget https://github.com/adoptium/temurin16-binaries/...
Sara June's user avatar
  • 521
1 vote
1 answer
2k views

Download file from Artifact Registry (Maven)

I have been playing with REST API for Artifact Registry. I can find the URL for .zip files I would like to download, but I only get JSON responses. Is it possible to download individual artifact files ...
Henrik Ormåsen's user avatar
1 vote
0 answers
649 views

Nexus mirror (with maven) does not work

Im using Nexus as mirror for maven central and want to add other repositories. If I add this like this <repositories> <!-- org.spigotmc.spigot-api --> <repository> ...
Kokos Bot's user avatar
1 vote
1 answer
1k views

Jenkins stopped building jobs unexpectedly

I installed Jenkins in centos 2.6 in production server and created several build jobs for Maven projects on Java and Groovy. All build jobs were being built periodically. Suddenly it stopped 2 weeks ...
Rahman's user avatar
  • 111
1 vote
0 answers
63 views

Opendaylight Cluster : Error resolving artifactorg.jolokia:jolokia-osgi:jar:1.1.5:Could not transfer artifact

I'm using the integration distribution of Karaf (0.4.1-Beryllium) to deploy a 3 node cluster with Opendaylight Controller. After using the deploy.py script and checking all the configuration files on ...
JaviC's user avatar
  • 11
1 vote
1 answer
287 views

Making war inside Docker stuck on NPM

Using Docker to make war file to attach to Apache Tomcat. Struggling to use NPM/MVN to get Tomcat war up. I'm behind a corporate proxy and the make scripts don't have "bower install --allow-root" (...
user avatar
1 vote
1 answer
298 views

using cas server with mongodb backend

I 'm new to setting up cas(Central Authentication Service) server. I couldn't find any guides to setup mongodb as backend for CAS server. Is there an adapter to connect CAS and mongodb. BTW, we don't ...
cuteboyucsc's user avatar
1 vote
0 answers
535 views

what is the default size of jvm heap when using maven to create jvm?

I am using the server started by the following command. mvn jetty:run i want to stop the server, but i failed to run mvn jetty:stop, even faild to run java -version, why? [mirror@home wpse]$ mvn ...
giantforest's user avatar
1 vote
2 answers
97 views

Keeping application library versions in synch with server

I have a maven based application, and it references certain libraries that are marked as provided by my application server, such as: <dependency> <groupId>javax.servlet</groupId> ...
Jeff Storey's user avatar
1 vote
0 answers
1k views

Sonatype Nexus incompletely proxies external repository

I'm currently attempting to set up a proxy repository (as described in the Nexus guide) for the Bukkit repository, in order to build some dependent projects locally. I'm using the URL: http://repo....
Tim's user avatar
  • 1,158
1 vote
1 answer
339 views

maven + cruisecontrol - slow builds

I am running cruisecontrol with maven to build a Scala-project. When I run mvn package outside cruisecontrol,the build takes less than 10 seconds, but when I invoke the build from cruisecontrol, the ...
Julian's user avatar
  • 11
0 votes
1 answer
2k views

Maven release plugin throwing Hostname Not found exception?

I am trying to release a project in jenkins and getting a host not found exception. Caused by: java.lang.RuntimeException: java.net.UnknownHostException: XXXXXXXXXXXXXXX: nodename nor servname ...
Usman Ismail's user avatar
0 votes
2 answers
4k views

"Connection Timed Out" on Guest Machine

When I run "mvn install" on my guest VM box, I get multiple "Connection Timed Out" errors when searching for a file to download. [WARNING] Unable to get resource 'org.apache.maven.wagon:wagon-file:...
Kevin Meredith's user avatar
0 votes
1 answer
174 views

How to run a java jar that writes records periodically on firestore database, on google cloud?

I have created a java jar executable. The project is a maven project. It is running a task every 5 minutes and using this library (https://github.com/googleapis/java-firestore) it adds some records to ...
skiabox's user avatar
  • 101
0 votes
1 answer
110 views

Change WebApp ROOT application in tomcat 8 (No WAR file)

I am trying to change the ROOT application for another one that I installed using Maven but I do not achieve it, the application also uses apache solr. Is there any way to place both at root level? ...
ayar's user avatar
  • 1
0 votes
2 answers
5k views

Dependancy error when building maven project

I'm trying to move an application from being built locally on a Windows Eclipse installation to a Jenkins server. From what I can see the settings are correct and the dependencies should resolve. Even ...
Chris's user avatar
  • 195
0 votes
4 answers
5k views

Jenkins maven java 7 permission issue

I'm getting this error when attempting a Maven build in Jenkins, Building in workspace /var/lib/jenkins/workspace/xxxxprojectnamedeletedforprivacyxxxx java.nio.file.AccessDeniedException: /usr/share/...
merge delete's user avatar
0 votes
3 answers
13k views

Nexus: Link to latest release of an artifact

How to create a link to get the latest release of an artifact? E.g. org.foo:bar would have 1.0 and 2.0, and the link would return the 2.0 release; and when 3.0 is released and deployed, the same link ...
Ondra Žižka's user avatar
0 votes
1 answer
39 views

Debugging a Maven Generated WAR

Maven generated a WAR via an automated build, but then the WAR had to be manually tweaked so that an Apache/Tomcat combo on another computer could host the WAR. The logs didn't provide much info, so ...
Kevin Meredith's user avatar
0 votes
0 answers
76 views

Maven Repositories - Nexus Alternative

We are using BitBucket and Git for source control of a Java Spring Boot application that uses Maven as it build tool hosted on AWS. We want to create a repository to store out dependencies. We did ...
Richard's user avatar
  • 145
0 votes
0 answers
16 views

Starting karaf in mvn deployed servicemix 7

On Fedora 39 rawhide, I have finally got mvn-3.9.1-3 to complete the "jar:jar install:install" goals. But using find I could not find executable files for karaf or a bin dir. dnf has no ...
ArrowInTree's user avatar
0 votes
0 answers
57 views

How to automatically delete old artifacts in an Apache Archiva

We have an Apache Archiva server that we use as our main object repository for Maven. This server has been running for years already. I have noticed that it still stores old version artifacts that are ...
Javier Vilarroig's user avatar