Stack Exchange Network

Stack Exchange network consists of 174 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]

Apache Maven is a software project management and comprehension tool.

0
votes
0answers
15 views

How can I set properties to all submodules in maven from parent without affecting parent?

I have a root module in maven, and need to set a property to all submodules from the parent pom parent --submodule1 --submodule2 I need sonar.skip to be false for the parent, and true to the ...
0
votes
0answers
5 views

How to fix this error creating war with mvn install

I can to create a war file with mvn package but with mvn install says this error(i changed sensitive information with examples): this is for a maven project using eclipse 2018.12 https://justpaste....
-1
votes
0answers
20 views

Re: “Force update of snapshots/releases” - what does it mean [closed]

I want to ask this question again as there is not much clarity. Users have given in depth response but it is confusing to read the response. If you know the reason, please comment on the original ...
0
votes
0answers
7 views

Starting JHipster application not working: app hangs on initial logs and do not start

I'm running JHipster 5.8.1 on a Manjaro Linux Intel i7 (x64) and I'm facing a problem with my Jhipster application. That is, I created a project, imported my jdl entities correctly and configured the ...
0
votes
0answers
17 views

Issue with adding .pom file to Maven local for the Android Project

I am trying to integrate Amazon Maps into my android project by following the documentation they have provided on their official site. Now I am having problem in adding the .aar & .pom files to ...
0
votes
0answers
4 views

IntelliJ Maven Import Issues

The library is not importing to a Maven project in IntelliJ. My IDE will not recognize the classes from Maven Library. I create a Maven Project, Enable auto import, then add Java dependencies, and the ...
0
votes
0answers
37 views

Intellij error: Argument for @NotNull Parameter 'url' of org/jetbrains.jps/model/impl/JpsUrlListImpl.addUrl must not be null

I am on ubuntu 18.04 and fairly new on IntelliJ. IntelliJ keeps on failing to build/run my project and shows the following error: Error:Internal error: (java.util.concurrent.ExecutionException) java....
1
vote
0answers
16 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
10 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
0answers
7 views

How to Launch Local Browser from Jenkins Server

I need to trigger my local browser through jenkins installed in server. I already created a selenium script and it is working in my local machine. I also tried my code using jenkins installed in my ...
0
votes
1answer
18 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
9 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 ...
0
votes
0answers
58 views

Maven build process too slow on Windows Machine

I have project which is built by maven commands , issue with building process of mvn commands , it is successfully built but its is dam slow approx it takes 40mins to complete but it is strange that ...
1
vote
1answer
303 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 (...
1
vote
1answer
120 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
63 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
293 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
89 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 ...
1
vote
0answers
212 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 ...
1
vote
0answers
24 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
2k 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
2k 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
678 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
180 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
321 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 ...
0
votes
0answers
199 views

frontend-maven-plugin not taking latest nodeversion

I am trying to use the plugin to download the latest version but it always takes 0.12.4. I want version: https://nodejs.org/dist/v6.9.1/ My pom.xml plugin looks like below: <plugin> <...
8
votes
3answers
11k 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
1k 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
459 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
735 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 ...
0
votes
1answer
665 views

How to save settings in IntelliJ IDEA?

A couple of months ago I installed IntelliJ IDEA on my Windows 7 development computer. I also installed Maven. Unfortunately I provided IntelliJ with the wrong path to Maven. Now it seems to be ...
1
vote
1answer
493 views

FAR Maven 'mvn' is not recognized as an internal or external command,

I have working installation of Maven. If I use 'mvn whatever' commands in FAR it works. If, however, I try to use the view feature - 'view: < mvn whatever', I get the 'mvn' is not recognized as an ...
1
vote
1answer
761 views

Clean up Android Studio's maven

My C:\Users\me\.AndroidStudioBeta\system\Maven folder is almost 5 gigabytes I cannot afford. Is there any safe way of cleaning this folder?
2
votes
1answer
13k views

How to run single Maven test case in Jenkins

In Jenkins my job is of type "Build a maven2/3 project" and project name is "SeleniumProject" and project source is "SVN" contains around 40 test cases. When I build this, it runs all test cases and 3 ...
2
votes
1answer
2k views

How to configure maven to use -source 5 or higher to enable annotations?

I need to install a project into my local repository. During mvn install I'm getting compilation error. > [INFO] --- maven-resources-plugin:2.3:resources (default-resources) @ > ...
2
votes
2answers
5k views

I cannot remove 'target' folder on Windows 7 generated by Maven

I am getting a strange error since I compiled, cleaned and recompiled a project with Maven 3.1.1 using Windows 7. Basically the 'target' folder generated is no more "removable" and it looks like has ...
27
votes
2answers
19k views

Can intellij be set to automatically “Download Sources and Documentation”

I seem to have to maunally click "Download Sources and Documentation" after each clean install, is there a way to get this to happen by default?
0
votes
1answer
492 views

Why is Eclipse/m2e not using my computer's PATH when executing command line Maven tasks?

My project uses a Maven build system, and the Maven build includes a command line call to thrift to compile some files. In bash, mvn generate-sources successfully completes. But when I use m2e's Run ...
0
votes
1answer
155 views

How to resume maven downloads

I have a very slow connection, I would like to resume the downloads. Till now I don't have any idea how to do it in the settings, I've searched on oogle for a while and nothing. Just found another ...
1
vote
1answer
6k views

How can I stop maven from downloading transitive dependencies?

I have a Maven call that downloads artifacts for the purpose of running integration tests: mvn -Dmdep.useRepositoryLayout=true -Dmdep.copyPom=true -Dmdep.useBaseVersion=true dependency:copy-...
7
votes
1answer
4k views

What does “delete all disabled modules” do in Jenkins?

In Jenkins, I have the option to "delete all disabled modules" on main page of some projects. What does that do? Edit: What is a "disabled module"? Jenkins doesn't have modules, it has projects and ...
2
votes
1answer
5k views

How to specify ANDROID_HOME path for Maven under IntelliJ

I'm very new to Maven, and on top of that I'm forced to use the IntelliJ which is new environment as well for me. While building project with the Maven in IntelliJ 12.0.3 I'm getting compilation ...
0
votes
1answer
8k views

'mvn' is not recognized as an internal or external command

I get the following error when i type the command mvn --version 'mvn' is not recognized as an internal or external command, operable program or batch file. I have also followed this but still i am ...
2
votes
2answers
7k views

Apache Tomcat can't create log file and fails

I try to start Apache Maven at Win7 x64 SP1. java version "1.7.0_09" Java(TM) SE Runtime Environment (build 1.7.0_09-b05) Java HotSpot(TM) 64-Bit Server VM (build 23.5-b02, mixed mode) Apache Tomcat ...
1
vote
2answers
883 views

How can install maven2 and maven3 and have them coexist on the same ubuntu host

I found that maven2 install is via apt-get and maven3 is manual, but i could not find any information on how i an install maven3 without uninstalling maven2
0
votes
1answer
920 views

Deploy error using JBoss Application Server

I have problems with installation of ovirt engine on Fedora. Ovirt is open source virtualization solution. I am trying to deploy ovirt engine setup with maven2. I have install all prerequirements: ...
2
votes
1answer
9k views

How to update maven version on ubuntu machine?

I am working on Ubuntu linux machine. When I open a terminal window and type : mvn -v I got the output: Apache Maven 2.2.1 (rdebian-1) Java version: 1.6.0_26 Java home: /usr/lib/jvm/java-6-sun-1.6....
0
votes
1answer
938 views

maven not running under mintty

im running windows 7 and cygwin (latest) when i use the cygwin basic console, maven works great when i open mintty and run mvn, i get this exception $ mvn --version java.lang.NoClassDefFoundError: ...
26
votes
4answers
42k views

How do I install Maven 3?

I am using Ubuntu and need to upgrade to Maven 3 from Maven 2. Can someone please help me install Maven 3?
1
vote
2answers
1k views

How to set Environmental Variable?

Please tell me how to set environment variables JAVA_HOME MAVEN_HOME TOMCAT_HOME PATH I installed Java via terminal apt-get command, Tomcat and Eclipse by downloading tar.gz files and extracting ...