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
2answers
24 views

Run maven project with main() method in imported dependency in pom

Is there a way in which we import dependency in the pom for a maven project. Then when we package it and run the jar, the Main() method is provided by the dependency we imported and not in the project ...
0
votes
0answers
8 views

How to change @Library('release/2.40')_ to @Library('latest') in jenkin file

In Jenkinsfile @Library('release/2.40') but i need to change to @Library('latest'), it should be take latest release automatically from the script file. I tried @Library('latest') and build jenkin job,...
0
votes
0answers
29 views

How to reference jars in Maven that are not hosted on mvnrepo but Eclipse Orbit?

I have a Maven based Java project, which has a dependency on an Eclipse project (as an external jar). To build my project, I installed this jar to my local repo as it is not found in the public ...
0
votes
1answer
29 views

Maven - Multiple Jar Best Practices

Maven best practices seem like they support one project > one jar > one pom.xml. I have a maven project that can compile and run as a command line program OR as a GUI. Is it bad to have one project ...
0
votes
0answers
9 views

File/Directory prototype(structure) is not generated during rpm building through maven

I am building rpm through maven using "rpm-maven-plugin". In pom.xml, I wrote(under configuration tag):- <directoryCollection> <mode>0755</mode> ...
3
votes
1answer
21 views

How to add a pom.xml to an existing Netbeans webapplication project?

I want to add Spring Boot, but for some reason NetBeans didn't have it in the Spring framework package. I want to add a pom.xml for Spring Boot to a brand new project.
0
votes
0answers
16 views

Multiple IE windows are opening while execution and it was working fine before window updating [duplicate]

I am using the same version from last selenium and IEdriverserver from last year. It's is showing: org.openqa.selenium.remote.UnreachableBrowserException: Could not start a new session. Possible ...
-1
votes
1answer
21 views

pom.xml error in maven project using eclipse

I am making a maven project in eclipse for CRUD operations and whenever I am adding jstl dependency version 1.2 the pom.xml is showing error even though the jstl dependency get downloaded and also the ...
1
vote
3answers
62 views

Why Intellij do not find any Maven dependencies in pom.xml?

I just downloaded Intellij on a laptop and I imported a Maven project and the problem is that Intellij do not found any dependency in pom.xml. For example if I try to import hibernate-core or any ...
1
vote
2answers
46 views

How to add folder to classpath?

I am adding new integration-test for a project. However, I am using vscode, and each time I open Java files under integration-test folder, I got a warning "*.java isn't on the classpath. Only syntax ...
1
vote
1answer
18 views

java.lang.NoSuchMethodError: javax.servlet.http.HttpServletRequest.isAsyncStarted()Z in Wicket Web Hello World Project

I'm writing Wicket Framework Hello World application 1st time using Maven build. In Eclipse I've created Maven project. Build is getting successful. But while running , it is throwing "java.lang....
0
votes
0answers
12 views

In pom.xml if the <packaging> tag contains jar value, error shown at that line as "Execution default-resources of goal org.apache.maven.plugins:maven

I am using maven java project for selenium automation in which pom.xml is showing up an error for the tag if supplied value is jar. When value is changed to pom then no errors encountered. Previously ...
0
votes
0answers
46 views

My project doesn't appear in the jBPM WorkItem Repository after maven install

I want to develop multiple custom WorkItem for an app and I want to store them on an instance of the jBPM WorkItem Repository. This tutorial describe the steps in order to get any custom work item ...
0
votes
1answer
32 views

how to import java classes with the same names and same namespace (package names) into one maven projec

Can anyone tell me how to import java classes with the same names and same namespace (package names) into one maven project. I already include those clases in maven project using dependecy tags in pom ...
1
vote
1answer
14 views

Call hierachy of properties in pom.xml

I have a maven project with multiple nested projects. All of them do always have the same version. Untill now, if I want to increase the version, I went through all pom.xml files and changed the ...
0
votes
0answers
24 views

flying-saucer is overriding and overlapping the pdf

I have read all the supported issues but not having right solution. I have updated flying-saucer dependency from 1 to 9 and finding the issue. <version.oldc.flyingsaucer>1.0</version.oldc....
0
votes
0answers
16 views

Maven Exclude Packages

My project, a Nukkit plugin, needs to use the Apache Commons Lang3 dependency - so I've included it in my pom.xml. The issue is that my Jar size is well over 1 MB, so I need to cut some packages out ...
0
votes
0answers
36 views

OjAlgo Gurobi integration

I have a working OjAlgo solver for ILPs and I wish to integrate it with Gurobi (on an academic license). This is the repository where the author explains how to integrate Gurobi with OjAlgo https://...
0
votes
1answer
29 views

Exception in thread “main” java.lang.NoSuchMethodError: org.springframework.boot.builder.SpringApplicationBuilder.<init>([Ljava/lang/Class;)

I was trying to run the spring boot project with web sockets. starting the application was working fine, later when i started adding other dependencies for pom file like AWS SQS the project doesn't ...
0
votes
1answer
27 views

How to fix classpath problem in a GeoMesa+HBase POM

org.geotools.data.DataStore.createSchema(sft) raises the java.lang.NoSuchMethodError: org.apache.curator.shaded.com.google.common.collect.Maps.uniqueIndex(Ljava/lang/Iterable;Lcom/google/common/base/...
-1
votes
4answers
53 views

Spring-boot logo not loading on console, how to start application on tomcat server?

This is a Simple Microservice built using spring-boot. The application is working fine when I execute as Java Application. But when I run on Server i.e. Tomcat Server v8.5 the Server shows Started &...
0
votes
0answers
23 views

Run “test.jar” from pom.xml cause “Exception in Application constructor”

I'm working on maven javafx application. I need to run jar file from pom.xml on build. jar file is responsible for update version on each build. I have tried two solution and both are worked fine. 1) ...
0
votes
0answers
65 views

Explicit wait in Selenium using C# with POM

I am a beginner in test automation. The problem is that I want to click on a hamburger menu, then on 1st level navigation and after it on 2nd level navigation. But the problem is at 1st level ...
0
votes
1answer
20 views

Error while accessing property file by ResourceBundle

I can not access property file from main method. I have added property file under src/main/java , its working if i run the main class in Eclipse but its not working in command prompt if i use this ...
0
votes
2answers
37 views

Building Maven Project : Giving compilation Error

I am new to Java/Maven, and I am trying to build a maven Spring Boot project, it was earlier working and was successfully creating jar package as well. But it suddenly stopped working and started ...
-1
votes
1answer
24 views

How can i pass parameter to page factory method in selenium for specific search result?

In my project, I got a bunch of search results. Now I want to click on a specific element, based on the user parameters. used page factory design pattern. EbayPage.java - PageFatory @FindBy(xpath="...
-1
votes
0answers
22 views

pom.xml How to set the version number without changing the project version?

I'm developing a Java OSGI plugin using Maven. The problem I have when I install the plugin in the main app (Using a deploy folder) installs correctly and I can use it, but it has an unintended ...
0
votes
1answer
26 views

Maven pom to zip config files from GitHub and jars from artifactory

Requirement: Need to push config files and jars from artifactory to UCD for deployment. Config files are present in GitHub repostiory. Jars (not needed for build but needed to start application in ...
0
votes
0answers
14 views

How to pass input and output arguments to a python script being executed via exec-maven-plugin

I am using Maven exec plugin - to execute a python script and need to pass input and output arguments to a python file in this pom.xml plugin. For example my command from cmd looks like python ...
0
votes
1answer
16 views

Using Maven Release plug-in, update non-pom files

I have a project in which I am using maven-release-plugin to make periodic releases. I also have some script files like start.sh and stop.sh which helps in starting up the project with multiple steps ...
0
votes
1answer
33 views

How to add a project as a maven dependency to another project [duplicate]

This is something that has been asked on this forum and other places as well and whilst I have following some of the guides online. I am not being able to find add a new project as a maven dependency ...
1
vote
2answers
66 views

Sharing common code between multiple spring boot APIs

I have two spring boot REST APIs, both of them has exactly same /health endpoint, I want to extract out this endpoint into some other Java project. I want following things: When I compile any of ...
0
votes
1answer
55 views

Non-resolvable parent POM on Docker Build

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 ...
2
votes
0answers
47 views

How do I resolve the errors resulting from the JaCoCo maven plugin?

I added JaCoCo to my maven pom file but this results in many errors. How do I resolve these? This is my first time configuring a pom / maven setup. Any help is greatly appreciated! I tried running ...
0
votes
0answers
14 views

pom.xml dependency build plan

How to develop a spring boot application using pom.xml with the below dependencies  and that shall execute the explained build plan. Dependencies 1. Spring boot 2. Spring core 3. Spring test 4. Spring ...
0
votes
0answers
30 views

com.sun.proxy.$Proxy16 Error while execution

I'm trying my first exercise on Cucumber with Java. Getting error NullPointer and com.sun.proxy.$Proxy16 while executing. Tried upgrading, downgrading various dependencies. package com.cucu....
0
votes
1answer
26 views

Maven surefire plugin not picking tests in jenkins

tests running in eclipse, mvn test, command line also but not in jenkins. maven surefire plugin in console says no test to run. I suspect maven surefire plugin not able to pick tests. my POM looks ...
0
votes
0answers
6 views

How to resolve ${env.BRANCH_NAME} in pom file

I put ${env.BRANCH_NAME} in parent pom file. The env.BRANCH_NAME can not be resolved. any suggestion?
0
votes
1answer
22 views

java.lang.NoClassDefFoundError: Failed to link net/glxn/qrgen/javase/QRCode

java.lang.NoClassDefFoundError: Failed to link net/glxn/qrgen/javase/QRCode I get the above error when I added this code in my .pom file <build> <plugin> <groupId>...
0
votes
1answer
28 views

Cannot resolve symbol `webdriver.chrome.driver` in pom.xml

webdriver.chrome.driver is not resolved symbol in pom.xml of my project.How to get rid of this error and what is the use of webdriver.chrome.driver <configuration> <trimStackTrace>...
-1
votes
0answers
27 views

In a ecommerce website on product listing page i need list of all products which are available on listing page.Using selenium webdriver with java

In a eCommerce website on product listing page i need list of all products which are available on listing page.Using selenium web driver with java reference to POM.
0
votes
1answer
19 views

Is there a way to pass POM parameters/attributes to TestNG XML file?

I have a maven project. Is there a way to read attributes of pom file from the TestNg Xml file for example I want to read the version of the app from the pom file and then pass it down to my test from ...
0
votes
0answers
32 views

Can't profile my maven project. Is there an error in my pom.xml file?

I use Netbeans 8.2 with integraded Maven Support. I can run my Project sucessfully but as soon as I try to Profile my project i get an error. --- exec-maven-plugin:1.2.1:exec (default-cli) @ ...
0
votes
0answers
26 views

Custom JAR uploaded to Nexus not resolving from Nexus public group defined in settings.xml

Issue is manually uploaded artifact to release repository not resolving from Nexus group repository defined in the settings.xml. I've tried including http://localhost:8081/nexus/content/repositories/...
0
votes
0answers
40 views

Are there any way to called some file inside some external .jar in same repository?

I defined file path like this in mvn: <wsdlOption> <wsdl>D:\medication\DEV_ENV_GIT\R8.2_2\x-plugin\service\impl\src\main\wsdl\A.wsdl</wsdl> ...
0
votes
0answers
25 views

upgrade inherit maven dependencies from parent pom

in spring boot project tomcat-embed-core: 9.0.12 is getting resolved by parent dependency spring-boot-starter-web:2.1.0. but due to some reasons we have to upgrade the tomcat-embed-core version from ...
1
vote
1answer
46 views

Maven: How to deal with modules that contain modules?

Previously I have worked with multi-module Maven projects that consisted out of two hierarchies. The parent POM followed by modules in their own directories and POMs. But now I have taken over a ...
0
votes
1answer
45 views

Cucumber tests not executing when running maven test

I have a cucumber project. When I right click on the RunnerTest class and "Run "RunnerTest" all the features from the feature file starts running. All tests pass. My RunnerTest.class import ...
-1
votes
0answers
60 views

UnsatisfiedDependencyException when i am trying to connect mysql from springboot application

when i try to connect springboot appliction with MySql i am getting like this i dont have any idea about this org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean ...
0
votes
1answer
57 views

reference variables from pom.xml to deployment.yaml

i want to use maven pom.xml variables in a kubernetes deployment.yaml file. the variables i want to reference are ${project.artifactId} and ${project.version} which is pulled from pom.xml <...