Newest 'maven' Questions - Stack Overflow

Questions tagged [maven]

Apache Maven is a build automation and project management tool used primarily for Java projects. This tag is for questions that don't relate to a specific Maven version. Use the gradle tag instead for questions relating to Gradle.

-1
votes
0answers
2 views

Apache POI EncryptedDocumentException cannot be resolved

I have a Maven project that generates PDF reports. The problem I'm having is on the required libraries. I have this on the project's pom.xml file: <dependency> <groupId>org.apache.poi&...
1
vote
0answers
13 views

Getting exception java.lang.ClassNotFoundException: org.openqa.selenium.MutableCapabilities when launching browser through Selenium

I'm getting the above exception when IntelliJ tries to launch the Chrome browser. I am running this code on Ubuntu 16.04 and I have already tried updating the browser and using the specific jars for ...
0
votes
0answers
8 views

<p:graphicImage src not found 404

I'm trying to read some images inserted in my project but I can't do it. I created a maven Dynamic Web Module 3.0 project and in the web content I inserted the resources / images folder. I added the ...
0
votes
1answer
11 views

Jmeter with maven and using external groovy scripts issues with groovy imports

I'd like to execute jmeter tests from maven using groovy scripts, but I got the error below. For setting up jmeter and maven I did what is described here. Shall I package my groovy functions and ...
0
votes
1answer
27 views

Cannot hit break point in java app when running the whole junit integration test class

Newbie question: java 8 app, using junit to test. Using maven, intellj. Say this integration test is tests.api.users.TestCreateUser, inside it has some test cases say t1, t2, t3, ... i set a break ...
0
votes
0answers
13 views

Error executing tests in Travis CI with JaCoCo

I'm working on a Java proyect and I'm trying to generate some code coverage with JaCoCo. If I run my tests with Maven everything works fine, but my Travis build crashes with this error while trying to ...
0
votes
1answer
21 views

Practical ways to publish private jvm libraries to share between private gradle / maven projects in 2019

I'd like to refactor some of my recent code into a collection of kotlin multi-platform libraries. I then want to consume these libraries from multiple projects and ideally the build of these projects ...
0
votes
0answers
14 views

Unable to import keycloak even though defined in pom.xml

I am new to maven and keycloak. I am trying to write a simple extension for keycloak and following the tutorial from the docs. The problem is that even though I have defined keycloak in my ...
-2
votes
0answers
13 views

How to fix it Property 'dataSource' is required

I'm currently working on a Java web project using maven. I'm new to Java, and I don't have a clue about this problem. I hope to get some help I copied Google, stackoverflow, etc on the error message ...
1
vote
0answers
14 views

GraalVM - No language and polyglot implementation was found on the classpath

I'm trying to use GraalVM inside a project to add simple scripting capabilities. I'm using Maven for dependency management to load Graal's base dependencies. Here is my pom.xml: <?xml version="1.0"...
-1
votes
0answers
14 views

Maven Tomcat Plugin gives “ cannot be cast to javax.servlet.Servlet”

I am using java 8, maven tomcat plugin 2.2. My app could be deployed to local tomcat 8 and tomcat 7 server successfully but it does not work with plugins. To clarify, the class extends httpservlet ...
0
votes
1answer
12 views

Serenity Report Dashboard

Im using serenity framework to do automation testing. My problem is the generated HTML report is separate to two files - One for Firefox and another one for Chrome due to i have two Test Manager class....
0
votes
0answers
14 views

need to fail maven build if file size is more

i want maven build should fail for react/node/webpack based build generates file size more. i am using webpack 4 and adding performance to check file size. if file size more, npm build should show ...
0
votes
0answers
14 views

Jenkins/Java/Maven job fails on hibersap test

I'm having trouble getting a java/maven project to test correctly in Jenkins, and it's failing when trying to test connections to SAP using hibersap. Here's a snippet of the error: 2019-06-21 13:07:...
0
votes
0answers
19 views

Maven project isn't including the dependencies / libraries in IntelliJ IDEA?

https://github.com/SixteenDollars/help This is the project. If you open it up, and view any of the Java files, none of the libraries / dependencies are included, I get an error saying "Cannot resolve ...
2
votes
2answers
37 views

Use installed java version in maven repository

It is a simple question, but I didn't find any good solution. I have created a maven project that is compatible to java8+. I want that, whenever someone builds the project, maven should use the java ...
1
vote
0answers
14 views

Getting the error while creating the maven project

I am getting the error while creating the maven project . Multiple annotations found at this line: - CoreException: Could not get the value for parameter compilerId for plugin execution default-...
0
votes
1answer
18 views

How to configure Junit in Jenkins with Maven

I have a maven project with many Junit tests. It's actually a regression test repository. So now I want to build a Jenkins job to run the regression test automatically when building instead of ...
0
votes
1answer
22 views

Spring Boot 2 Maven Directory View Resolver

I currently have a Spring Boot application that is using React JS for the front end. I'm running inside Visual Studio, and via webpack, I'm compiling resources and outputting them to a Maven target ...
0
votes
1answer
20 views

Gatling compatibility issue with Scala 2.13.0 in IntelliJ

Problem I'm extending an existing performance test project, which is a Scala project that uses Gatling for simulations and Maven as a build tool. I need Scalaj as a new depenency. I changed Scala ...
0
votes
1answer
15 views

Maven BuildNumber Plugin Git SSH

I have a maven project that uses the buildnumber-maven-plugin and I have changed my git remote as I moved the project from GitLab to GitHub, but now when I try to run mvn clean install I get the error ...
0
votes
1answer
30 views

Unable to read kafka using spark sql

I am trying to read kafka using spark but facing some library related issue I guess . I am pushing some event to kafka topics which I am able to read through kafka console consumer but unable to read ...
0
votes
0answers
9 views

Skip ssl certificates check for Maven in Jenkins

I am trying to integrate Jenkins maven plugin to pull dependencies from a local nexus server. When the build starts I end up with the following Error sun.security.validator.ValidatorException: PKIX ...
1
vote
2answers
23 views

How transitive dependency work for second level dependency

I have following dependency tree. [INFO] +- net.sf.jasperreports:jasperreports:jar:6.5.1:compile [INFO] | +- org.eclipse.jdt.core.compiler:ecj:jar:4.4.2:compile [INFO] | +- org.codehaus.castor:...
1
vote
1answer
23 views

Build child module before parent module execute

In my project structure I have 2 child project module which creates the tar file once build(Not using assembly to build child module, using ant plugin). Now I have a parent module which copy child ...
0
votes
0answers
6 views

Getting Access restriction error while maven build

Here I'm getting Access restriction error while building my multi-module maven project. Adding the error details: [ERROR] Failed to execute goal org.eclipse.tycho:tycho-compiler-plugin:1.0.0:compile ...
0
votes
1answer
27 views

Is there a way to set the source for sbt dependency?

for some reason, I cannot access some sbt dependency directly, which causes the (part of) error. [warn] +- default:example-build:0.1.0-SNAPSHOT (scalaVersion=2.12, sbtVersion=1.0) [error] ...
2
votes
0answers
22 views

Using XmlParser in archetype-post-generate.groovy script for maven archetype

Since upgrading to a newer version of maven (3.5.2) my archetype-post-generate groovy script in my own maven archetype has stopped working. It has trouble to create a new XMLParser (new XmlParser()). ...
0
votes
1answer
14 views

can't download plugins from my nexus-maven repository

like you probably know I am a DevOps engineer and to get my degree I have to present a project I reached a point where I have to compile a maven project offline my instructor imposed a nexus ...
-1
votes
0answers
12 views

Maven Plugin Error: Could not find or load main class org.codehaus.plexus.classworlds.launcher.Launcher [on hold]

I am using Eclipse IDE which uses Apache Maven Eclipse Plugin for creating Maven Project. It was working fine. I was able to build jars smoothly. But it stopped building projects and started giving ...
1
vote
1answer
15 views

How to embed external jars dependency in OSGI bundles?

I am trying to convert my project into an OSGI application. I have few doubts. Suppose ModuleA in my application is dependent on external jars jarA and jarB. Now to make ModeuleA run, I am embedding ...
0
votes
1answer
23 views

dependencyManagement in parent module pom.xml do not work

I create a project with two modules, ceo ( parent module ) and util. Why the IntelliJ IDEA show error messages like that Cannot resolve symbol 'ObjectMapper' in the module util. - util/src/main/java/...
0
votes
0answers
16 views

Maven repository set up not working in azure devops

I am setting up maven repository in azure devops. With the new feed, I was able to publish artifacts. On the other side I was able to download packages and my client program compiles but it does not ...
1
vote
2answers
30 views

import source code (meant for eclipse spring STS) into intellij

How to import and run spring mvc github source code meant for Eclipse Spring STS into IntelliJ? What I did: downloaded working spring mvc project source code zip file https://github.com/simplyi/...
0
votes
0answers
22 views

assembly a multi-module Maven project to a single jar with deps

Both modules (indexer, searcher) depend on module (commons), and remote dependencies listed in parent pom.xml. How could I use maven-assembly-plugin to build two .jar executables with dependencies ...
0
votes
0answers
19 views

Maven snapshot dependency is incorrectly uploaded to a release repository. Can I still download it?

I need a third party application as a dependency in my project. The dependency is uploaded into a release repository but with snapshot version (4.2.0-M8-20190205.102025-530). The folder structure of ...
0
votes
0answers
19 views

#TestNg #JUnit #Maven #Selenium

Immediately after removing Junit from the pom.xml , an error is coming to my POM project. a. I have removed Junit from pom.xml but it is still showing in the src folder. The error sign should be ...
0
votes
0answers
15 views

javafx-maven-plugin: com.zenjava + jar-with-dependencies

I would like to include "only" the single jar-with-dependencies that maven-assembly-plugin generates on the native application generated by javafx-maven-plugin. Currently both the module jar with it'...
0
votes
2answers
24 views

Running Jar file created using Maven in client side

I created Fat jar using Maven Assembly Plugin, I am able to run jar file using java -jar filename.jar My questions are Does client need to have Maven installed in his system to run this jar? Do ...
0
votes
1answer
11 views

How to properly set the output file structure with maven assembly

I am trying to set up a maven assembly project to build a child module with a file structure that conforms to our current standards. When I run the following command: mvn --projects :childName clean ...
1
vote
1answer
23 views

Spark Maven Project not running

I have recently downloaded Scala IDE for Eclipse for Spark/Scala project. For that, I have created a Maven project & added Spark-core dependencies. I then wrote a basic Spark code to create an RDD ...
0
votes
0answers
8 views

Remote debugging JRuby running in maven app

Locally, I'm running a maven app inside Jetty (for a start, we deploy it as a war on tomcat), which uses Java's ScriptEngine to run Ruby scripts coming from the FileSystem (that's external logic files ...
0
votes
0answers
23 views

.last updated files every time I fetch this

Please check and let me know if I was making some mistake in defining things in pom tried various dependencies for each same thing is happening I am working on an existing project so haven't changed ...
1
vote
1answer
14 views

Exclude log traces while TEST execution of maven surefire plugin

My maven project executes maven-surefire-plugin v2.22.0 TEST while building the application. By default the log level of surefire execution is INFO, and this plugin uses [org.apache.logging.slf4j....
3
votes
2answers
24 views

React Native: match multiple Maven urls to specific dependencies?

Please don't mark this as duplicate. I've spent two days scouring Github, Stack, Android Studio docs, RN docs, and Gradle docs looking for an answer. The Problem Our React Native project won't ...
0
votes
0answers
23 views

Why am I getting “The driver could not establish a secure connection to SQL Server” when running the jar but not when running the project in maven?

I have a Java project that connects to SQL Server using mssql-jdbc-7.0.0.jre8.jar. When I run the project using "mvn exec:java" the code works just fine. But when I build the project into a jar ...
0
votes
1answer
19 views

Maven problem with dependencies between 2 seperate projects

so I have to project having the same groupId but each with a different artifactId. The first project is called persistence and doesn't have any dependencies and the other is called core and needs to ...
0
votes
0answers
11 views

How to secure Java (Netty) Websockets application with Certified SSL (Not Self-Signed)?

I have a Java WebSockets application that I inherited from the guy before me. I need to deploy this application with a certified SSL. I inherited this application from the team who were working on it ...
0
votes
0answers
12 views

How to package native library in spring-boot jar using maven

I am working on a project which has lots of native libraries buried into maven dependencies (type=zip). Libraries are being accessed using JNI. How can I package my jar so that maven will include ...
0
votes
0answers
10 views

How can I make GitHub Dependency graph/Used by indicator list dependencies on Maven sub modules?

I've noticed that the new "Used by" indicator on GitHub shows up on my project pages. However, nobody (well, actually, there is one single project) has dependencies directly on the parent project, ...