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.

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

Accessing HTML/JavaScript file from Jar/war file in Spring Boot using Thymeleaf

I am working on the Maven-based Project where I have to create a jar file that contains JavaScript file(E.g Bar chart) and in the second project, I have the Thymeleaf template, where I have to load ...
1
vote
0answers
12 views

How do I build with Maven on github actions and store the python output

I have a repository (protobuf stuff) that I build with Maven and it puts python package in a directory if you install it locally. I'd like to build this on a push to GitHub and have this directory ...
0
votes
0answers
15 views

Maven dependencies of dependencues

I have a common project which uses an external HTTP dependency. The pom is like this : <project ...> <groupId>organization</groupId> <artifactId>common-project</...
1
vote
0answers
10 views

Webpage collector using google bot

I'm continuing a project that has been coming for a few years at my university. One of the activities this project does is to collect some web pages using the google bot. Due to a problem that I ...
0
votes
0answers
7 views

Maven does not show complete error line (uses … instead)

I wonder if there is any configuration to change this. It makes finding error a torture. I actually dont know if it is because of Maven or Konsole (Plasma KDE). Is there a way to change this so that ...
0
votes
1answer
22 views

The import org.springframework.security cannot be resolved

I get an error the import org.springframework.security cannot be resolved. I searched and maybe I am missing a dependency and have to add a it, I do not know, please help me. I am giving you my ...
0
votes
0answers
13 views

Maven assembly to dir and commit to svn

I use the maven assembly plugin with target 'dir' to prepare a deployment package of my project. The target dir is a svn working directory and I need to perform svn dels, svn adds, and svn commit to ...
0
votes
0answers
20 views

Log4J2 dependency issues with Spring jdbc log4j2 dependency

With Spring boot starter logging, I am implementing the logging using Log4j2 and Slf4j. I have included the dependencies in my pom.xml. I might choose straight Log4j2 or Slf4j with Log4j2 as ...
0
votes
0answers
10 views

Javadoc plugin config override not working in modular project

I have a project with two generic parents: one for normal projects and one for modular projects (which extends the one for normal projects). My project uses the modular parent pom and overrides the ...
0
votes
0answers
10 views

VScode Java/Maven environment problem different computers

Im using jdk1.8.0_191, jre1.9-0_191 and apache-maven-3.6.2. I have a pretty big open liberty / maven project that uses the javax.xml.bind maven library : <groupId>javax.xml.bind&...
0
votes
0answers
9 views

Nexus v/s Git package registry as Maven repository

What is more advisable to use nexus or git packaging registry for package management when using github for code version control and apache maven as build automation tool. Are there any benefits or ...
0
votes
0answers
10 views

Executing maven liquibase project using its GAV

Is there a way for executing a maven liquibase project using its GAV and supply maven profile to be used in its pom and other arguments, something like: mvn com.group:liquibase-db:8.0.3 -Plocal,...
0
votes
1answer
14 views

Eclipse 2019-09: No convert to maven menu item

I did a fresh install of the Eclipse J2EE, into a new directory, and the project menu looks very different to what it did before in 2019-06. For example there is no Convert menu item, hence I cannot ...
0
votes
0answers
13 views

Java webapp works locally but not on heroku

I have a java application that works locally but not on Heroku. Here is the github for the app: https://github.com/wesCastelani/fj22-ingressos I'm not sure if this is a problem with the pom.xml ...
-1
votes
0answers
19 views

ClassNotFoundException when building appplication with maven

In a spring boot project who use maven. A class is not found A part of my pom <groupId>com.acme.pay</groupId> <artifactId>ms.billing</artifactId> <version>0.0.1-...
0
votes
1answer
19 views

Java classes generated using maven exec-maven-plugin “target” folder are not compiled

I have a maven project which uses exec-maven-plugin to generate the java classes into the target/generated-sources. The java classes generated underneath is never compiled during mvn clean install.
0
votes
0answers
28 views

How to execute maven liquibase pom from an external project's pom?

My maven project is dependent on a database schema created through another external project via liquibase. For testing my project, I need to generate this database structure on my machine. Is there a ...
0
votes
0answers
7 views

QAF-Cucumber with Junit : Maven Install throwing error at ConfigurationManager

we are using QAF-Cucumber and Junit, have added the dependency for the same in our POM.xml <groupId>com.qmetry</groupId> <artifactId>qaf-cucumber</artifactId> ...
0
votes
1answer
28 views

How to associate a specific application configuration (i.e, a specific springboot application.properties) as part of Maven build process

We have a springboot project that is built through maven. We have the pom.xml set up such that if we execute: "mvn clean install -Pintegration-tests", maven know to execute the integration junits: ...
0
votes
1answer
10 views

TestNg - Exclude a class(testrunner) via mvn command line

Description : As a user, I would like to exclude a class ( Test Runner ) when I am running mvn clean test Pseudo Code : ~ mvn clean verify -Dexclude=SampleTest How I run my build : ~ mvn clean ...
0
votes
0answers
16 views

How to make SonarQube detect non-master branches?

I went through the following documentation: https://docs.sonarqube.org/latest/branches/overview/, but I am not able to make SonarQube detect other branches than master branch (I am using a developer ...
0
votes
0answers
14 views

Customizing parameters Login Oauth2 in Spring Boot

I wanna customize parameters in Login Request with Oauth2 Spring boot. Ex: In Oauth2 By Default with Request Login URL: http://localhost:8081/oauth/token?username=admin&password=admin can I ...
0
votes
0answers
30 views

How maven compiler plugin works in JDK 11

I am having difficulties understanding HOW maven compiler plugin works under the hood post java 8 (i.e. JDK 11). (I know how to operate it to work with JDK 11 (using <release> element), but I ...
0
votes
1answer
23 views

How should I update the project version across modules and parents?

I have a rather complex multi modular project where the crux is that the JAR submodules have a different parent POM that the pom that lists the submodules. This makes the generally suggested solutions ...
0
votes
1answer
24 views

Why is a java.lang.NoClassDefFoundError raised when I run my JAR with Apache Storm ? (org/apache/storm/kafka/spout/KafkaSpoutConfig)

I started last week a formation in Kafka and Storm at OpenClassRooms. During practical work, I encounter an error when I try to execute a JAR containing my java code for Storm. No problem when ...
0
votes
1answer
30 views

Maven clean package, error about not found symbol for “Invalid PropertyValueException”

By executing a mvn clean package I see a strange maven output: [ERROR] /home/user/Desktop/mycompany/myapp/server/src/main/java/com/mycompany/myapp/representation/rest/RestControllerAdvice.java:[8,38] ...
0
votes
0answers
18 views

javax.el.PropertyNotFoundException ELResolver cannot handle a null base Object with identifier [contact]

I am working JSF application which is currently running on the JBoss server. Now I need to migrate a server from JBoss to tomcat. migration is also done and the application is running on the tomcat ...
1
vote
1answer
42 views

How to run jar file of a maven project generated after build?

I made a simple project with a few tests in it and I want to be able to launch tests on other computers. I built the project using Run As -> Maven build... -> Goals: package in Eclipse, and I found a ...
-3
votes
3answers
37 views

How do I run java program with multiple classes from command line? [closed]

My file structure looks like this: Java Resources |-src |-packg1 ABC.java |-packg2 XYZ.java |-package3 MainHello.java This is a maven project. Inside MainHello.java ...
0
votes
0answers
19 views

How to find maven dependency that comes somewhere from the parent pom?

I have a big maven project. pom file of the project has a parent pom which has a dependencies that have sometimes their parent pom defined inside. In the effective pom of my project I see Lombok ...
1
vote
1answer
17 views

Java 11 - Annotation SPI from META-INF/services aren't getting acknowledged

We have custom annotation processor which we injected into maven compiler plugin execution phase like the following: <plugin> <artifactId>maven-compiler-plugin</...
0
votes
0answers
12 views

Running with - - allow-root option in Bitbucket pipeline

I'm trying to build the project using bitbucket pipeline. I'm using maven 3.3.9 image during the Pipeline build. But while building the project, the build is failing with: 'Running bower install in /...
0
votes
0answers
13 views

gradle-maven-plugin fails to determine java 11

Failed to execute goal org.fortasoft:gradle-maven-plugin:1.0.8:invoke (default-cli) on project server: Execution default-cli of goal org.fortasoft:gradle-maven-plugin:1.0.8:invoke failed: Could not ...
1
vote
0answers
13 views

How to figure out in what pom a dependency from effective pom is defined in IntelliJ Idea?

I have a big project that has parent pom, this one has another parent; in the project's pom file another project with bom file is included as a dependency, etc. I click on pom and generate effective ...
1
vote
1answer
38 views

Is there any way to call function automatically from spring boot, at given date time fetched from PostgreSQL DB table?

Using spring boot, JPA, angular, PostgreSQL Want to run the process automatically at particular date and time fetch from DB, and update status in DB accordingly Purpose : We are giving 15 days free ...
0
votes
0answers
26 views

Git commit history problem with Maven multi module project and Jenkins

Description: We have a multi-module maven project and we use Jenkins as CI tool. My main goal was to detect which modules have been affected with last commit and build only those modules (and their ...
0
votes
0answers
14 views

Not able to deploy Spring Boot application using maven Fabric8 to openshift cluster : TLS internal error

Not able to deploy a spring boot application using fabric8 to openshift cluster. Following error appears. [INFO] F8: Using BuildServiceConfig cart-service-s2i for Source strategy [INFO] F8: Adding to ...
0
votes
2answers
33 views

Is it best practice to have an empty parent project in Maven?

I'm quite new with multi module projects in Maven, I just learned that in creating a parent project, you basically just need to change the packaging to 'pom' -> <packaging>pom</packaging>. ...
0
votes
1answer
31 views

Maven module vs custom spring-boot starter

We are designing a new project which will be using Spring-boot and Maven (i.e. Multi-module project). The project will interact with several external applications (JMS, REST, DB). Hence, we will ...
-1
votes
1answer
44 views

@Autowired Object is always getting nullpointer while using external jar [closed]

@Autowired object(3rd party dependency) is getting all time null. I am running standalone program to upload data files. For this I created below main class below: public class Application {static ...
0
votes
0answers
14 views

How to install a package hosted by GitHub Packages with GitHub Actions

I deployed a Maven package to github according to these instructions. https://help.github.com/en/github/managing-packages-with-github-packages/configuring-apache-maven-for-use-with-github-packages#...
0
votes
0answers
11 views

What is the impact of using generic POM files for 3rd party JARs?

I have a large number of 3rd party JAR files that need to be uploaded to a Maven repository, but I don't have access to the POM files, so I need to generate one for each JAR. I've created Gradle ...
-1
votes
0answers
9 views

How to attach debugger for Jooby2

I am trying to attach the remote server to 8000 in intellij. Also started the server in debugging mode using the command mvn jooby:run -Dapplication.fork=true But, I am getting connection failed ...
0
votes
0answers
13 views

How can I get code coverage for maven project

I have a multi module(multiple Pom) maven project and I would like the code coverage to show in Jenkins. How can I do this?
0
votes
0answers
11 views

Same groupid, artifactid, and version but different packaging Type

I have a pom that has packaging type of ear. The pom includes 2 dependencies. One of them is a war file that has the same groudId, artifactId, and version as the pom being built but it has a packaging ...
-1
votes
0answers
15 views

Maven incremental build - conditional build step execution

I need some files to be generated during my build process. The files being generated depend on 2 things: the file template file template input which will be a list of paths stored in a static file (...
0
votes
0answers
17 views

Maven: how to upload an iso to Artifactory

I need to upload an iso from maven to Artifactory as a part of an Artifactory build. I'm using the Artifactory Maven Plugin as described here. I'm using this official example. It works well as long ...
0
votes
0answers
9 views

How to make cross module test coverage work with Jacoco offline instrumentation?

I'm using offline instrumentation, so I can control the order of plugins that instrument the code. Specifically, it should come before the notnull-instrumenter-maven-plugin. The reason for using ...
0
votes
0answers
18 views

missing or invalid dependency detected while loading class file 'SQLTestUtilsBase.class'

I am trying to write unit tests for spark scala code and I found this post: How to write unit tests in Spark 2.0+? However, when I add those dependencies I get this error when compiling: Error:scalac:...
-2
votes
0answers
22 views

Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile

When I build my project it gives me the error below. I tried deleting the .m2 repository folder but the error stayed the same. If anyone has any idea on how to fix this please help. I tried changing ...