Questions tagged [maven]

24734 questions
1

votes
3

answer
2.4k

Views

maven 3 site-deploy gets stuck in authentication prompt in Jenkins build

How do you get rid of this prompt when using site-deploy? "Are you sure you want to continue connecting?" I know this question has been asked multiple times (link, link), but the recommended solutions do not work for me and I will explain why. Oh, and I posted pretty much the exact same question her...
grayaii
1

votes
1

answer
283

Views

How to automate Maven artifact deployment for both release and snapshot on CloudBees?

CloudBees gives your private Maven repositories that are integrated in the build process: There is a check box to "deploy artifacts to my Private CloudBees Repository" as a post-build action in the project settings. However, you have to choose between the Snapshot and the Release repository, and the...
Thilo
1

votes
1

answer
5.2k

Views

There is no “Convert to Maven” Option when I do Right Click

I have a project which is divided into 3 sub project each for special purpose: I put this project in bitbucket and then I imported it into eclipse but after importing the project, when I right click, I cannot see the "Configure -> Convert to Maven" option. But when I click on the folder (called om...
Hamed Minaee
1

votes
1

answer
1k

Views

Java Spring/Maven LogFactory Error

I am trying to run JUnit on a Maven/Spring project and am testing with a web service client (axis2). Here is the buggy web service client calls: ProServiceLocator locator = new ProServiceLocator(); // CRASH proServiceEndpoint = locator.getProServicePort(); Here is the error: java.lang.ExceptionInIni...
Exegesis
1

votes
1

answer
4k

Views

'gpg.exe' is not recognized as an internal or external command, operable program or batch file - Maven Release Plugin

I just got my free Sonatype Maven repo and have been attempting to do a release. However whilst trying to do this I get an error when maven-gpg-plugin attempts to sign artifacts. I get a ton of asterisks showing beforehand and I just press enter and then I get this issue, here's my full log: http://...
Keir Nellyer
1

votes
1

answer
1.4k

Views

Can't get Pom to deploy to Artifactory with Jar

I'm writing a REST API and I'm trying to generate and publish a client jar automatically. I've got the jar generating fine, and even publishing to my company's Artifactory server.. but the pom file won't publish with it. The code for the client jar is being generated by Swagger Codegen. I've got the...
JDiPierro
1

votes
2

answer
3.1k

Views

Is possible override the version of a dependency in child POM?

I'm working with Maven to management the dependencies of my projects. I have my parent POM and I'm using Dependency Management to avoid write the common dependencies in each project. Now, I need change the version of one dependency in my child POM. I have this of my parent POM commons-lang commons-...
edla.sk8
0

votes
0

answer
10

Views

Adding local jar (oracle driver) to Maven and Bamboo

I need to use the oracle database driver (oracle.jdbc.driver.OracleDriver) for a project but Oracle does not have a Maven repository for it, so the only way that I have found is to download it onto my machine and then "install" the .jar to Maven as seen in this article. However, now it is time to ad...
Dylan Kidd
1

votes
2

answer
1.8k

Views

Hibernate database connection error in Maven Dropwizard

I have been trying a Dropwizard project using Maven. I can run hello world programs. When I tried to run database program using Hibernate, I got an error like below when running the program using java -jar. default configuration has the following errors: * database.driverClass may not be null (wa...
Rajeesh V
1

votes
4

answer
1.2k

Views

Maven and JavaDoc: install additional (generated) files

My project can generate some additional help files automatically from the source code. How do I have maven install these files into the generated JavaDoc package? I couldn't fingure out how to have Maven: run some class to generate the additional documentation, e.g. compile and launch src/main/java/...
Erich Schubert
1

votes
1

answer
6.5k

Views

How to read manifest.mf from *.war/META-INF/MANIFEST.MF file?

Using maven get compiled *.war file, which contains: - META-INF - - MANIFEST.MF - WEB-INF - - classes - - lib - - web.xml Using java.util.jar.Manifest I want to read the manifest file to get application version from there like in https://stackoverflow.com/a/21046257/1728511 But Application.class.get...
Mikhail Kopylov
1

votes
2

answer
1.1k

Views

Maven not downloading any dependencies of type pom

I am in the process of upgrading form Apache CXF 2.7.5 to 3.0.2 but I am having the problem below. When I am including the dependency org.apache.cxf cxf 3.0.2 pom import to my pom.xml I don't see any .jar files downloaded to my project. There are no errors on the project. I am using Maven 3.2.3 wi...
NikosDim
1

votes
1

answer
4.4k

Views

maven-ear-plugin not resolving dependencies

I'm trying to create an ear file using the maven plugin but it's failing on the ear project pom. I've been staring at this for hours and can't figure it out. I'm using eclipse so all my projects including the parent are in the same directory. My parent pom.xml: 4.0.0 com.traintrack traintrack-parent...
ewanc
1

votes
2

answer
6.1k

Views

org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException… why?

I develop server using spring mvc and hibernate. So, I write my server program using Spring mvc and maven. However when I start my server program at tomcat server, Error occurs. That is things expected. so, I search using my error message. However I can't find answer. help me.... This is my servlet-...
Rect
1

votes
3

answer
903

Views

Maven unpack to disregard original folder

One of my projects has a structure like this: .\ca\\dist\.zip I want to make a package that just has the zip files in a single package, so if I have submodules mod1, mod2, modn, I'll end up with: ZIP CONTENT: mod1.zip mod2.zip ... modn.zip What I've done so far is create a maven project and, using m...
MichelReap
1

votes
1

answer
249

Views

Maven: class not found compiling osgi bundle

I have three OSGI projects: ProjectA (has dependency to ProjectB provided) has a class with the code ... ClassB b=new ClassB(); ProjectB (has dependency to ProjectC provided) has the following class: public class ClassB extends AbstractClassC{ ... } ProjectC has the following class: public abstract...
Pavel_K
1

votes
2

answer
230

Views

Override transitive dependency - Maven

Below is the dependency from my project [INFO] | +- jasperreports:jasperreports:jar:3.1.4:compile [INFO] | | +- commons-beanutils:commons-beanutils:jar:1.7.0:compile [INFO] | | +- commons-collections:commons-collections:jar:3.2.1:compile [INFO] | | +- commons-digester:commons-digester:jar:1....
Hari Rao
-2

votes
0

answer
26

Views

Could not find or load main class com.Main

I have a project with a single file Main,java inside package com package com; import java.io.IOException; import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.hbase.HBaseConfiguration; import org.apache.hadoop.hbase.client.Get; import org.apache.hadoop.hbase.client.HTable; import or...
gc7__
1

votes
2

answer
2k

Views

Unable to attach to a running spring integration test using debugger

I am running a spring integration test using maven. I am trying to run it with debug port enabled so that I can attach to it from IntelliJ idea. The following command line used to work in the past. It used to allow the surefire bootup to initialize, and then wait to attach to port 8000 before contin...
feroze
1

votes
1

answer
1.1k

Views

Update version of org.springframework.boot to 1.3.2

I use org.springframework.boot version 1.2.5.Release and application runs without errors. Now I want change version of org.springframework.boot to 1.3.2. My pom file is ... org.springframework.boot spring-boot-starter-parent 1.2.5.RELEASE UTF-8 1.8 springio org.springframework.boot spring-boo...
Anar Amrastanov
0

votes
0

answer
17

Views

Diga “¿como soluciono este error ?” Caused by: javax.el.PropertyNotFoundException: Target Unreachable, identifier 'facturaController' resolved to null

Al momento de correr el codigo y llamar a la clase desde un boton " " me genera el error descrito Esto es para servidor Postgres, uso primefaces, jsf. Probe incluyendo librerias que revise en anteriores videos asi como dependencias en el pom.xlm codigo exportar pdf public void exportPDF(ActionEvent...
Adrian Parapi
0

votes
0

answer
3

Views

Idea Intellij: automatically Maven generated artifacts vs manually created artifacts - can't make the same

I try to get a hang of deploying web apps using Idea Intellij. I have a simple app with an index.jsp and a servlet and a pom.xml file. I tried to approaches to make it work (meaning, when I click a Run tomcat button a can view start page and servlet page). The first approach is Create new project in...
parsecer
0

votes
0

answer
4

Views

How can i make my CSS reload on page refresh? gwt maven

Here is the project i'm working on: https://github.com/veracityidinc/idf-sandbox I'm a front end dev so this is all a bit unclear to me. I looked at the build log to try to figure after of course consulting google, and i see people saying stuff about a plugin and copying files. It just seems very we...
morgred
1

votes
2

answer
1.2k

Views

getting error only one globalBindings customization is allowed in a whole compilation while using maven-jaxb2-plugin

I am using maven-jaxb2-plugin. Here is my plugin configuration org.jvnet.jaxb2.maven2 maven-jaxb2-plugin xjc-serviceoperations generate-sources generate ${basedir}/src/main/java/ src/main/resources/schemas/lmsapi/serviceoperations false xjc-types generate-sources generate ${basedir}/src/main/java sr...
Basit
5

votes
3

answer
92

Views

Pack library and all its dependencies to one folder, but other dependencies in separate folder

I've maven project. I use maven-assembly-plugin to create zip files with all module dependencies packed in it. Need to create zip with following structure: /my-libs /other-libs To my-libs need to pack dependencies from my-lib depenency + all its transitive dependencies. TO other-libs need to pack al...
turbanoff
1

votes
1

answer
109

Views

travis-ci job with bintray dependencies

My travis build job constantly fails, because it can't resolve the dependencies I have on artifacts from bintray. It simply says: Failed to execute goal on project deployer: Could not resolve dependencies for project com.github.t1:deployer:war:2.2.0-SNAPSHOT: The following artifacts could not be res...
rü-
0

votes
0

answer
2

Views

Spark 2.3.1 Scala 2.12.6 : Unable to import sqlContext.implicits._ with Maven

I receive the following error when trying to compile import sqlContext.implicits._ with Maven. error: not found: object spark [ERROR] import spark.implicits._ [ERROR] ^ [ERROR] one error found I found previous posts on this e.g. Spark Scala : Unable to import sqlContext.implicits._ However,...
Christian
2

votes
0

answer
17

Views

Tests fail on a simple RDD action

I am currently trying to package my project using maven, however, maven tests fail (throws an exception) on a simple RDD action. I am using Spark 2.3.0, Scala 2.11.8, JDK 8. The code: val myList= List( Array(22, 34, 56, 785), Array(21,24,34,534,563), Array(2, 34, 86,345), Array(10, 34, 98), Array(10...
Harelz
1

votes
1

answer
4.2k

Views

Junit maven build error (maven-surefire-plugin:2.19.1:test failed: There was an error in the forked process) [duplicate]

This question is an exact duplicate of: Struts 2 Junit Test case execution failed (StrutsTestCase.getActionProxy:138 » NullPointer) 1 answer I created a sample struts 2 project & J-unit test case by referring the link. Below is my POM file. 4.0.0 au.com.woolworths struts_junit 0.0.1-SNAPSHOT war...
aravind
1

votes
3

answer
1.4k

Views

How to use maven to build an self-contained executable jar? [duplicate]

This question already has an answer here: How can I create an executable JAR with dependencies using Maven? 33 answers I am using maven to build a java project. My project has a lot of dependencies. Now, I need to deploy this project on a server, so I want to create a self-contained executable jar,...
enitihas
0

votes
0

answer
3

Views

Error Integrating Firestore with Javafx Maven Application (IntelliJ Idea)

Exception occurred "com.google.cloud.firestore.FirestoreException: java.lang.IllegalStateException: Could not find TLS ALPN provider; no working netty-tcnative, Conscrypt, or Jetty NPN/ALPN available" on code, InputStream serviceAccount = new FileInputStream("json file path"); GoogleCredentials cred...
Shaheer Raza
1

votes
1

answer
329

Views

NoClassDefFoundError in the Spring Mvc form handler

I work with a small Spring Mvc project and I get an error in to the time of handling a POST request. The error message is provided below, HTTP Status 500 – Internal Server Error Type Exception Report Message An exception occurred processing JSP page [/WEB-INF/jsps/users/userform.jsp] at line [26]...
Arefe
0

votes
0

answer
7

Views

Where to download a whole set of maven repository jar files?

Because my repository misses some jar files. I want to redownload the whole repository again. where can I download it? Like this: Maven Repository
Big Man Chen
0

votes
0

answer
6

Views

Jenkins - Locating mvnw properties in wrong path

Below is the snippet from scripted pipeline(Jenkins): env.PATH="${WORKSPACE}/xyz-app:${env.PATH}" sh '${WORKSPACE}/xyz-app/mvnw clean install' that gives below error: + /app/jenkins/workspace/CUWPB/for_xyz/xyz-app/mvnw clean install /app/jenkins/workspace/CUWPB/for_xyz/xyz-app/mvnw: 236: /app/jenkin...
overexchange
1

votes
1

answer
547

Views

Set Profile in mvn clean install command line?

How to set Profile in >mvn clean install -DskipTests command ? If I set Profile in STS or Eclipse it works. How we can do this from command line ?
Jeff Cook
1

votes
1

answer
25

Views

Artifactory Maven example fails with 401 error code

I'm trying Artifactory on my localhost. Even though I've followed their tutorial to do their Maven example, I fail with 401 status code. Here is the error I get: [ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy (default-deploy) on project multi: Failed to deplo...
Mahdi
3

votes
1

answer
31

Views

How to fix this maven dependency hell

We have a Java 8 maven project that became pretty large in the last months and the build became complicated (faulty). The structure currently looks something like this: git repo 1: module 1: sub-module A depends on: sub-module C sub-module B depends on: sub-module A git repo 2: module 2: sub-module...
user
1

votes
0

answer
10

Views

Generated .pom not including transitive dependencies

Having a bit of an issue where my generated .pom (using Gradle v4.10.3 & the maven-publish gradle plugin) is not including transitive dependencies. From what I've read, it should be reading the project dependencies and including them (I think!) instead of me having to manually declare them in the .p...
Shan
0

votes
0

answer
2

Views

Generate report listing repositories used for Jenkins job

How do I generate a report or maybe just print line-by-line a list of repositories specified in a pom for a Jenkins job? p2 repo1 ${repo1url} p2 repo2 ${repo2url} p2 repo3 ${repo3url} I'd like for it to be listed like this: repo1 :
jenkins noob
0

votes
1

answer
18

Views

Is there any way to apply dependency to one package only?

If I have a file that is in package com.my.stuff.tests.stuffone; Is there anyway to make a pom dependency apply to that one package only and not to the other org.some.library some-artifact 1 // apply to com.my.stuff.tests.stuffone; org.some.library some-artifact 2 // apply to all other package
user10714010

View additional questions