Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [maven]

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

0
votes
0answers
10 views

Maven does not create manifest

I’m trying to install/use JSCEP using maven - https://github.com/jscep/jscep My process at the moment is: git clone git@github.com:jscep/jscep.git cd jscep maven install which results in [INFO] ...
0
votes
0answers
79 views

App no longer deploys to google app engine after java8 upgrade

While working on the journey of upgrading my multi-module maven java application to java 8 from java 7 i am getting an exception at the very end. Was able to work through most of the issues but i am ...
0
votes
0answers
12 views

Jenkins Maven job has no “Maven Installation” option

We run two separate instances of Jenkins and are in the process of migrating all jobs from the older one to the newer one, and at the same time converting these to DSL. Recently the newer Jenkins ...
2
votes
1answer
164 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
0answers
38 views

Docker hit error with jenkins user (exec user process caused “no such file or directory”)

I would start a maven build in docker. My command successfully run with my personal account but not run with jenkins account. Here is the command: docker run -v /etc/hosts:/etc/hosts -v "$PWD":/usr/...
1
vote
1answer
597 views

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

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 ...
0
votes
0answers
31 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 ...
0
votes
1answer
56 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 ...
1
vote
1answer
153 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
0answers
33 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 ...
0
votes
1answer
75 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
1answer
846 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 ...
1
vote
0answers
42 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
1answer
190 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" (...
5
votes
0answers
813 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
0answers
87 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
2answers
4k 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 ...
0
votes
3answers
3k 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/...
0
votes
2answers
6k 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 ...
1
vote
1answer
585 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 ...
0
votes
3answers
814 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
1answer
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. ...
1
vote
1answer
273 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
0answers
52 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
0answers
1k 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
1answer
821 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
1answer
933 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
1answer
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
2answers
210 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
1answer
34 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 ...
2
votes
0answers
2k 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 ...
1
vote
0answers
481 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 ...
0
votes
1answer
113 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 ...
0
votes
2answers
3k 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:...
2
votes
1answer
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 ...
1
vote
1answer
928 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 ...
1
vote
2answers
65 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> ...
0
votes
1answer
498 views

Rpm repo for java on centos 6

Is there any other repo from jpackage available for centos 6? I don't like to build tomcat, maven from sources. many thanks.
9
votes
1answer
1k 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 ...
9
votes
3answers
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
0answers
811 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....
0
votes
2answers
940 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 ...
2
votes
2answers
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=...
3
votes
1answer
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 ...
1
vote
2answers
509 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 ...
1
vote
2answers
576 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 ...
3
votes
1answer
4k 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 ...
0
votes
2answers
4k 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%...
4
votes
4answers
11k 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) ...
1
vote
1answer
317 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 ...