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.

0
votes
0answers
9 views

Import for geotools not being resolved after adding the dependency to pom.xml in eclipse

I have tried to add geotools to my pom.xml using the following guides: https://www.baeldung.com/geo-tools http://docs.geotools.org/latest/userguide/tutorial/quickstart/eclipse.html Neither methods ...
0
votes
0answers
5 views

Cucumber+Maven+TestNG-->Even after build success the console ouptut displays as TestRun as 0

I am trying to automatically generate TestRunners using Cucumber-jvm plugin and run those generated testRunners parallely using maven-surefire and TestNG. When i run the command "mvn clean test" even ...
0
votes
0answers
19 views

Docker build error with Maven when trying to mvn package

I am trying to run a Maven Project with Docker and when I try to build it I get Error: Could not find or load main class .usr.share.maven.boot.plexus-classworlds-2.x.jar as an error when the building ...
0
votes
0answers
19 views

List dependencies of maven project in desired format

Am trying to generate dependency tree in maven, making use of below command $ mvn dependency:tree -DoutputType=dot Output looks like below [INFO] Scanning for projects... [INFO] ...
1
vote
1answer
22 views

Tomcat throws java.lang.IndexOutOfBoundsException

I am running a simple web project.In one of my servlet i get the user's parameters from the form and run getIf method of my UserDao class which returns all the users from the database that match some ...
1
vote
0answers
11 views

List changed and dependent modules

I am trying to set up a CI-CD pipeline. In this pipeline, each commit should run a bunch of tests. Since the project is a multi-module setup, I would like to run tests only for the modules impacted. ...
0
votes
1answer
21 views

Could not resolve dependencies for project in heroku

I am trying to deploy maven web app in the Heroku which have a dependency on some other application. When I am trying to deploy the app and getting this error. I have no clue what is going wrong in ...
0
votes
1answer
21 views

When running the automatic generated test runners parallely using testng facing the below exception

<?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://...
-2
votes
1answer
32 views

I want to add login page

I want to add a custom login page with only 1 login controller and index.jsp. I don't want to mess with some XML or something else. I have created student_list HTML page where you can edit, delete, ...
1
vote
0answers
24 views

Spring boot application not working with external tomcat8 server installed in ubuntu 18.04

I Created a spring boot application. I Changed the packaging to war and deployed in my local tomcat server, it is working fine. But if I take that war and place in ubuntu tomcat server, my application ...
0
votes
0answers
18 views

package org.eclipse.swt does not exist

I am getting compilation error while running a project in Jenkins. The following are few of those similar errors: cannot find symbol [ERROR] symbol: variable SWT package org.eclipse.swt does not ...
0
votes
1answer
22 views

How to stop the maven-release-plugin from using an old version of the maven-gpg-plugin

How can I configure the maven-release-plugin to use version 1.6 of the maven-gpg-plugin in my pom.xml? When I run mvn release:prepare, the maven-release-plugin (version 2.5.3) is executing a sub-...
0
votes
0answers
23 views

Is there a way within a Java Maven project, to call Python code that imports Numpy

I have successfully put together a demo of Jython using the example: https://www.jython.org/jythonbook/en/1.0/JythonAndJavaIntegration.html#one-to-one-jython-object-factories I am attempting to add "...
1
vote
1answer
20 views

Groovy check for unused imports

I want to fail my build if there are unused imports, I tried using the Checkstyle Plugin but it doesn't work. Is there any other way/plugin that can help me check for unused imports in Groovy files. ...
0
votes
0answers
26 views

How do I use Maven to Utilize Properties File with Existing Spring Boot Application?

I am trying to utilize an existing Spring Boot application that is hosted on my company's Maven repository. This application takes messages from a Kafka server and puts them in a Mongo database. All ...
3
votes
0answers
33 views

Code Coverage Kotlin and Java together using Maven - Jacoco

I am using Maven plugin to generate the code-coverage with Maven Plugin as below: <plugin> <groupId>org.jacoco</groupId> <artifactId&...
0
votes
0answers
12 views

GlassFish/Payara - Defined maven dependency throws ClassNotFoundException

I am building a small Java EE based web application using maven as build tool. As application server I use GlassFish 5/Payara 5. The compilation of the current version works without problems, as ...
0
votes
0answers
17 views

How can run web app project with springmvc and reactjs without spring boot

I'm new to spring mvc and reacjs and I do not know how to join the responses to the spring mvc controller. To respond to the user, I need to use spring without spring boot. All samples are spring boot....
1
vote
1answer
20 views

How to setup a java 11 based spring boot pipeline on bitbucket?

Build fails with "invalid target release: 11" message. After a commit to bitbucket, a pipeline job starts automaticly but fails with Full Error Message: [ERROR] Failed to execute goal org.apache....
-2
votes
0answers
24 views

How to solve the problem about consoles in java? [on hold]

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.17:test (default-test) on project GrammarLessons: There are test failures. [ERROR] [ERROR] Please refer to /var/ws/tmp/...
0
votes
0answers
22 views

Unable to import classes from maven dependency of dynamic web project in eclipse

I converted a dynamic web project into a maven project by right-clicking on the project and choosing Configure -> Convert to Maven Project. I added below dependency jar in pom.xml. <dependency>...
1
vote
1answer
24 views

com.thoughtworks.xstream.converters.ConversionException while running jmeter script using maven eclipse

I have integrated my jmeter script with maven. I have jmeter plugin manager also. While running it, i am getting java.lang.IllegalArgumentException which is resulting into above exception. I have ...
0
votes
2answers
21 views

How to ask intelliJ to force download maven dependencies during build?

I did not find any options. It reads existing dependency from my .m2 directory and unless I manually delete that directory, IntelliJ does not downloads it. Or I think its job of maven!! So, how can ...
0
votes
0answers
16 views

mvn appengine:stage - standard environment - where does the automagical app.yaml come from?

I am using mvn and appengine-maven-plugin to stage and deploy my app engine standard project for java 8. This works locally, but the deployed project stopped working, and if I look at target/appengine-...
0
votes
1answer
16 views

Two versions of spring in the same application

What I'm trying to do is very similar to this, I just wanted to know if the answer is up to date since this problem was answered 4 years ago. So, I have 2 maven project let's say A and B, project A ...
1
vote
1answer
24 views

How to configure pom.xml when working with web services

I developed a Maven Application, it works fine when I run it from Netbeans, but when I try to use the jar file it's generating the following error occurred: org.apache.cxf.service.factory....
1
vote
1answer
19 views

mvn lifecycle command line - how to start a lifecycle from the particular phase

I can disable the particular phase in pom: Disable phases in Maven lifecycle. It is possible to disable test from the command line: -Dmaven.test.skip=true Is it possible to start mvn lifecycle from ...
-1
votes
1answer
43 views

How to run a KarateTest.Jar?

I have created a jar file comprising all Karate test cases of my project, now how do run it? i was able to run the tests in eclipse using Junit now i'm trying to integrate karate tests in Jenkins CI ...
0
votes
0answers
25 views

JAXB2 Import: Could not process schema files (in28minutes udemy)

I get a "could not process schema files" error on the <exception> line when I try to add the JAXB2 plugin... pom.xml <plugins> <!-- JAXB2 Maven Plugin --> <!...
0
votes
1answer
25 views

How to fix maven-packaged jar reporting 'Error: Could not find or load main class .\FormulaTelemetryApp-1.0-SNAPSHOT.jar'

I am trying to package my JavaFX application using Maven, running it using exec:java is no problem and running maven - package yields no errors. But when I want to execute the runnable jar it returns ...
0
votes
1answer
16 views

XSD not validating - udemy in28minutes

When I change the ID value to alpha characters - it doesn't tell me the values are invalid... course-details.xsd <?xml version="1.0" encoding="UTF-8"?> <schema xmlns="http://www.w3.org/2001/...
0
votes
2answers
19 views

How to manage maven dependant artifacts after creating release versions

We are using release plugin to convert snapshots to releases, but snapshots were already added as dependencies in other projects. Do we need to update every project pom, to use the new releases. Eg: ...
0
votes
0answers
10 views

How to set up maven-assembly in multimodule maven project so that generated MavenMainModul.jar can find dependency MvnSubmodule.jar at execution

I need to configure maven-assembly to generate jar files for each maven module so that executable jars can find CoreProject-x.x.x.jar on the same path or in lib/CoreProject-x.x.x.jar. Maven modul ...
0
votes
0answers
7 views

Import Spring Boot (or other open source framework) related/dependent jar files to Local Artifactory repo

I am setting up a new Artifactory Server. I have a need where my Maven Java project should not have any dependency to a remote repository to get the related jar files configured in pom.xml. For ...
0
votes
1answer
15 views

How can you get Maven enforcer plugin to not report dependency convergence errors twice?

Consider the following example: [WARNING] Dependency convergence error for org.scala-lang:scala-reflect:2.12.4 paths to dependency are: +-com.intuit.karate:karate-gatling:0.9.2 +-io.gatling....
0
votes
0answers
36 views

Executable Jar not working in command line but working fine in Eclipse

I had java web application, running as java application in eclipse properly. However not running from command line. report error: java.lang.IllegalArgumentException: No auto configuration classes ...
0
votes
0answers
7 views

Unable to parse configuration of mojo org.apache.maven.plugins:maven-shade-plugin:3.0.0:shade for parameter transformer

I am trying to get the log4j2 configured for my aws lambda function using java8 runtime. Aws lambda handler does provide context-Lambdalogger but I want to use the standard log4j configuration so that ...
0
votes
0answers
14 views

JHipster Maven Wrapper, Connection timed out: connect

I am trying to run mvnw compile liquibase:diff , I get the error "Exception in thread "main" java.net.ConnectException: Connection timed out: connect" I have tried setting the windows system variable ...
0
votes
0answers
11 views

Maven update project vs refresh in eclipse

What's the difference between : Maven -> Update Project and Refresh in eclipse when working on maven projects
1
vote
1answer
24 views

Gradle 5.x - Error publishing my library to Maven Local

I have just upgraded my Gradle to 5.x and I'm having a new error when I try to sync my library project. This error is coming from a publishing block that I need to publish my library to maven local. ...
0
votes
0answers
27 views

How to execute Pipeline for Atlassian Plugin Project

I'm trying to setup Pipeline for Atalassian JIRA Plugin project but it's failing with the following error: The project com.xxx.jira.myplugin:jira-myplugin:0.0.1 (/opt/atlassian/pipelines/agent/build/...
0
votes
0answers
9 views

Integrating protoc with Maven and Eclipse build

I'm building a project with only protobuf to be used as a library in another project. I do no want to save the generated java code on git, this code should be used as a generated source. My problem: ...
0
votes
0answers
21 views

Is there any possibility to trigger Jenkins build one specific maven module by changes made in that module on specific branch?

I'm setting up Jenkins jobs, to build each and every module separately. I'm wondering if there is possibility to trigger specific job by changes made in proper maven module, not by any change in ...
1
vote
1answer
35 views

How to add repositories which require authentication in sbt project

Getting help from this site, I have put something like that in my build.sbt file to be able to access some private Maven repositories. However, these repositories also require a username and password ...
0
votes
1answer
30 views

Excluding dependencies in Maven's dependency plugin

In order to speed up my build process, which relies in Docker, I want to generate an image that contains all the maven dependencies already downloaded for my project. For this, I am using maven ...
0
votes
2answers
38 views

Maven - importing a class after adding it as a dependency

I'm trying to use(import) a class added by a dependency of my project. I added the dependency gson in my pom.xml as follows: <dependency> <groupId>com.google.code.gson</groupId> ...
0
votes
0answers
37 views

Did not find any matching files (Selenium TestNG Jenkins and maven)

I looked everywhere but no result or solution to my problem, you see I have a full test of an application deployed on a JBoss 6EAP image in a docker machine, on a Jenkins machine I have made an SSH ...
0
votes
0answers
7 views

How to merge tag to master branch while maven release

I am working on maven release through jenkins. I am able to create Tags and update pom version in develop branch. At the same time I need the newly created tag to merge to master branch with in the ...
0
votes
1answer
31 views

How to find local Java path from pom.xml in Maven project?

I'm currently working on a Maven project. In my pom.xml, I have to specify my local path for JDK as following : <dependency> <groupId>jdk.tools</groupId> <...
2
votes
2answers
32 views

Get the cause of a Maven build failure inside a Jenkins pipeline

I have a Jenkins scripted pipeline set up where I execute a number of Maven builds. I want to treat one of them as non-fatal if the root cause is a known one. I have tried to achieve that by ...

http://mssss.yulina-kosm.ru