pom.xml Questions

11

Solved

I just started using Maven and I was told to do mvn install in a specific directory. What does mvn install do, exactly? I think it looks for pom.xml in the current folder and starts following th...
Aleron asked 10/5, 2012 at 12:18

12

Solved

Artifacts from dependencies can be excluded by declaring an <exclusions> element inside a <dependency> But in this case it's needed to exclude an artifact inherited from a parent projec...
Broderic asked 21/4, 2010 at 9:40

6

Solved

I am periodically checking vulnerabilities on my pom.xml and generally fix these problems by updating the dependency versions. However, I get the following error: Provides transitive vulnerable de...
Hudgens asked 13/12, 2022 at 8:11

3

This my pom.xml and the errors I get are: Non-resolvable import POM: Could not transfer artifact org.glassfish.jersey:jersey-bom:pom:2.9 from/to central (http://repo.maven.apache.org/maven2): re...
Gesticulative asked 6/6, 2014 at 14:14

5

The following class is showing issue - The import com.fasterxml.jackson cannot be resolved - import com.fasterxml.jackson.annotation.JsonIgnoreProperties; @JsonIgnoreProperties(ignoreUnknown=true...
Course asked 24/7, 2019 at 12:10

4

Solved

This is the way it currently works, and it's the Maven Deploy Plugin Usage pom.xml [...] <distributionManagement> <repository> <id>internal.repo</id> <name>MyCo ...
Microcurie asked 21/1, 2015 at 16:5

5

I m new to Spring Boot and built my first simple project but have a problem when running the application. Could you please tell me why it s giving an error , below? pom.xml <project xmlns="...
Sudarium asked 9/1, 2018 at 10:42

2

Solved

I have tried below ways but nothing work... i am trying to access jmx remotely from server. <jvmArgs> <jvmArg>-Dcom.sun.management.jmxremote.port=9999</jvmArg> <jvmArg>...
Hip asked 28/9, 2016 at 14:24

4

Solved

Why is this NOT working ? How to pick the version numbers from the properties file. Reading properties in pom.xml <project> <build> <plugins> <plugin> <groupId>o...
Impala asked 6/2, 2013 at 9:6

2

Solved

It is a multi-module maven project. I have included flatten-maven-plugin in my parent pom <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>flatten-maven-plugin&l...
Endocardial asked 5/9, 2014 at 9:5

2

Solved

I'm cleaning up pom files in my project and find out I use two slightly different scm records: <scm> <connection>scm:git:https://github.com/jadler-mocking/jadler.git</connection&gt...
Musetta asked 27/2, 2016 at 19:28

13

Solved

I have created a spring boot application to connect h2 database with it. While doing so, it throws an error showing Database not found. Please help me with the solution which I can implement and re...

2

Solved

I’m trying to build a Docker image from my DockerFile but keep getting an error like it can't find the parent pom.xml to perform a maven command in the docker file and build the project. Ive been l...
Essam asked 5/8, 2019 at 21:22

13

Solved

I'm installing a package that has Maven dependency and get a DependencyResolutionException when I try to clean it. After cloning it, I navigate to the directory and run the following to install it ...
Advent asked 7/4, 2021 at 5:28

5

Solved

I was just pointed to a very interesting article (archived) about a security problem called Cross Build Injection (XBI). Bascially it is a fancy name for smuggling bad code into an application at b...
Hanshansard asked 22/7, 2010 at 8:47

11

Solved

I am new to maven. I have one project which I try to build with the maven3. When I run the command mvn -X clean install I got the error. [root@localhost]# mvn -X clean install Apache Maven 3.0.4...
Creeps asked 17/10, 2012 at 4:5

3

Solved

I use the newest version of Java -> 16. When I run mvn clean, I am getting Could not initialize class org.apache.maven.plugin.war.util.WebappStructureSerializer error. I read that adding maven-w...
Inch asked 19/4, 2021 at 20:34

1

Solved

I have created new module under java project, but the pom.xml under new module is crossed out. Tried re-creating new module and copy past of existing module didn't work.
Maniemanifest asked 19/5, 2023 at 9:43

5

How would you explain it to a newbie web developer or programmer with some real world organization example (like say facebook company or Google company)?
Jeramey asked 27/8, 2016 at 21:13

14

Solved

When trying to run a test as a TestNG suite, I would get a very cryptic error message saying that TestNG can't launch because it references a non-existant project. I think my project does exist, I ...
Antigone asked 16/4, 2014 at 17:47

12

Solved

I am using Eclipse Luna and working on a maven project. When I add the entry for ojdbc jar in pom.xml , it is giving error in the xml. I can't find any reason for the issue as groupId, artifactId...
Aliphatic asked 4/8, 2014 at 21:55

4

I'm new to springboot and using springboot 2 version. I would like to run my spring boot application using : java -jar my-app-0.0.1-SNAPSHOT.jar from the command prompt. However, when i build the a...

10

Solved

I am on windows environment and using maven to compile my project. Although I just created the project and added the dependencies for various libararies. As I added them maven started complaining ...
Cards asked 8/11, 2012 at 12:3

4

Below shows the hierarchy of my POMs. You can see that we have a company parent-pom for spring boot projects. This POM has spring-boot-starter as it's parent, and it imports our own dependency-man...
Lyublin asked 4/5, 2018 at 22:42

16

Solved

As of today, my maven compile fails. [INFO] [ERROR] Unexpected [INFO] java.lang.OutOfMemoryError: Java heap space [INFO] at java.util.Arrays.copyOfRange(Arrays.java:2694) [INFO] at java.lang.Strin...
Foreknow asked 19/9, 2012 at 16:13

© 2022 - 2024 — McMap. All rights reserved.