Questions tagged [maven]
Apache Maven is a software project management and comprehension tool.
73
questions
0
votes
1
answer
57
views
Access denied errors occurring when running a Gitlab build
I am running a self- hosted Gitlab server from a Docker container. For CI/CD, I am running gitlab-runner in a docker container as well. My version of Gitlab is V16.5.2.
My runner is set up to use ...
6
votes
2
answers
685
views
Maven - ignore ANSI color escaping chars in grep search
I find that sometimes, ANSI escaping chars in mvn output prevents me to do this search with grep:
mvn | grep -P "\[INFO\]"
I have to use "\[.*INFO.*\]" to get results.
How to ...
0
votes
1
answer
771
views
Unauthorized access to Github
I am trying to build the application Roda and following this guide: https://github.com/keeps/roda/blob/master/documentation/Developers_Guide.md
After some time I run into this:
[ERROR] Failed to ...
2
votes
1
answer
4k
views
"Unable to add module to the current project as it is not of packaging type 'pom'" - How to load a given Maven project into VSCode/VSCodium?
Since there are no stupid questions, I dare to ask this stupid question. As a beginner at 0, I do not see how to make the step 0, that is, how to stand at the starting point at all.
I stumbled upon a ...
0
votes
2
answers
325
views
How start next bash file only if previous was success?
In bash file myBig.sh I call another two bash files like this:
/bin/bash myBuildShortServer.sh
/bin/bash myStart.sh
It's work... but has one problem.
I want to start myStart.sh only after success ...
1
vote
0
answers
481
views
Why mvn effective pom contains dependencies that are not in mvn dependency tree
In a maven project, in order to locate where a maven dependency is imported, I used mvn dependency tree, however, I cannot find this jar in its output.
From mvn effective-pom output, I can see this ...
6
votes
1
answer
6k
views
Exclude WSL 2 VM from Windows Defender
I'm trying to exclude my Ubuntu VM in WSL 2 running in an up to date Windows 11 Pro installation.
The problem is that my local build is terribly slow when Windows Defender is active.
Setup is as ...
2
votes
1
answer
735
views
How much diskspace will a complete download of Maven Central Repository consume?
This is good info: https://search.maven.org/stats
but not enough.
Assume I download the complete Maven Central Repository,
how much diskspace will it consume ?
0
votes
1
answer
367
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
1
answer
221
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
1
answer
526
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
0
answers
120
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
1
answer
3k
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
1
answer
2k
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
1
answer
518
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
0
answers
27
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
1
answer
2k
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
1
answer
4k
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
0
answers
5k
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 ...
1
vote
0
answers
503
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
1
answer
324
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
1
answer
456
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
0
answers
546
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
0
answers
193
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
0
answers
1k
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, ...
2
votes
0
answers
5k
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
0
answers
56
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
3
answers
18k
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
1
answer
4k
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
1
answer
623
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
3
answers
2k
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
0
answers
252
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
0
answers
32
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
1
answer
63
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
1
answer
3k
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
1
answer
223
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 ...
6
votes
1
answer
13k
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
1
answer
2k
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
0
answers
76
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
0
answers
394
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
0
answers
137
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
0
answers
406
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
1
answer
213
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
1
answer
8k
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
1
answer
4k
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
1
answer
2k
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
0
answers
548
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
1
answer
509
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
3
answers
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
5
answers
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 ...