Questions tagged [maven-module]
106 questions
0
votes
0 answers
Maven multi module project with git submodule: release perform fails
I have a Maven multi-module project. One of the module is a git submodule
proj-root
proj-module
proj-submodule
When I try maven release:prepare, the project fails. I have tried multiple ways but still not succesful.
I follow the following…

Devloper
- 1
- 3
0
votes
1 answer
Unable to use submodule dependency class in test, throws NoClassDefFoundError
I am working on a maven multi-module project with the following structure
project/
├── migration/
│ ├── src/
│ │ ├── main/
│ │ │ └── Migration.java
│ │ └── test
│ └── pom.xml
├── depends-on-migration/
│ ├── src/
│ │ ├── main…

user1778855
- 659
- 1
- 11
- 29
0
votes
1 answer
How to properly "export" an entity from one maven project to another?
I have a project with a regular structure.
project_a/
├─ src/
│ ├─ main/
│ │ ├─ java/
│ │ │ ├─ com/
│ │ │ │ ├─ myproject/
│ │ │ │ │ ├─ model/
│ │ │ │ │ ├─ Application.java
├─ pom.xml
The com.myproject.model package contains a…

Santa Monica
- 332
- 3
- 11
0
votes
1 answer
mvn exec:java - The specified mainClass doesn't contain a main method with appropriate signature
I have a maven project with one sub-module. If when I run mvn compile exec:java -Dexec.mainClass= it give the error in title.
Project structure and poms are as follows:
file structure:
akka-topics-java
├── pom.xml
└── up-and-running
├──…

ParSal
- 114
- 3
- 9
0
votes
0 answers
Injection Dependy of a Multimodule Maven project in Maven
I have the following issue.
On one hand I have a multi module maven project, which I use maven install to write the .jar files in my local .m2 repository. This is working fine. Lets call it MultiA.
Now on the other hand, I have a spring boot project…

kaum
- 21
- 1
- 4
0
votes
0 answers
Spring boot multi module project: Intellij Build error
I have a multi module maven project.
I can do maven compile of my Spring project without any error.
However, when I try to run using IntelliJ, it shows error that it can't find packages from the other module!

Junaed
- 1,457
- 13
- 15
0
votes
3 answers
How to not pull module (dependency) from settings.xml servers?
I have the following project package structure.
parent
|- module1
|- module2
|- module3
I am able to include module3 as a dependency in both pom.xml files of module1 & module2. This gives me access to all of the dependencies & code from…

duppydodah
- 165
- 1
- 3
- 17
0
votes
1 answer
Maven dependency on another local project: all ok but compiler does not see jar
I have two projects, let's say A and B, in the same directory dir. B is a parent project to its module C. C is dependent on A. Directory structure:
dir/
A/
B/
C/
I use this method create a project with modules and to show, that C is…

scriptfoo
- 476
- 5
- 17
0
votes
1 answer
quarkus - javax.persistence.AttributeConverter not in jandex index
I have a problem that seems to be very similar to How to create a Jandex index in Quarkus for classes in a external module and I carefully followed all suggested steps (jandex maven plugin, empty beans.xml, indexing other dependencies). However…

r-uu
- 423
- 1
- 4
- 18
0
votes
1 answer
How to run multi module maven application?
I tried to run my multi module maven application with
mvn -f pom.xml -DskipTests clean install
java -jar modules/mainmodule/target/mainmodule-1.0-SNAPSHOT.jar
The build works without problems and all modules are available in my .m2 repository, but…

NewComer8
- 33
- 4
0
votes
0 answers
Spring boot maven multiple module project: Compilation failure cannot find symbol
I created a multiple module spring boot project with a parent pom.
In the module test-data, i added some Entities-Classes User and Login:
@Table
@Entity
public class Login implements Serializable {
... another column
@Column(unique = true,…

emoleumassi
- 4,881
- 13
- 67
- 93
0
votes
0 answers
Maven multi module project structure in GIT
I am having issue with the structure of multi module project in git.
So I have my parent project in which I have given modules as all the child project. Build and everything is working fine.
I am trying to maintain a structure like spark/nifi and…

Siddharth Chaurasia
- 293
- 4
- 25
0
votes
1 answer
Could not resolve dependencies for a Module Based Maven project
I am facing a problem while building a Maven module. I am following module-based architecture, I have a parent project named Bikewale and it's child modules named Bike-repo, Bike-service, and Bike-web. When I am trying to add Bike-repo dependency in…

Amit
- 231
- 1
- 8
- 19
0
votes
2 answers
Adding Local Jar To Parent Module In Maven
My Parent Module is building fine but jars from /lib folder in Parent Project are not getting copied to .m2 directory. No jar file "sqljdbc" is generated from mentioned dependency; See below parent.pom.xml file

ALI
- 93
- 1
- 1
- 9
0
votes
0 answers
Maven plugin crashes when modules are not specified
The Maven plugin goal database:run crashes when I try to run it without specifying the modules where it's defined.
My project has four modules (main, core, cli, and web) and I added a database plugin only in two of them (cli and web), in the…

Joe DiNottra
- 836
- 8
- 26