Questions tagged [maven]

Apache Maven is a software project management and comprehension tool.

Filter by
Sorted by
Tagged with
0
votes
0answers
31 views

How to set up Jenkins build error levels for stable/unstable

I have a Jenkins job which consists of two main build steps. First step runs the tests and the second step reruns failed steps again. First step is set up as "Execute Windows batch command" ...
0
votes
0answers
26 views

Does JDK include Maven?

I can't remember when I installed Maven; in fact I'm really not sure I ever did, but it's installed on my computer. Is it included in the JDK? Thanks in advance
0
votes
0answers
85 views

Maven access denied

I have a windows pc (given from the company) which I connect to my company's vpn and maven (mvn clean install) works normally. Moreorer, I have a macbook pro (personal) which I connect to my company's ...
0
votes
0answers
41 views

Bamboo deployment task never ends

I have built an application using the right tools, and have tried to deploy the built image on the server by defining the environment and the goals to run the target. But the the deployment job status ...
0
votes
0answers
23 views

Why m2 folder has not been updated after each project running

I work in Java project using tomcat as server and maven as packages and dependencies manager. As I understand, m2 folder contain all project artifacts, including my project code and its external ...
0
votes
1answer
242 views

how to change download sources used for building netbeans-apache?

I have followed this guide from netbeans: build from source Unfortunately on running ant build, as it tries to download from maven central repository it uses an url that seems outdated, the new url ...
0
votes
1answer
111 views

Eclipse - Unexpected exception when trying to install m2e connectors

When I try to install m2e connectors in Eclipse (Window > Preferences > Maven > Discovery > Open Catalog), I'm given this message: Unexpected exception: org/eclipse/equinox/internal/p2/core/helpers/...
0
votes
1answer
29 views

Maven project keep refreshing / building

I just encountered issue with Maven used in Eclipse. After checkout Java project as Maven from SVN it keep building and refreshing itself.
0
votes
0answers
21 views

Zip: invalid characters in path (but works after manually re-zip)

I have a tag/release name that I get from github. The repo is named name-testing. It contains a java automation test work. We are using a windows server to run the tests. When used automatically or ...
0
votes
1answer
870 views

Errors while installing jars to maven in windows 10 command prompt

Command prompt: Errors in cmd I'm not able to install ojdbc6.jar, aqapi.jar, jmscommon.jar, xdb.jar for maven using command prompt with commands like mvn install:install-file -Dfile=D://software//...
0
votes
1answer
1k views

How to resolve maven-javadoc-plugin warning for missing javadoc-bundle-options/package-list file?

When generating the JavaDoc Java archive resource with the maven-javadoc-plugin, the following warning is displayed: [WARNING] javadoc: warning - Error reading file: /maven-javadoc-example/target/...
0
votes
1answer
307 views

Unable to use Java 9's HttpClient in a SpringBoot-Maven server

I wanted to use Java 9 's HttpClient in my SpringBoot application. So I wrote the code for HttpClient in IntelliJ in a Maven project. The packages/module jdk.incubator.httpclient.* was automatically ...
0
votes
0answers
18 views

Nexus Sites Repositories for npm projects

Nexus has a Site Repository feature for Maven projects, allowing them to publish a site to nexus: https://help.sonatype.com/repomanager2/site-repositories Is there a non-maven way of doing this that ...
1
vote
1answer
1k views

Batch Maven build breaking cmd.exe?

I had a Windows .bat file with a script for compilation of a project I'm working on. The last command is a maven build. Since it takes a while to finish, I wanted to be notified when it does. I ...
3
votes
1answer
2k views

Maven CLI does not recognize JAVA_HOME as correctly configured

This is the output even though it correctly points to the JDK C:\Users\{usr}>mvn -version The JAVA_HOME environment variable is not defined correctly This environment variable is needed to run ...
1
vote
0answers
2k views

Hibernate 5.4.3 Exception in thread “main” org.hibernate.internal.util.config.ConfigurationException

Ive looked into similar solutions and none worked for me. Hoping I could find some answers here... Using Eclipse JEE (JDK 12) These is the errorlist i get when i try to run my "main" method Aug ...
0
votes
0answers
1k views

Fails with org.codehaus.mojo:exec-maven-plugin:1.4.0:exec

Running the command mvn clean package I am getting this fail: [ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.4.0:exec (exec-npm-cache-clean) on project global-home: Command ...
1
vote
0answers
288 views

mvn unsupported packaging type: pom

A college of me had several times the following problem with maven: mvn unsupported packaging type: pom Pom's are the base for maven, so I find this very strange. It can be solved by removing ...
0
votes
1answer
122 views

Getting null for OS system property when Run As -> Maven test in Eclipse

Have a Maven project with 2 test classes. Have a very simple snippet String name = System.getProperty("OS"); System.out.println("OS name is " + name); When I run the individual test class as JUnit ...
0
votes
1answer
414 views

Adding a new maven dependency causes ArtifactDescriptorException error

I am adding a new maven dependency my project : <dependency> <groupId>org.deeplearning4j</groupId> <artifactId>deeplearning4j-ui_2.10</artifactId> ...
1
vote
0answers
193 views

WIndows10 System environment path doesn't work after restart

I installed Maven and set MAVEN_HOME in system variables, and added it in PATH, as per instructions. Maven worked as intended from cmd. After restart, cmd did not recognize mvn command anymore. (I ...
1
vote
0answers
172 views

Netbeans will not compile maven fx projects but, compiles java fx projects just fine

As the title says I can compile/run regular java fx projects fine but, when i try to compile the defualt project netbeans gives you I get. Fatal Error: Unable to find package java.lang in classpath ...
0
votes
0answers
529 views

Maven clean install very slow?

Im currently having a problem that I believe is Maven. For an university project, we are requiered to use intelliJ IDEA, java SDK, Apache Maven and Isis. I tried to follow the tutorial for Isis, ...
1
vote
0answers
3k views

maven doesn't find existing snapshot artifact on Nexus

Unfortunately I can't identify what caused this, but after updating my projects, one of the dependencies is not found anymore in the main project. I have no idea why only this causes trouble and none ...
1
vote
0answers
39 views

Error while cloning “Milo” Project from GitHub

i want to clone and Build Milo Project from https://github.com/eclipse/milo I get various errors: error calculating classpath for project mavenproject The project was not built since its build path ...
4
votes
2answers
11k views

“ maven -version” command is not recognized in Git Bash

I am trying to run commands like maven -version,mvn clean install but get the following error: $ maven -version bash: maven: command not found I have all the necessary Environment variables and ...
1
vote
1answer
2k views

Apache Maven generate fails to create project using the command provided at the official site

OS: MacOS Mojave (Version: 10.14.3) Software in question: Apache Maven Objective: Create a new Maven project (in an empty directory) Method: Execute command in Terminal Reference: https://maven....
0
votes
1answer
470 views

Nexus3 snapshots repository does not allow uploads?

I have installed and configured Nexus3 Repository Manager OSS for my work. I have created two repositories one for snapshots and one for releases. When I click on the upload button on the web UI only ...
2
votes
2answers
942 views

Intellij - Previously running maven install process started to give error

I can run "mvn install" it builds the project successfully. And I can build it with "Preferences | Build, Execution, Deployment | Build Tools | Maven | Runner | 'Delegate IDE build/run actions to ...
1
vote
0answers
152 views

Cannot import maven project to eclipse

when i try to import existing maven project to eclipse i get this error "The selected wizard could not be started. Plug-in org.eclipse.m2e.core.ui was unable to load class org.eclipse.m2e.core.ui....
1
vote
0answers
22 views

Maven plugin not failing for C++ build error

I am using org.codehaus.mojo - exec-maven-plugin to build my C++ project. Below is the pom for the same. Attempting to use a normal make using GCC is throwing an error, but if I do mvn clean ...
1
vote
0answers
36 views

Issue with Maven installation

When I tried to check the version I got this message: Could not find or load main class org.codehaus.plexus.classworlds.launcher.Launcher My environment variables for java and maven are set as ...
0
votes
1answer
1k views

Custom Maven plugin issue with local dependencies

I developed my own (very simple) custom Maven plugin following this guide. All it does is execute my own project's Main class after running a specific goal. When I run mvn install on my plugin, I ...
0
votes
1answer
140 views

Where is folder of temporary files from root in OpenBSD?

Ive Been using a Test Environment with OpenBSD, NetBeans and Wildfly on localhost with root User. After pulling some Maven dependencies ive got a full File System on / and Message that my temporary ...
4
votes
1answer
8k views

Unable to find javadoc command: The environment variable JAVA_HOME is not correctly set

When I try to create my project's Javadoc in IntelliJ IDEA using Maven, the following error appears: [ERROR] Failed to execute goal org.apache.maven.plugins:maven-javadoc-plugin:3.0.1:javadoc (...
2
votes
1answer
1k views

Run artifact (.jar) in Eclipse after Maven build success

I'm working on a Maven project, and after resolving many configuration problems, finally I am able to build the project successfully in Eclipse. After selecting maven install and seeing build success, ...
0
votes
0answers
71 views

upgrade maven in linux distribution for windows

I want to update to the newest version of maven in Windows subsystem for Linux. But using apt install gets the version 3.0.5, while in "windows" I already installed the version 3.3.9. Is there any ...
1
vote
0answers
371 views

Can't create empty Jenkins Plugin project in NetBeans

I'm trying to write my first own Jenkins Plugin. I followed the instructions (using NetBeans as IDE) as describend here. So I installed the NetBeans plugin for Jenkins/Stapler development and ...
0
votes
0answers
129 views

Having trouble installing jQuery into Eclipse

I downloaded Eclipse, and I am trying to install jQuery in it. I found this on StackOverflow, and followed nielsvh's answer. I was able to build the project with Maven, but found trouble importing it ...
2
votes
0answers
333 views

Change Intellij's maven archetype plugin version when creating a project

I am using IntelliJ IDEA 2017.1.5. I have also installed the maven 3.5.0 on my computer, because it supports maven-archetype-plugin 3.0.1. I need this version because older versions miss certain ...
2
votes
1answer
149 views

Does Nexus Repository OSS 3.x has site repository?

I just compared two OSS versions(2.x, 3.x) of Nexus Repository. I found 2.x has site repository. Does 3.x also has repository for Maven site?
1
vote
1answer
5k views

Cannot delete maven target folder in windows 8.1

I have used IntelliJ's maven plugin to build my project with mvn clean install. It fails on clean due to problems deleting certain folders within the target-directory. I had this error multiple times ...
2
votes
1answer
3k views

How to fix java.lang.ClassNotFoundException: javax.xml.bind.JAXBException when using Apache Archiva 2.2.1?

When I unpack Apache Archiva 2.2.1 standalone version and start it with sudo -u archiva env JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64 JDK_HOME=/usr/lib/jvm/java-8-openjdk-amd64 JRE_HOME=/usr/lib/jvm/...
1
vote
1answer
1k views

Maven on eclipse creates undeletable target folder

Its always a random Folder inside the target that is not only undeletable but also not accessible. When i try to access it with the explorer it says "access denied". It is also not possible to grant ...
1
vote
0answers
367 views

WHy can't I install MAVEN on my windows path?

I followed this >> https://www.mkyong.com/maven/how-to-install-maven-in-windows/ I want to install MAVEN on my WIndows. But it does not work. Though when I cd to the bin folder in cmd, it works. BUT ...
0
votes
1answer
422 views

Jenkins: trigger other job after completing a maven release

I have a maven job configured, with the m2release plugin. It does the job perfectly, which is: building my application building a release version publishing it to artifactory That's great. Now, I ...
8
votes
3answers
13k views

BASH on Ubuntu on Windows (AKA Linux Subsystem for Windows) 10 - How do I set my PATH?

Thanks to the Anniversary Update, I now have BASH on Ubuntu on Windows 10. Previously, I used Cygwin, and had set up Maven in Cygwin, (and got it fully working), which largely consisted of installing ...
0
votes
5answers
2k views

Install Maven on Windows 7

I'm trying to get tho following code to run on Windows 7. I can't get mvn to recognize JAVA_HOME and can't get mvn to appear as a command in the command prompt. I get the following error when I try ...
1
vote
0answers
468 views

Running Gitlab and Maven repo on the same server

I was wondering, I am currently setting up Gitlab for versioning and Artefactory for Maven - Gitlab is currently running on a VM on my server. What would you do, make a new VM for Artefactory or use ...
1
vote
1answer
1k views

Remove version information from maven generated war file

I am trying to automate the deployment of war files that are generated by our build server using maven. I need to be able to extract the project name from the war filename so I can rename the file ...