Questions tagged [pom.xml]

A Project Object Model or POM is the fundamental unit of work in Maven.

Filter by
Sorted by
Tagged with
0
votes
1answer
13 views

How to configure pom files and TeamCity to build dependent modules in maven java project?

I have project which consists from two modules. One of them considered to be main. So the second depends on first. Also I should generate javadoc jar files for modules. The output should be four .jar ...
0
votes
0answers
16 views

Generating a jar and using it as dependency in another module

I have multiple modules in a single project. I have packaged a module as jar and included it as a dependency in another module. I want this jar to be generated and installed in a specific folder. ...
3
votes
1answer
17 views

How to add repeatable sections like Header,Footer with all page classes of an application to page object model with selenium and java?

I am trying to automate web tests using Selenium and JAVA, I have a web application with certain sections like header and footer repeating across multiple pages. I am using page object model, ...
0
votes
0answers
17 views

can we change the name of the jar called into another tar,using assembly plugin when both jar pom and tar pom are under the same parent pom

i need to generate a jar using a pom and send this jar to another tar files,which are created using another pom, under the same parent pom.i achieved this using the maven-assembly plugin and using of ...
0
votes
0answers
15 views

How do I get Maven shade-plugin to remove signing info from jars correctly?

I am trying to create a single-jar map-reduce java application that can run locally or on Amazon's EMR. According to this question, one should use the shade-plugin instead of assembly:single. ...
-3
votes
0answers
14 views

Maven Build successful but can not ran the pom.xml file as testng-suit [closed]

Every time I run this, maven build is successful but I can not run the pom.xml file as TestNg suit. I tried with 'run configuration' but Testng can not be added from there. Also pom.xml and testng....
0
votes
0answers
6 views

Axis2 adding src infront of the directory

I am trying to generate java classes out of wsdl file using axis2. The code is being generated however the destination directory is not correct. After running the package or compile command I end up ...
-1
votes
0answers
16 views

Error while running testng xml from POM xml :Exception in provider

While I am running My testng xml from POm xml file its throw an error Exception in provider. please help me I tried alot but could not find any solution. The error in console is as below: **org....
0
votes
0answers
16 views

Using maven-resources-plugin to copy directory into target accessible by Dockerfile

I need to copy the entire pulsar-functions-go directory into the target directory just above the bottom arrow. The reason I need the files to be copied to the target directory is to allow them to be ...
0
votes
0answers
16 views

Spring application failing to run after excluding slf4j to prevent multiple bindings issue

Spring application is failing to run at launch after resolving multiple bindings issue caused by including external package package to projects. Error im getting doesnt seem to be informative , it ...
0
votes
1answer
25 views

Cannot access Java library

Note: I'm asking/answering this question because I didn't find my solution anywhere else. I am getting the following error message in my ServerMain.java file when I try running my maven project: ...
1
vote
1answer
19 views

How to push an artefact to maven.pkg.github.com?

How to push an artefact / Jar to maven.pkg.github.com ? Let's say I have a maven project, and I want to build and push this artefact to github package repository.
-1
votes
2answers
24 views

how can i write multiple classes under a pom file

enter image description hereI want to add multiple classes in this pom file but which tag i should use and where, please can someone clarify this.2
0
votes
0answers
16 views

Configure maven-deploy-plugin when mvn release

I am quite new in maven so it might be a silly question. I am running the mvn release: mvn clean release:prepare release:perform In the log I can see: [INFO] [DEBUG] Configuring mojo '...maven-...
-1
votes
0answers
14 views

I have added cucumber dependencies but still gettingNoSuchmethod errorcucumber.runtime.RuntimeOptions.<init> [closed]

java.lang.NoSuchMethodError: cucumber.runtime.RuntimeOptions.(Ljava/util/Properties;[Ljava/lang/String;)V at cucumber.runtime.junit.RuntimeOptionsFactory.create(RuntimeOptionsFactory.java:32) ...
1
vote
2answers
140 views

Failed to execute goal on project XX Could not resolve dependencies for project. Return code is: 501 , ReasonPhrase:HTTPS Required

I am compiling my repo for maven project. I am getting some dependency errors. I know the maven central repository no longer supports insecure communication over plain HTTP and requires that all ...
0
votes
0answers
15 views

How to create runnable jar when using dependencyManagement?

How to create runnable jar when using Dependency Management ? Below pom.xml does not create runnable jar. <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4....
0
votes
2answers
41 views

Include all resources in maven project in pom.xml

I need to include all resources in my pom.xml but i didn't succeed. Indeed, I'm trying this code but i don't think it works for all resources <plugin> <groupId>org.apache.maven....
0
votes
0answers
14 views

Turn off log4j2.xml DEBUG mode?

After I run a "mvn clean install" via command line in my project, there is a jar that is created. When I unpack the jar and inspect the log4j2.xml file, the debug mode is turned on. I want to have it ...
0
votes
2answers
29 views

Use maven properties in persistence.xml

I want to use properties defined in my pom.xml (with different values for different profiles) in my persistence.xml. More precisely, I'd like the SQL dialect used in the persistence to adjust ...
-1
votes
1answer
29 views

I am getting an error “Error generating the report: java.lang.NullPointerException” while running the JMeter script using JMeter-Maven plugin

I am getting an error "Error generating the report: java.lang.NullPointerException" while running the JMeter script using JMeter-Maven plugin. Below is the screen shot of the error I am getting: ...
1
vote
0answers
42 views

install Maven plugin before it is executed

I have one. Parent-module and two Child. One of the child is a plugin I wrote for sending mail to email(mail parameters, themes, text are set in pom.xml), which should be sent during the compilation ...
-1
votes
0answers
25 views

How to keep in yGuard if a method implements Runnable [closed]

I am using yGuard for Obfuscation. Does anyone know how to use keep for implementing interface. Example: public class xyz implements Runnable { public static int abc (float a, float b) { ...
0
votes
1answer
38 views

deploy artifact's without compile using mvn and Jenkinsfile

I have a multi-model project (maven project) and I'm using Jenkins pipeline to build and deploy the artifact. I want to compile all the child projects, and only if the compilation was seceded, I want ...
1
vote
1answer
36 views

Trying to resolve duplicate packages detected in AndroidManifest.xml

I have an android app (and accompanying web/appengine app) that works(ed) fine with endpoints v1 that I'm trying to get to build/work with endpoints v2 as now required. I converted each to Maven ...
0
votes
1answer
25 views

Moving maven profiles in setting.xml to pom.xml

I am using maven3. I have some user specific profiles and activeProfiles tags defined in settings.xml and I want to move them to project's pom.xml. But merely copying profiles and activeProfiles from ...
1
vote
1answer
34 views

Google code style formats maven pom strange in Intellij

I use the Google code style in my Java projects. I installed the google-java-format plugin in IntelliJ, but the plugin does not cover all formatting rules (e.g java imports). The documentation ...
0
votes
1answer
19 views

Failed to execute goal org.apache.maven.plugins:maven-clean-plugin:3.1.0:clean (default-clean) on project spring-boot-keycloak

My application was working fine and i was able to do mvn clean install using <packaging>jar</packaging> and able to execute a jar file but i change it to war file and i was't able to do ...
0
votes
2answers
21 views

Subproject does not fetch dependencies from Super POM

I got the following scenario: diag-parent (Super POM) and diag-domain (child) SUPER-POM: <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ...
0
votes
1answer
52 views

Non parsable POM

I'm having a non parsable POM error on netbeans. Below is the error and the POM file. The build could not read 1 project -> [Help 1] org.apache.maven.project.ProjectBuildingException: Some ...
0
votes
1answer
121 views

After upgrading spring version getting java.lang.NoClassDefFoundError:

I'm trying to upgrade spring from 2.1.1 to 2.2.0 in multiple projects that we have. I already done it in a few projects and all went smooth. In the current project, I did the same changes : <...
0
votes
1answer
38 views

How to solve this maven multi module dependency issue? It's not importing from local m2 after installing

I have a project with two modules in that. The parent POM looks like this: <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http:/...
0
votes
0answers
42 views

Facing error in the file pom.xml of the eclipse-greenhouse-iot package which cause further issues

Regarding the issue here that I am facing; I checked the eclipse-greenhouse-iot package and have seen error in pom.xml file: The error description says: CoreException: Could not calculate build ...
1
vote
1answer
21 views

Retain/preserve pom xml structure[element order] while writing pom file using MavenXpp3Reader/MavenXpp3Writer

I want to remove only the version number element from dependency as I plan to move that to parent pom. When I do that, entire pom.xml getting rearranged. But, I want to present original pom.xml ...
-1
votes
0answers
19 views

Web application not getting autodeployed on glassfish when run in netbeans

Web application not getting autodeployed on glassfish server, when run in netbeans 11. I have to manually deploy each time, I save new changed in web application in netbeans. what config changes ...
1
vote
1answer
40 views

Maven Pom update difference in dependencies

I have a pom file with multiple dependencies(spring boot, hibernate etc.) When I change version of one of them, many others are updated, such as hamcrest. Is there any way to track, what are the ...
-1
votes
0answers
31 views

Maven gets two version for a dependency

I am trying to add dependency for flyway in my pom.xml with specific version. As a result maven adds two different version. <dependency> <groupId>org.flywaydb</groupId> <...
0
votes
2answers
40 views

Difference between plugins and dependency in maven tool (unpack jar)

I'm new to the maven tool, below is what I have understood about plugins and dependency: Plugin is a Jar file which executes the task, and dependency is a Jar which provides the class files to execute ...
0
votes
1answer
28 views

What is this O symbol in POM.xml in intelliJ

I am having this O symbol in IntelliJ while editing pom.xml When I click this O , it takes me to parent pom.xml Please help me understand what is this and how to resolve it.
0
votes
1answer
42 views

Generating maven dependencies using list of jar file names

I am on the process of converting java projects with many dependencies to maven projects. These Java projects have dependencies, which are present in maven central. Now, I am trying to automate this ...
2
votes
2answers
74 views

Maven doesn't resolve parent POM file

I have a parent POM file and four child POM files. The child modules can't resolve the relativePath ../pom.xml. Error: Error Project structure: Project structure man clean install -X: mvn clean ...
0
votes
1answer
38 views

how to set default version in mvn pom

H, I have a multi project that have inner dependencies and I use ${project.version} parameter to the dependencies. I want to set a default version that if the version of the specific artifact doesn't ...
0
votes
0answers
16 views

ERROR SpringApplication IllegalAccessError tried to access method org.springframework.beans.PropertyEditorRegistrySupport.getDefaultEditor

I have been trying deploy SpringBoot project on tomcat server, In local run maven success But, I have been trying export .war file and deploy on tomcat get error. ValidatorFactory-scoped script ...
0
votes
2answers
44 views

Exclude embedded server based on maven profile

I have two different profiles (dev and prod) defined in my pom.xml. I don't want to include an embedded server while building a project with a prod profile. I know even if I don't exclude embedded ...
1
vote
1answer
62 views

Maven using wrong dependency version

The dependency version I want to use is 4.5.0 as specified in my pom.xml <dependency> <groupId>net.java.dev.jna</groupId> <artifactId>jna</artifactId> ...
0
votes
0answers
33 views

yGuard now issues a warning if the package or class or method name of a native method is obfuscated

I am getting these errors due to java native method in yguard: Exception in thread "main" java.lang.NoSuchMethodError Exception in thread “main” java.lang.UnsatisfiedLinkError java.lang....
0
votes
0answers
25 views

SMTP: got response code 530, with response: 530 5.7.57 issue while performing email configuration using POM.xml file

I am using following plugin in POM.xml file for sending reports on email after completion of test execution. But getting following issue - SMTP: got response code 530, with response: 530 5.7.57 ...
-1
votes
0answers
26 views

Maven and Spring Boot [duplicate]

I am trying to build my project but I get this: Scanning for projects... [INFO] Downloading from : https://repo.maven.apache.org/maven2/org/springframework/boot/spring-boot-starter-parent/2.2.1....
0
votes
1answer
43 views

How to exclude signed jars from pom.xml in Maven Project

When I try to create a jar for my project, I get the following error: Error: A JNI error has occurred, please check your installation and try again. Exception in thread "main" java.lang....
1
vote
0answers
36 views

How to prevent running a docker image each time in docker maven plugin?

My goal is to start an MSSQL Docker container while building my Spring Boot application with docker-maven-plugin only once, so on future running of 'mvn clean install' i want my build to skip trying ...