Category "maven"

Deploying Spring Boot war in AWS ec2 instance

I am trying to deploy a spring boot application as war file in Apache Tomcat/8.5.29 on aws ec2 instance. Same war file working fine if i paste it in local machi

Generating and accessing WSDL on Tomcat with Maven

I have a JAX-WS server that I package with Maven and deploy on Tomcat. The pom.xml generates the WSDL file automatically with the trick from Use Maven to trigge

I added a maven project as dependency in another maven project

I added a maven project A as dependency in another maven project B and then access the jar created by B in another project through reflection, but its throwing

Error building maven project in Intellij : "object apache is not a member of package org"

Whenever I try to run my main program directly in IntelliJ I get this error: Error:(5, 12) object apache is not a member of package org import org.apache.common

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:3.0.0-M4:test (default-test)

I am facing this issue with maven-surefire-plugin 3.0.0-M4 and Maven versions 3.6.3, 3.6.0 and 3.3.9 with jdk1.8.0_222 (Ubuntu 18.0.4). My pom.xml is as follows

Maven Fatal error compiling: directory not found: maven-compiler-plugin

I am trying to run the official Java EE 7 Tutorial code examples and get the error. I have read about it here and most of the results say that you have to check

specified user toolchains file does not exist

I am trying to run a test on one of the pools present and while doing do I am getting the below error Apache Maven 3.3.9 Maven home: /usr/share/maven Java versi

Unable to verify that GCS bucket exists while creating and staging Dataflow template

I am creating and staging gcp dataflow template in cloud storage with following command: mvn -X compile exec:java -Dexec.mainClass=main.java.TemplatePipeline -D

Why Spark Submit causes NoSuchMethodError when I run a uber jar made though maven shade plugin?

I have a Apache Beam project which works fine if I directly run it. But if i try to create a jar using maven clean:package it creates a uber jar using maven sha

How to use #pact maven plugin to verify a provider without port

Per https://docs.pact.io/implementation_guides/jvm/provider/maven/#2-define-the-pacts-between-your-consumers-and-providers : Protocol, Host, and Port are requir

Could not transfer artifacts from/to central maven repo when using Spring Framework Cloud

I am trying to create a maven project using Spring Framework Cloud. I defined pom.xml file as below <parent> <groupId>org.springframework.

Could not transfer artifacts from/to central maven repo when using Spring Framework Cloud

I am trying to create a maven project using Spring Framework Cloud. I defined pom.xml file as below <parent> <groupId>org.springframework.

Run Java Selenium tests in Azure DevOps release pipeline

I'm doing a POC for a Java project in an AzureDevops CI/CD pipeline. I created a Maven project that has Selenium tests (TestNG) that run against a demo website

package org.assertj.core.api does not exist

I am getting compilation error while I am trying to install the maven dependencies from my POM.xml. I tried adding and deleting many dependencies but I'm not

Missing artifact com.fasterxml.jackson.core:jackson-core:jar:1.9.11

I build a maven project and get an error on pom.xml Missing artifact in some dependencies. How can I resolve it?

Reuse object/property in different stages of a declerative pipeline in Jenkins

We create a new maven build: def rtMaven = Artifactory.newMavenBuild() Now we want to reuse this rtMaven in a different stage than the current one; like in t

Maven: How to fix foreign imports? (in Azure Function)

when I try to start my Azure function locally in Visual Studio Code I get a Maven error as following: [ERROR] Failed to execute goal com.microsoft.azure:azure-f

How to properly remove a dependency in a Maven project

I have a Java Maven project where I have some dependencies defined in the pom.xml file. Recently I decided to move from Junit to TestNG so I deleted the Junit d

How to resolve a maven dependency with a name that is not compliant with the java 9 module system? [duplicate]

I am trying to build a demo project in java 9 with maven that uses the dependency: <dependency> <groupId>org.apache.spark<

Ways to make maven build faster?

I have a multi module java project. Maven takes almost around 40 secs to build it. I have tried maven with multi threaded builds too by specifying -T and -C arg