Maven is a build tool primarily for compiling, building, testing, and deploying Java artifacts and managing their dependencies.
Questions tagged [maven]
64 questions
17
votes
3 answers
Migrate Sonatype Nexus repo from one machine to another
I am trying to migrate nexus repo. How can I go about it, any pointers?
![](../../users/profiles/47706.webp)
zengr
- 327
- 1
- 3
- 15
11
votes
1 answer
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 cache behavior (and I want to bypass that).
Here…
![](../../users/profiles/93281.webp)
Anthony O.
- 674
- 1
- 5
- 13
9
votes
1 answer
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 Professional but we have regular Nexus.
![](../../users/profiles/192473.webp)
Andrzej Rehmann
- 191
- 4
9
votes
3 answers
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 basically does this but it doesn't handle…
![](../../users/profiles/35433.webp)
recampbell
- 245
- 1
- 3
- 6
5
votes
2 answers
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:
./mvnw: 53: ./mvnw: Syntax error: word unexpected…
![](../../users/profiles/355485.webp)
HFR1994
- 153
- 5
4
votes
4 answers
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)
at java.lang.Thread.start(Thread.java:658)
…
![](../../users/profiles/81778.webp)
Brad
- 141
- 1
- 1
- 4
3
votes
1 answer
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 one.
In Nexus Tip: Moving Artifacts Between Nexus…
![](../../users/profiles/466629.webp)
saketh
- 31
- 1
- 4
3
votes
0 answers
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 scanner found a directory named META-INF that was not…
![](../../users/profiles/150817.webp)
Lama
- 243
- 1
- 3
- 8
3
votes
1 answer
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 noticeable.
I've been trying to find a way to…
![](../../users/profiles/18193.webp)
MBCook
- 165
- 1
- 6
3
votes
1 answer
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 service, logged on as Local System. I have enabled…
![](../../users/profiles/62398.webp)
JT703
- 158
- 1
- 4
3
votes
1 answer
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 Artifactory or Nexus. Is it possible?
![](../../users/profiles/919.webp)
jldugger
- 14,122
- 19
- 73
- 129
2
votes
0 answers
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 store, which runs on the same VServer.
So now the…
![](../../users/profiles/533197.webp)
Martin Muzatko
- 21
- 4
2
votes
0 answers
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:…
![](../../users/profiles/216752.webp)
Mary Grace
- 21
- 2
2
votes
1 answer
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 to the users. Since the Nexus server is at least…
![](../../users/profiles/183708.webp)
chrylis -cautiouslyoptimistic-
- 250
- 1
- 2
- 11
2
votes
1 answer
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 installed Maven 2 as expected.
Later on I modified my…
user19509