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

hadoop-common build using maven failed due to missing artifact jdk.tools:jar

trying to build the hadoop-common project using the command, mvn generate-sources generate-test-sources The build failed with error: [ERROR] Failed to execute goal on project hadoop-annotations:...
0
votes
1answer
14 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: ...
0
votes
0answers
4 views

BeanCreationException Issue when trying to run app in eclipse tomcat but works when I use maven and deploy it from local tomcat

This is a rather strange issue that I've not seen yet. Context: This is a legacy project that I am trying to debug locally. When trying to run my application from Eclipse I receive this error: ...
0
votes
0answers
14 views

Maven throwing SAML Statement error message

I am working on Maven and I get error as shown below. I tried checking deployment assembly and build path but I am not getting any hint on what the system is complaining about. I also made sure I ...
0
votes
1answer
14 views

Why add a distribution management in POM if Jenkins already knows about it

Pretty much what the title say. I am trying to build a CI/CD for WSO2. While following this tutorial: https://docs.wso2.com/display/IntegrationCloud/Implement+Continuous+Integration+and+Deployment+...
0
votes
0answers
6 views

SonarQube - Configure Pull Request decoration with parameters

I'm using SonarQube 8.1 (Developer Edition) and Jenkins to analyse Maven projects which source code is hosted on Bitbucket. I'm using the "Pull Request Decoration" functionality and it's working well....
0
votes
0answers
15 views

Installation of Weka for usage in Java Code

I am new to Weka as well as to Maven. I wanted to use the Weka library in my Java code (using the Eclipse IDE Version 2019-09 R (4.13.0)) and I followed several tutorials like this one: http://www....
0
votes
0answers
14 views

What would be a reason to set createDependencyReducedPom to false (maven-shade-plugin)?

I've read a number of sources regarding the createReducedDependencyPom of the maven-shade-plugin: Is dependency-reduced-pom.xml automatically used instead of pom.xml? What is the purpose of ...
0
votes
1answer
19 views

How to pull shared library during build in gitlab-ci docker?

I have a simple gitlab-ci pipeline. Now I want to add a maven dependency to a library that I want to share between different projects, eg my main project defines: <dependencies> <...
0
votes
0answers
7 views

Maven cannot build project with Qute templates

I've my Qute template under: src/main/java/resources/templates/myfile.html When I let IntelliJ execute the following mvn commando: mvn clean package I get a build error that the resource 'myfile' ...
1
vote
0answers
13 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
vote
0answers
24 views

How to separate test and build stage with maven in gitlab-ci?

I want to separate the maven stages to build, test and deploy. Question: am I over complicating things here? Should I maybe just use a mvn clean package stage, because compile and test are executed ...
0
votes
0answers
12 views

Nexus connectivity with maven 404 vs 501

From 15th Jan 2020, maven central location is now secured with https protocol. So, we understand that in our maven settings and application pom.xml we have to update our repository location to https. ...
0
votes
1answer
31 views

Issue with Integration tests in maven

I have my integration tests for a kotlin app in a separate folder like, src -> it -> kotlin -> resources main -> kotlin ->resources test -> kotlin ...
1
vote
0answers
36 views

Many Spring-Boot Microservices to be run in one IntelliJ

I have 5 repositories, each one containing a spring-boot microservice. I don't want to open 5x IntelliJ, so I am happy using File->New->Module. The Services window offers me the option to bulk start/...
2
votes
1answer
60 views

After upgrading from Java 8 to Java 11 receiving a loader constraint violation

I am upgrading a behemoth application from Java 8 to Java 11. We are still building with Java 8 but running with Java 11. I am seeing a class not properly loading because of a loader constraint ...
0
votes
0answers
10 views

packege import org.apache.storm.hbase.* does not exist

I want to store some data from Apache Storm into Hbase. I have inserted all dependencies that I found necessary. but still I have some problem with: packege import org.apache.storm.hbase.* does not ...
3
votes
0answers
28 views

Which is gradle's compileOnly equivalent in maven scope?

I want to mention following dependency in maven , which is included in gradle as : compile('org.springframework.boot:spring-boot-starter-web') compileOnly('org.apache.tomcat.embed:tomcat-embed-jasper'...
0
votes
2answers
36 views

Spring microservice: Servlet.service() for servlet [jsp] threw exception

I work with a Spring microservice and received the following errors, 2020-01-20 09:58:22.504 ERROR 13758 --- [nio-8080-exec-1] o.a.c.c.C.[.[localhost].[/].[jsp] : Servlet.service() for ...
0
votes
0answers
43 views

No suitable driver found for jdbc:postgresql - executable java jar

When I run the project as a java application in eclipse it works perfectly but running a java -jar on windows cmd throws the SQL exception (No suitable driver found) I have used maven(maven-...
-1
votes
1answer
28 views

Dockerfile Struts 2 [closed]

I have a struts2 project that I launch with a jetty server. I would like to make a dockerfile allowing me to create a struts2 image (to be able to launch it with a compose docker), my problem is that ...
0
votes
0answers
7 views

Copying resources from one project into another project during build cycle

My requirement is to generate a common template customized for the business specific configuration and dependencies. To achieve this, I have planned to reuse the technique of custom archetype strategy ...
0
votes
0answers
26 views

Efficient Resolution for 501 HTTPS Required Error in Maven Build for Moving (http://repo1.maven.org/maven2 & http://repo.spring.io) to HTTPS?

Need Efficient Solution for moving to HTTPS for mvn clean install build success Have project with numerous internal dependencies which use http://repo1.maven.org/maven2 & http://repo.spring.io ...
0
votes
0answers
13 views

Maven Shade Plugin isnt relocating commons-logging

I can't get the maven shade plugin to actually relocate classes in a different package. OcpSoft accidentally shaded a commons logging impl in their pretty faces jar. This makes it nearly impossible ...
0
votes
1answer
11 views

Getting “Failed to determine a suitable driver class” when trying to generate Angular client code

Following this tutorial I tried to create my Angular client by calling: mvn clean verify -P angular which gives me the following error: Consider the following: If you want an embedded ...
0
votes
1answer
19 views

Feign REST client: FactoryBean threw exception on object creation

I work with a feign client micro-service and get the following errors - $ mvn spring-boot:run [INFO] Scanning for projects... [INFO] [INFO] -----------< com.transport.visualizer:transport-...
0
votes
2answers
31 views

How to put <security:authentication property=“principal.username”/> inside a value=“ ” in an input?

does anyone have an idea how I can put this line <security:authentication property="principal.username"/> inside the value="" <form:input path="contactName" cssClass="form-control" ...
1
vote
0answers
28 views

Maven build fails. While it can find all dependencies, it cannot find the classes defined in the project

When I build my maven project (I always use clean) it fails and gives me cannot find symbol error. This is my pom.xml file <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven....
0
votes
0answers
15 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-...
0
votes
0answers
33 views

Failed to download Spring dependencies in Intellij

I'm following some tutorials in order to learn Spring but every time I try to create a new Spring project in IntelliJ I get a "Failed to download" error. After some investigation, I found out that ...
1
vote
0answers
33 views

How to force using a jar as an automatic module, without editing it?

I created a Java 13 project that uses the modular system, and want to use LITIEngine, a game library made with java 8. After adding the dependency in Maven using : <dependency> <groupId&...
0
votes
0answers
17 views

Jsweet-quickstart can't be compiled with Maven

I'm using Jsweet for a Maven project, I tried to run quickstart but I get this error. I'm using Java 1.8, I know that I need for use Jsweet, but the console give me this error. Execution generate-js ...
0
votes
2answers
18 views

how to configure Wildfly to deploy Maven project

I'm learning Maven with eclipse and a liitle bit confused on how to deployed it on a remote server. Before using Maven I created a web project and exported it as ear file and copied to the server's ...
-1
votes
1answer
31 views

how to compile spring-boot-maven-plugin without version number?

I am trying to generate spring boot executable jar <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin<...
0
votes
0answers
11 views

#org.jetbrains.idea.maven - com.google.inject.CreationException: Unable to create injector, see the following errors

org.jetbrains.idea.maven - com.google.inject.CreationException: Unable to create injector, see the following errors: 1) No implementation for org.apache.maven.model.path.PathTranslator was bound. ...
0
votes
1answer
11 views

How to run Junit5 and TestNG togather in Maven pom

I have some set of test cases configured with TestNG. I developed preconditions in junit5 and this has to be run before the test starts. So I wanted to run in sequence Line Precondition(junit5) and ...
1
vote
0answers
17 views

How to refactor some classes from the maven project into a separate module

I was recently tasked to separate some classes along with all the dependencies and properties, etc from a spring boot microservice project into another new spring boot microservice project. I did it ...
0
votes
0answers
13 views

JavaParser - analyze and generate code for whole spring boot maven project

I am trying to accomplish code generation and analysis of my entire spring boot maven application. What I want to achieve is Just like IDEA analyzes the whole project and find dependencies for a ...
3
votes
1answer
36 views

Maven plugin underlined in red + Error creating bean with name 'entityManagerFactory' defined in class path

I was having a perfectly fine project, just until a couple of days ago. I ran the project a few days later and now I have a field underlined with red in Maven and something with the '...
0
votes
0answers
20 views

Project fails to launch after coming back to it after a while

I am a beginner and I managed to finish my project somehow. After I was done with it I tried to add a new feature but I kept getting some errors. After a few days, as far as I remember I commented ...
0
votes
1answer
26 views

Excluding Logback dependency from spring-boot-starter-web stops log4j system from initialising properly

I was previously having trouble with multiple bindings error for spring application, i learned that the fix was to exclude a component of the spring-boot-starter-web dependency. The issue i'm having ...
0
votes
0answers
40 views

Repositories in gradle project were not indexed

I'm trying to synchronize a gradle project with some dependences to Spring Boot and Maven, but there is an error that indicates the following repositories used in the project are not indexed yet: ...
0
votes
2answers
44 views

Problem running basic Spring Boot application

I have been working through an introductory Spring Boot tutorial. I have gotten as far as running ./mvnw spring-boot:run From the project directory. Which generates the output: Let's inspect the ...
0
votes
1answer
22 views

dependency in pom.xml is not working in flink kafka connector example

src code: /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * ...
0
votes
0answers
16 views

Unable to get default <…> archetype http://repo1.maven.org/maven2/

how to rplace http://repo1.maven.org/maven2/ with https://repo1.maven.org/maven2/ in liferay studio.
1
vote
0answers
9 views

Could not transfer artifact org.grails.plugins:tomcat:zip:7.0.55.2 from/to grailsCentral (https://repo.grails.org/grails/plugins)

I downloaded my project from git and when I compile my error is: Resolve error obtaining dependencies: Could not transfer artifact org.grails.plugins:tomcat:zip:7.0.55.2 from/to grailsCentral (...
-3
votes
1answer
36 views

Exception in thread “main” java.lang.NoSuchFieldError: LINUX

package org.example; import org.openqa.selenium.WebDriver; import org.openqa.selenium.chrome.ChromeDriver; public class Sample { public static void main(String[] args) throws InterruptedException ...
0
votes
1answer
42 views

Tomcat doesn't work when I added my dependency in pom.xml

I should develop a Spring project. I got base source code. When I run Tomcat, it worked correctly. But if I added a dependency which I had developed by a fat jar in pom.xml, Tomcat doesn't work. I ...
0
votes
0answers
14 views

General error during semantic analysis: Could not resolve class named `groovy.util.logging.Log4j2`?

In my build.gradle, I have added the groovy-all dependency as shown below, configurations{ mylib .... dependencies { mylib (group: 'org.codehaus.groovy', name: 'groovy-all', version: '2.4.11'...
-1
votes
0answers
21 views

MojoFailureException in Eclipse project

I'm using Ecplise for a Java project with Maven and Jsweet. In my workspace I've got two projects: one of the back-end with the servlets and one of the front-end. When I tried to compile only the ...