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
0 votes
0 answers
42 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
13 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
43 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
0 votes
0 answers
101 views

The POM for org.apache.maven.plugins:maven-resources-plugin:jar:2.6 is missing

I created a jenkins free style job I inserted my github repo, Installed maven on the server, When I run the job I get error: The POM for org.apache.maven.plugins:maven-resources-plugin:jar:2.6 is ...
Samson's user avatar
  • 113
-1 votes
2 answers
211 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 ...
U.V.'s user avatar
  • 99
1 vote
0 answers
140 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
0 votes
0 answers
279 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 ...
Glorious Kale's user avatar
2 votes
1 answer
467 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
  • 481
1 vote
0 answers
424 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
  • 481
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
0 votes
2 answers
364 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 ...
UncleBob's user avatar
  • 247
1 vote
1 answer
3k 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
0 answers
570 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
0 votes
1 answer
161 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
1 vote
2 answers
18k 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
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
0 votes
0 answers
89 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 ...
Jake's user avatar
  • 1
0 votes
1 answer
214 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 ...
tuk's user avatar
  • 333
0 votes
1 answer
107 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
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
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
0 votes
0 answers
370 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 ...
Hirofumi Okino's user avatar
0 votes
1 answer
392 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 ...
Kaffi's user avatar
  • 27
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
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 ...
Adam's user avatar
  • 236
0 votes
1 answer
115 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 ...
Luna Paglarelli's user avatar
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
0 answers
62 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
278 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
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
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 ...
CodeMed's user avatar
  • 315
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
1 vote
1 answer
793 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
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 ...
Lorin S.'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
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
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 ...
Itai Frenkel's user avatar
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
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,145
2 votes
1 answer
1k 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
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
273 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</...
webjay's user avatar
  • 127
0 votes
1 answer
38 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
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
  • 243
1 vote
0 answers
534 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
0 votes
1 answer
302 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 ...
Kevin Meredith'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
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