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
0 answers
14 views

java: package org.junit.jupiter.api does not exist and java: package org.springframework.boot.test.context does not exist errors in spring

so i get these 2 erros java: package org.junit.jupiter.api does not exist and java: package org.springframework.boot.test.context does not exist when i try to run my Spring Project. this project was ...
Catalin Coman's user avatar
1 vote
1 answer
37 views

Unsupported size for JarEntry META-INF/MANIFEST.MF

When I try to compile my Spring app with Maven in Java 11 I get this error: java: error reading /home/danny/.m2/repository/com/groupdocs/groupdocs-metadata/18.4/groupdocs-metadata-18.4.jar; ...
danny's user avatar
  • 4,447
0 votes
1 answer
12 views

I can't create a jar file. Error : Could not find artifact

I try to create a jar file with maven but the dependency <dependency> <groupId>org.apache.streams</groupId> <artifactId>apache-streams</artifactId>...
Pietro Sanna's user avatar
0 votes
0 answers
13 views

thorntail dependency is pulling a dependency which I have excluded

There's a dependency called jsoup version 1.8.3 which is getting bundled in my jar but it doesn't shows up when i run mvn dependency:tree command. Below is my POM.xml: <?xml version="1.0" ...
Hrishikesh Shukla's user avatar
0 votes
1 answer
16 views

How to pass args to application from Eclipse Maven Run configurations

I have a Java / Maven project in Eclipse 2023-06. If I want to run the application, I am using a run configuration based on Maven, as depicted in below picture. I can't figure out how to pass an ...
Alex's user avatar
  • 1,433
0 votes
0 answers
17 views

import scala.Serializable not found in scala 2.13

I've come here from questions like: java: cannot access scala.Serializable class file for scala.Serializable not found And other similar questions. Recently, I've taken the initiative to move my from ...
RMSD's user avatar
  • 476
0 votes
1 answer
16 views

missing org.springframework.boot.web.servlet.server.ServletWebServerFactory

I was running the program and I received this error I'm new to Spring. I used Tomcat 8-5.8. I'm using an Eclipse maven project with simple project checked 2023-09-22 15:11:02.621 INFO 12936 --- [ ...
Virtual Genius's user avatar
1 vote
0 answers
18 views

Why is the wrong dependency version imported when importing 2 BOMs with test dependencies

I have 2 projects, project A and project B which each import the testcontainer-bom, but with different versions, in their parent pom.xml: project A: ... <modules> <module>...
Wonger's user avatar
  • 297
0 votes
0 answers
20 views

Make maven ignore / continue after "Unable to parse command line options"

While reworking a CI pipeline script, i stumbled into $ mvn $MAVEN_CLI_OPTS clean compile Unable to parse command line options: Unrecognized option: --no-transfer-progress when trying to add --no-...
Philzen's user avatar
  • 3,973
0 votes
0 answers
20 views

Eclipse: Project Explorer issue

I have following Maven project in my Eclipse: Next to dev-bundle the main directory should normally contain two more directories: java resources I deleted the project (without deleting the files on ...
user2379123's user avatar
0 votes
0 answers
13 views

How to convert springboot project to its equivalent maven multi-module project

So I have this spring-boot project that contains the web services of an application. Now I want to add a new module to my application that is not related to the web services. To do so in Java I found ...
Aleix Mariné's user avatar
0 votes
1 answer
7 views

"No protos to compile" when using <includes> parameter in org.xolstice protobuf-maven-plugin

I know this project isn't maintained any more but hoping someone might have an idea. Using the configuration below the plugin finds my source protos in src/main/proto but it doesn't find my base ...
Tim's user avatar
  • 109
-1 votes
3 answers
44 views

Should I indicate dependency versions in pom.xml? [duplicate]

Most examples from the Internet on Java do not indicate the version of the dependencies in tags. Should I indicate dependency versions in production pom.xml file? If I do not indicate the version, ...
Yin and yang's user avatar
0 votes
0 answers
12 views

JDA bot does not detect files attached to messages

I'm trying to get the message history from a channel, get the files from the messages, then copy them and send them as one message with code like this: List<Message> mess = MessageHistory....
Николай's user avatar
-1 votes
0 answers
14 views

<form class="navbar-form navbar-left"> [closed]

Invalid location of tag (form). I am getting http 404 error on running the web app. everything is correct except this warning. does the dependencies of pom.xml file versions of spring dependency etc. ...
N D's user avatar
  • 1
0 votes
0 answers
12 views

Maven multi-module project and workspace dependency resolution through the command line

If I have a multi-module project like: <project > <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</...
stevepra's user avatar
-1 votes
0 answers
35 views

Intellij debugger Java 17

I'm migrating my application from Java 8 to Java 17. I'm running the application locally using Maven plugin configuration in IntelliK Run command: spring-boot:run Working Directory is the directory ...
omar mahameed's user avatar
0 votes
0 answers
9 views

Visual Studio Code Maven for Java Background process terminated with code 255

In Visual Studio Code, Dependencies are not loaded. It gives this error in spring-boot.error on dependencies chargeMaven tree When i do mvn spring-boot:run of the back this error occursError visual ...
JSLM's user avatar
  • 1
0 votes
0 answers
15 views

Unable to use an android sdk created by me into the other projects

I am trying to create an android sdk for this I have created new project and in that I created new Module for creating an sdk, here is the code of the module:- fun calculateFormula(a: Double, b: ...
Prasad B's user avatar
0 votes
0 answers
10 views

Can't compile a custom Dataflow Classic Template

I'm trying to write a Dataflow Classic Template in Java which I'm not used to. I copied the code from the Bulk Decompress Cloud Storage Files template that decompress gzip files, then I added some ...
kbenzakrilelp's user avatar
0 votes
0 answers
9 views

jQAssistant maven plugin cannot connect to remote neo4j server

I am trying to setup a remote jQAssistant Team Server. Neo4J Desktop is installed on a server running a blank test dbms. I modified the neo4j.config to allow remote connections server....
Patrick Nit's user avatar
0 votes
1 answer
28 views

Unable to Edit pom.xml in Eclipse Maven Project - Only Overview Mode Available

I created a Maven project in Eclipse, but I can't edit the pom.xml file because it's not showing the editing window to add dependencies. It's only showing the overview window when I open it. What ...
Pratik Lokhande 's user avatar
0 votes
1 answer
18 views

How to Restrict Access to Maven automation testing framework Project's Main Folder Contents?

I have a Maven automation testing BDD-Cucumber framework project where the main folder contains essential testing configurations and reusable components. I want to allow clients to use these ...
Dheeraj Kumar Rajak's user avatar
2 votes
1 answer
36 views

why child pom create a new version?

Parent pom code <modelVersion>4.0.0</modelVersion> <groupId>com.example</groupId> <artifactId>SpringCloudDemo</artifactId> <version>0.0.1-...
gfq's user avatar
  • 45
0 votes
1 answer
14 views

Load lucene-core dependency at runtime

I want to use opensearch-rest-high-level-client and elasticsearch-rest-high-level-client libraries within my application. Both of these jars use different version of lucene-core as dependencies. Is it ...
anpat_'s user avatar
  • 11
1 vote
0 answers
28 views

Not able to use org.ehcache in project

I'm trying to use echache but I can't seem to use in my project. I'm getting the following error: "Cannot resolve symbol 'ehcache'" I'm using IntelliJ IDEA and have installed Maven 3.9.4. I'...
tehmas's user avatar
  • 183
1 vote
0 answers
11 views

How can I find the name of the Maven module a file belongs to?

To optimize my CI builds, I want to run the test suites of only modules where files have changed since the last commit. I'm guessing I'll have to write my own solution here, but wondering if a simple ...
Christopher Schneider's user avatar
0 votes
0 answers
11 views

RPM package after generate a jar file with the same pom.xml

Create a RPM package after generate a jar file with the same pom.xml I’m using the plugin org.codehaus.mojo. I would like to create a RPM package after create a jar file with the same pom.xml file. ...
Helí Rodríguez's user avatar
0 votes
0 answers
23 views

Could not find or load main class; Manifest entry present but not main class file

I am trying to build an executable jar but keep on getting a "Could not find or load main class" error. My project imports schemas and WSDLs and then tries to make an Uber jar with a few ...
johnslippers's user avatar
0 votes
0 answers
12 views

signing exe with SSL certificate using eclipse tycho

I would like to use our code-signing SSL certificate to sign our product exe which is an eclipse RCP application and is built with eclipse tycho. Is there an official way to do this? There seems to be ...
flavio.donze's user avatar
  • 7,487
0 votes
1 answer
25 views

Spring Boot inject property value into XML file

first of all sorry if the question is already answered, if so, I did not find it before. I am developing a Spring boot project with Maven. The properties configuration are done via an application....
Iván Martín Jiménez's user avatar
2 votes
2 answers
32 views

IntelliJ incremental Maven builds with annotations and APT

Gradle supports incremental annotation processing now, but I don't believe that helps those with Maven projects in IntelliJ. When I google on this I find a few references to IntelliJ and incremental ...
Mark Proctor's user avatar
1 vote
1 answer
26 views

Maven command mvn javadoc:jar downloads log4j-1.2.12

When executing the Maven command mvn javadoc:jar, it downloads log4j-1.2.12.jar, which contains vulnerabilities. The projects in scope do not have any dependency on log4j, nor do we have a plugin to ...
user1610446's user avatar
1 vote
0 answers
22 views

Could not find artifact org.opcfoundation.ua:opc-ua-stack:jar:1.4.1.1-SNAPSHOT

I am getting the error "Could not find artifact org.opcfoundation.ua:opc-ua-stack:jar:1.4.1.1-SNAPSHOT," <dependency> <groupId>org.opcfoundation.ua</groupId> <artifactId&...
orcunkiris's user avatar
0 votes
0 answers
29 views

Mule Java SDK Module/Connector - java.lang.NoClassDefFoundError: java.lang.NoClassDefFoundError [duplicate]

I built a Mule 4 module/connector with the Mule Java SDK using mule-module-batch-ee (4.5.0-20220622) internally. To build the 'batch-manager-connector' project, I used the Maven archetype org.mule....
Julian's user avatar
  • 1
1 vote
0 answers
29 views

Running Cucumber + SpringBootTest in an executable test JAR

I have a requirement to run the Software Qualification Tests of my project as an executable JAR. I'm using Cucumber along with SpringBootTests for the tests and used maven-assembly-plugin to create ...
Aditya Abinash's user avatar
0 votes
0 answers
16 views

How to preserve mode and line-endings, when bundling files?

Our maven "build" consists of checking the files out from Git, and then bundling them -- verbatim -- into a "JAR": <build> <resources> <resource> ...
Mikhail T.'s user avatar
  • 3,093
0 votes
0 answers
17 views

does maven support customize packaging? [duplicate]

I want to include jointcorp-instruction.jar only when jointcorp.enabled=true, does maven support this or any plugin support this?
hiway's user avatar
  • 3,914
0 votes
0 answers
22 views

Maven and JavaFX on Raspberry Pi: Loading library glass from resource failed: java.lang.UnsatisfiedLinkError

I have a JavaFX app that works fine on desktop. I'm trying to "port" it to Raspberry Pi. I use the following command to run it: mvn -s "/full_path/maven.xml" -Djavafx.platform=...
Peter's user avatar
  • 326
0 votes
0 answers
7 views

Apache Maven RAR Plugin does not include the project jar in the RAR

I have the following sources for my Resource Adapter project: test_ra\src\main\java\com\test\app\commons\tracing\impl\aggregator\TraceAggregatorResourceAdapter.java test_ra\src\main\rar\META-INF\ra....
Volodymyr Bezuglyy's user avatar
0 votes
0 answers
17 views

Is there a less verbose way to bundle a library with an additional jar? [duplicate]

I've been developing a plugin that includes a feature of saving people's alt accounts in a database. I want it to be secure, so I decided to use the same hashing algorithm/library I used in my ...
Mikachu's user avatar
  • 45
0 votes
0 answers
25 views

Im trying to run mvn quarkus:dev in docker container, but it dosent seem to work properly

mvn quarkus:dev works as in i get the quarkus logo and Listening on: http://localhost:8080 but when i try to connect to localhost:8080 it fails and i get "connection was reset", am i missing ...
Winter Wolf's user avatar
0 votes
0 answers
16 views

JAXB Problem w. Java 11: ClassNotFoundException: org.glassfish.jaxb.runtime.v2.ContextFactory after jlink

I have a modular Java / JavaFX, both Version 19 project in Eclipse. I use Maven to build the project. This project uses JAXB. The project runs fine within Eclipse if I use "clean javafx:run" ...
Alex's user avatar
  • 1,433
0 votes
0 answers
21 views

maven-shade-plugin: How to copy classes under BOOT-INF in the root of the generated jar?

So I have a spring boot application and I am creating a fat jar with the maven-shade-plugin like below <plugin> <groupId>org.apache.maven.plugins</groupId> <...
Da Mike's user avatar
  • 457
-1 votes
0 answers
5 views

GGTS 3.6.3 - how to set local maven repo

I'm trying to upgrade to GGTS 3.6.3 and can't find the dependencies i need in remote repositories. I'd like to put them in a local repo but can't find where to set that. In grails 3.2 there was a ...
andrew r's user avatar
-1 votes
0 answers
24 views

Unable to run mvn clean install: mvn using default plugin(maven-antrun-plugin:3.1.0) while pom have defined an older version 1.8 [closed]

I am working on a project, which is quite old. Upgrading maven-antrun-plugin:1.8 is not really an option with me. Issue I am facing is, when I do mvn clean install from terminal, maven-antrun-plugin:3....
Ashutosh Singh's user avatar
-3 votes
0 answers
16 views

Impala build error at 94% Built target java [closed]

i'm building impala package from git, and building it using maven 3.9.4 and cmake 3.12.3 and got error at 94% when built target java phase, what is the possible cause of this error, how to solve it ...
Meikel Rizky Hartawan's user avatar
1 vote
1 answer
63 views

Enum query param does not work - openapi-generator

I use openapi-generator-maven-plugin version 7.0.0 for OpenAPI swagger spec to Java code generation. <plugin> <groupId>org.openapitools</groupId> <artifactId>openapi-...
Tsvetoslav Tsvetkov's user avatar
0 votes
0 answers
25 views

error: option --add-exports not allowed with target 8

We have a requirement where we need our code base to be compiled with Java 17 and when the maven plugin generates artifacts it should be in Java 8 compatibility. We are using sun.security.action....
user3436310's user avatar
-1 votes
0 answers
11 views

can't find osmocom4j Library

I am seeking your support to find osmocom4j repo! there is no result on google for osmocom4j , while google Bard said it is an open source library. "I found a Java open source project that ...
Atiyeh Hamdan's user avatar

1
2 3 4 5
1755