Questions tagged [maven]

Apache Maven is a software project management and comprehension tool.

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

Create a fake network share directory to be used as a maven repository

I am not sure if this question should go to stack overflow as it is in some way related to a programming issue. I have a project where the maven dependencies are stored on a specific folder mapped ...
0
votes
0answers
13 views

Automaticly added parameters by IntelliJ

For work I'm using the IntelliJ Ultimate edition 2019. I'm facing a strange issue with it. When I have a Maven project and adding my own run configuration for this project my Ide adds the parameter -...
0
votes
1answer
144 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
0answers
27 views

Cannot use mirror of maven repository in IDEA

I add the mirror in /home/usrname/.m2/settings.xml: <mirror> <id>alimaven</id> <mirrorOf>*</mirrorOf> <name>aliyun maven</name> <url>...
0
votes
1answer
59 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
13 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
18 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
97 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
0answers
88 views

Maven surefire reporting isn't creating site folder

I have a test running currently that fails without assertions since we don't have access to the endpoint yet. I wish to have this documented in a report but I get this error: '/var/lib/jenkins/...
0
votes
1answer
690 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
0answers
14 views

How to open existing Java Meven project in Eclipse

I want to open existing Java Maven project in Eclips but I dont know which of the two options in the File to select. Open file or Open project from File System I tried to use option 2, see in the ...
0
votes
0answers
26 views

How to open existing Java Maven project in IntelliJ

I have downloaded completed project from Pluralsight course and in IntelliJ I select to Import project. In the "Import Project" screen setting are default settings and after I click on next, in the ...
0
votes
0answers
19 views

Jboss 7 shutdown, controller not available from command line

I have a bit of a specific issue with a recent upgrade to jboss that maybe somebody else has come across. Connecting from windows to the linux machine it is possible to execute a shutdown via ...
0
votes
0answers
213 views

Maven deploy-file giving “IIllegalArgumentException: Progressed file size cannot be greater than” - how to fix?

Just started getting Maven deploy-file errors from Java (cannot copy directly from afflicted system, so there are probably typos): [DEBUG] Filed to dispatch transfer event 'PUT PROGRESSED http://...
0
votes
1answer
107 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
13 views

ClassNotFound exception : Maven dependency is not identified

I have a project where I defined maven dependencies and also built it successfully. While running the project seeing ClassNotFoundException on a specific JAR. That JAR is alreaday available in maven ...
0
votes
0answers
1k views

Why cannot new Spring Boot Starter Project with in STS by “http(s)://start.spring.io”?

Please forgive me if I missed any common sense. I am new to Spring Boot & Maven, using Spring Tool Suite (version 3.9.3).RELEASE with Maven (3.2.5) and Java (version 1.8.0_201) for work. I use ...
0
votes
0answers
45 views

Failed to execute goal com.oracle.weblogic:wls-maven-plugin:12.1.1.0:appc: String index out of range: 29773 -> [Help 1]

I am a Jenkins admin and one of the applications running over it is getting following error. [ERROR] Failed to execute goal com.oracle.weblogic:wls-maven-plugin:12.1.1.0:appc (precompile-weblogic) ...
0
votes
0answers
4 views

Maven multi module build

Assume I have a MultiModule project X with modules 1,2,3..10. 1 has 1.1,1.2 and 2 has 2.1, 2.2 sub modules and so on. Now on building X, I get error in 4.2 sub module. In this case, omitting module 4 ...
0
votes
0answers
20 views

Eclipse Oxygen, Liberty Server running the server in local on web project lib folder instead of the ear deployment

I have a work space in eclipse (Oxygen). I'm using maven to build them. After the build it generates an .ear file. Which I deploy take from the build project and place it into the Liberty Runtime / ...
0
votes
0answers
16 views

How to find URLs required to enable eclipse and maven behind a corporate firewall?c

in my company Eclipse does not work properly due to the very restrictive firewall. No plugins can be obtained from the marketplace. Loading maven artifacts also fails. No connection can be established....
0
votes
0answers
16 views

How do I run Erudika's Para locally?

I have a clone of https://github.com/Erudika/para and I'm trying to run it locally on my computer to later connect it to a Scoold system. The compilation phase went well: $ java -jar para-1.33.2-...
0
votes
0answers
14 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 ...
0
votes
0answers
4 views

How to use protractor on top of my existing test framework designed using selenium, maven and TestNG for automating angular application

I have used selenium with java to design a testing framework using Maven, TestNG for automating regression test cases for a angular application. It is getting difficult to write automation scripts ...
0
votes
0answers
123 views

My Idea maven repository settings has no local index

IDEA version: IntelliJ IDEA 2019.2 (Ultimate Edition) Build #IU-192.5728.98, built on July 23, 2019 Maven Settings: my idea maven settings But repositories settings no index data!!! maven ...
0
votes
1answer
403 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 ...
0
votes
0answers
17 views

Maven filtering not applied in compiled class-file

I encountered a weird issue in my maven project. The filtering got applied in the java files but not in the compiled versions of it. class vs java content Here is the build configuration of this ...
1
vote
0answers
753 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
125 views

How do I disable certificate checking in Maven/rake?

I'm trying to build this Java program with sudo rake called SportBukkit and it requires downloading some resources from a repository site that has an expired certificate. Since it refuses to download ...
0
votes
0answers
173 views

Deploy WebGoat 8.0.0 on External Tomcat

I would like to deploy OWASP WebGoat 8, which is a spring boot multi-module application, on an external tomcat, to make it usable by colleagues. I tried to fiddle a bit with th project poms but i ...
0
votes
0answers
8 views

Maven fails to get intellj dependencies

My maven is failing to get intellj dependencies and thus failing to build the project. Is there a way to fix this or should I add the dependencies as a local system dependency in maven?
0
votes
0answers
736 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 ...
0
votes
0answers
94 views

Maven Error: 'cannot call a class as a function"

Maven is trying to download the packages from NPM server but it is getting error saying 'cannot call a class as a function', this is an issue because it is downloading node_modules but its not ...
1
vote
0answers
167 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
82 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
0answers
30 views

Why Eclipse is not creating jar files while configuring maven project?

Why Eclipse is not creating jar files while configuring maven project?
0
votes
0answers
383 views

How to avoid running test cases twice using maven command

I am developing a test automation project. I run the test cases with testNg plugin in eclipse. That's fine. But when I run test using mvn test command, maven runs the test cases twice. Things become ...
0
votes
0answers
104 views

Maven install throws various errors

I'm getting a compiler error in maven while running maven install COMPILATION ERROR : [INFO] ------------------------------------------------------------- [ERROR] package org.junit.runner does not ...
0
votes
0answers
85 views

Get artifacts from maven aggregate pom with command-line

I wonder to know how it's possible to get all artifacts and dependencies from an aggregate pom with command line. My repository is on Nexus. Here, I successfull get the pom itself but not all ...
0
votes
0answers
114 views

Jenkins not launching the browser on Macbook Pro

Unable to Launch chrome browser on Mac book bro using jenkins while same is working from Eclipse running the Script using POM.XML file and also working fine when run from the terminal mvn clean test. ...
0
votes
0answers
14 views

Maven Jboss Ear Packaging Deployment failure

Environment: Maven, Jboss EAP, Java 8, Spring and Angular I am using a C.I/C.D pipeline to trigger the build and deploy in Jboss. There are 6 modules, all getting packed into a one ear file. If I ...
0
votes
0answers
27 views

how to create and run tycho maven plugin project in eclipse?

i want to create tycho based maven plugin project and run it in eclipse, how to do this? or is there any procedure to follow can any one please guide on this. thanks naveen
0
votes
0answers
373 views

Can not build a maven project in Jenkins

I have a question on Maven project on Jenkins (beginer ofJenkins). I have a maven project and can build it in Eclipse or cmd. But when I wanted to build from Jenkins (on the same machie) I had this ...
0
votes
0answers
30 views

Company Wide JFrog Artifactory Setup for Dependency Resolution

I am planning to set up company-wide JFrog Artifactory so that all projects can use the Artifactory for dependency resolution and to store their binaries. I have installed the JFrog Artifactory 6.2.0 ...
0
votes
1answer
408 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
72 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
158 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
208 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
1k 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 ...