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
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: ...
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 ...
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 ...
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 ...
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 ...
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 ...
-1 votes
2 answers
266 views

Access Denied to search.maven.org

Not sure where to post this?!?!?! When using Jeremy Longs dependency-check the following error occurred today and stalled our development/CICID (jenkins slave within OTC): $ dependency-check.sh -l ...
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 ...
0 votes
3 answers
3k views

How do I capture the Maven Jar name as a part of a Hudson job?

I have a Maven 3 job configured in my Hudson server. When the Hudson server successfully builds the Maven jar, I have the jar being deployed to an SCP repository on another server. I want to execute ...
1 vote
0 answers
186 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 ...
0 votes
2 answers
1k views

Problems hosting a Jetty application on the same server as IIS.

I am a .Net programmer, lately developing a website in Jsp, using Jetty. I use Eclipse and the Maven-Jetty plugin. I have a virtual private server, which has IIS installed and is serving .NET ...
0 votes
1 answer
1k views

Running Sonatype Nexus in Tomcat 7.0, Tomcat blocking PUT requests

I was previously running Nexus 1.8 on OSX and uploading jars for releases without any issues. The OSX box died, so I moved to a FreeBSD server. Since Nexus doesn't have binaries for FreeBSD, I decided ...
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 ...
0 votes
2 answers
413 views

download newest build of an artifact using maven in the command line

All I want at the end of the day is for the puppet-managed servers in our development environment to always pull the latest build of the latest version of whatever application they are running. While ...
0 votes
0 answers
314 views

Build pipeline to upload .jar package to AWS Lambda

So far according to the documentation at https://docs.aws.amazon.com/lambda/latest/dg/java-package.html, the only way to upload .jar code to an AWS Lambda function would be to manually upload the file ...
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/...
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: ./...
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/...
1 vote
0 answers
650 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> ...
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 ...
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 ...
0 votes
1 answer
237 views

Maven local repo in a common global directory for multiple parallel execution

I have a machine in which multiple parallel maven execution happen. Each execution executes the below command in a separate workspace directory mvn -f main/pom.xml clean package -DskipTests -T 6 Can ...
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 ...
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?
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 ...
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 ...
0 votes
0 answers
91 views

Apache Syncope Depends on Maven? What is maven for in this context?

fwiw: I did not come into this looking for another CI/CD tool. I came into this looking for an IAM tool (and I found Syncope). When Syncope install documentation called for Maven that's when the ...
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? ...
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 ...
0 votes
1 answer
399 views

Does Sonatype Open Source Nexus supports Maven 3?

We are thinking about to build up a Sonatype Nexus OOS server. In all documentation, it is mentioned that it supports maven 2, but its never mentioned if it's support Maven 3. Can somebody give me a ...
0 votes
0 answers
408 views

How to keep Ubuntu systemctl process alive after disconnecting from shell?

I'm new to Ubuntu, and I want to run a (java maven) command which starts a web server embedded with my web application, on a remote Ubuntu server. I can run it with following bash command (typed ...
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. ...
0 votes
0 answers
59 views

How to manage publishing maven settings.xml with artifact repository, mirror and proxy details to CI servers?

Is there an automated process I can rely on, as an organisation's artifact repository / proxy manager, to publish configuration updates to dependent continous integration servers and developers? For ...
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 ...
0 votes
1 answer
117 views

How to configure jenkins on ec2 to run whenever there's a new build in my project repository

I wanna set a jenkins CI for the first time in a linux EC2 (I'm working from windows). My jobs are in maven. The thing is: how do I set jenkins to detect whenever there's a new build in my remote ec2 ...
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 ...
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" (...
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) ...
0 votes
0 answers
95 views

WebApp won't compile in CentOS 7 server, but does compile in Windows

I am getting a "resource marked as read-only" error when I try to compile a war file on a CentOS 7 installation. But the same eclipse project does not throw any compilation error on Windows after I ...
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 ...
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 ...
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 ...
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 ...
0 votes
0 answers
57 views

apt/maven/npm checksum failure on amazon ec2

I'm recently encountering multiple download checksum failures when booting ec2 machine. This manifests itself with sporadic failures of apt, maven and npm installs. In one case that the pom checksum ...
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: ...
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 ...
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 ...
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 ...
0 votes
2 answers
279 views

Install Neo4j via Maven

Neo4j says I can install Neo4j via Maven by adding it to my build: <dependency> <groupId>org.neo4j</groupId> <artifactId>neo4j</artifactId> <version>1.8.1</...
0 votes
1 answer
319 views

Modifying Maven POM to Get File Locally

My mvn build is trying to grab the following file from an online repository. http://BAD_WEBSITE/repositories/smpsnapshots/org/jboss/aop/jboss-aop/ 2.0.0-SNAPSHOT/maven-metadata.xml However, that URL ...