FAQ Database Discussion Community


Jenkins Maven POM Version number not changing

maven,github,jenkins,pom.xml,snapshot
I have a simple Maven project that I am using as a Sandbox project to investigate how to push variables from Jenkins into a Maven build so they appear in the artifacts. (Or better still have Jenkins add parameters to the Maven build and leave the original intact). I have...

GAE/Maven error on clean install Plugin “com.google.appengine:appengine-maven-plugin:1.9.18 or one of its dependencies could not be resolved”

java,maven,google-app-engine,pom.xml,artifact
I am really struggling to get going with Google App Engine as the setup for the Cloud Endpoints tutorial is not going as smoothly as I'd expected. The tutorial I am trying to follow The issue arises after I have created the MyBean.java and YourFirstAPI.java, navigated to the folder containing...

Build issue in maven project on adding jasper-report dependency

java,spring,maven,pom.xml
In my Spring based Camel maven project on adding the following dependency for Jasper reports , I am facing issue while project build. Jasper Dependency: <dependency> <groupId>net.sf.jasperreports</groupId> <artifactId>jasperreports</artifactId> <version>6.0.4</version> </dependency> Below is the stack trace for the exception: SEVERE: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener...

Maven site not link to Jacoco report

maven,maven-3,pom.xml,maven-site-plugin,jacoco-maven-plugin
I can generate Jacoco report from profile 'test' and is save inside site folder. But when I execute profile 'documentacion' which contains site generation description, I get all reports link in site, except link to Jacoco report, but this report still appears inside site folder. This is part of my...

maven adding mainclass in pom.xml with the right folderpath

java,xml,maven,pom.xml,mainclass
I want to get a working jar file with my maven project. The build part is: <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-checkstyle-plugin</artifactId> <version>2.14</version> <dependencies> <dependency> <groupId>com.puppycrawl.tools</groupId> <artifactId>checkstyle</artifactId> <version>6.4.1</version> </dependency> </dependencies> <configuration>...

How can I set the TestNG option “configfailurepolicy” via Maven in the POM?

java,maven,testng,pom.xml
TestNG has an option called -configfailurepolicy that you can specify on the command line, or you can specify it in the suite XML file (if you are using one.) I would like to set that via Maven in the POM, but there is no documentation I can find anywhere that...

Different ways to override java version especified in parent pom

java,maven,pom.xml
I´m using a parent pom which establishes java version to 1.5. In my concrete project I use 1.6 so I was changing the compiler version in eclipse each time I did a Maven Update. Looking for a solution to this I found some solutions involving overriding the behavior of the...

How do you set a java.security.policy in Maven pom.xml (coming from Ant)?

java,maven,ant,pom.xml
In Maven, where would I set the security policy as shown in this Ant build.xml... <target name="runComputer" description="Run a computer"> <java classname="system.Computer" fork="true"> <jvmarg value="-Djava.security.policy=policy"/> </java> </target> ...if my pom.xml includes this profile: <profile> <id>manager</id> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId>...

Maven Eclipse Integration Issue

java,xml,eclipse,maven,pom.xml
I am having an issue with Maven integration. I have recently downloaded eclipse Luna (with jdk 8 patch) and using it on Ubuntu OS. I have created a maven project with simple artifact and now when I add write some dependency in my pom.xml file and then test it ,...

Gradle Equivalent for Maven Dependency?

maven,gradle,pom.xml
What is the equivalent Gradle notation for the following maven part? <dependency> <groupId>com.goodow.realtime</groupId> <artifactId>realtime-json</artifactId> <version>3.0</version> <classifier>sources</classifier> <scope>provided</scope> </dependency> I suppose it is something like: compile com.goodow.realtime:realtime-json:30 ...

Maven - No source to compile warning [duplicate]

java,maven,testng,pom.xml
This question already has an answer here: How maven pom.xml identifies the testng test cases in a non-standard project structure? 1 answer Im having some trouble running the TestNG Suite from my Maven project. At the moment i have my two suites defined in my pom file but when...

Exception in thread main - maven dependency

java,spring,maven,pom.xml
public class BatchLauncherSpring { public static void main(String[] args) { ApplicationContext context = new ClassPathXmlApplicationContext( "application-context.xml"); ////// } } I'm getting ClassNotFoundException when I run the main method. The Spring dependencies are added through Maven and these dependencies are resolved at compile time. There are lot of similar questions out...

POM errors using manually downloaded dependencies

java,maven,pom.xml
I'm working on a web-app that a group started a while ago, but I can't make it run. I'm quite a newbie with STS (Spring Tool Suite) and Java, and I installed all the dependencies manually with .jar files. But now my pom.xml is showing many errors. I guess there's...

Maven liquibase plugin

maven,pom.xml,liquibase
I am new to Maven and Liquibase. For the past couple of days, I have been playing around with liquibase without Maven. I have tried generating changelog file with a new database and an existing database. Now I am trying to implement Maven and Liquibase using the plugin. What is...

Missing artifact in maven internal repository

java,eclipse,maven,jar,pom.xml
I have added two jar files to my internal repository and created its corresponding folder directory as shown below in image. but it is showing compile time error in my pom.xml where i have added the dependency for both the jars, saying "Missing artifact common:common-jar:jar:1.0" and "Missing artifact mediator:mediator-jar:jar:1.0" look...

Pom.xml: connect timedout and modelversion missing error

java,xml,maven,pom.xml
I get the following error on eclipse for the pom.xml file. Multiple annotations found at this line: - connect timed out - Failure to transfer org.jibx:jibx-maven-plugin:pom:1.2.4 from http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are...

Maven Project Requires Local Dependency to be Built

java,maven,build,maven-3,pom.xml
I have 2 Maven projects, A and B. Project A is entirely independent, while B requires A as a dependency. Currently, B is getting A from the maven repository: <dependency> <groupId>com.myproject</groupId> <artifactId>projectA</artifactId> <version>2.0.0-SNAPSHOT</version> </dependency> What I would like to do is set up the dependency such that B can reference...

Ivy repository for maven projects

maven-2,pom.xml,dependency-management,ivy
We have an Ivy repository in place and we would like to develop new projects as maven projects but use Ivy for dependency management. Is it possible for maven to download artifacts from Ivy ? The articles I see are quite old, around 2011. Hence would like to check in...

how to use maven bundle plugin to exclude package out of bundle

osgi,pom.xml,exclude,maven-bundle-plugin
i have a bundle that uses maven-jaxb2-plugin to generate all classes to target/generated/src/main/java. Then i use maven bundle plugin to create a bundle. It simply works. Now, i want to exclude (remove) a generated package com.xxx.yyyy.common out of this bundle. So i use: <Export-Package> !com.xxx.yyyy.common,com.xxx.* </Export-Package> But after having a...

maven license plugin aggregate licenses from resources

maven,licensing,pom.xml,dependency-management
We're using the maven license plugin (third-party-aggregate goal) to produce a list of third party project dependencies - this is good and we've got it working. I would like to extend that to include the licenses for our resources (i.e. not just code/dependencies), but don't know where to start -...

EnableTransactionManagement cannot be resolved to a type

java,maven,pom.xml
package com.shaun.spring.config; import org.springframework.context.annotation.ComponentScan; import org.springframework.context.annotation.Configuration; @Configuration @ComponentScan("com.shaun.spring") @EnableTransactionManagement public class ApplicationContextConfig { // @Bean configurations go here... } i have a problem with @EnableTransactionManagement the following error that occurs is:EnableTransactionManagement cannot be resolved to a type. i have the following dependency in my pom.xml: <dependency>...

Include specific dependencies with maven assembly plugin

java,maven,pom.xml
I am using the maven assembly plugin so that I can include specific dependencies(basically I want to include specific transitive dependencies) class in my jar file. Here is my relevant code snippet from the pom.xml - <build> <plugins> <plugin> <artifactId>maven-assembly-plugin</artifactId> <executions> <execution> <phase>package</phase> <goals> <goal>single</goal> </goals> </execution> </executions> <configuration> <descriptorRefs>...

How does this code snippet in the Pom file works out?

java,maven,java-ee,pom.xml
Help me on this code snippet given below,I was not able to get what it exactly do? <build> <resources> <resource> <directory>${project.basedir}/src/main/resources</directory> </resource> </resources> <plugins> <plugin> <groupId>org.jvnet.jaxb2.maven2</groupId> <artifactId>maven-jaxb2-plugin</artifactId> <version>0.6.0</version> <executions> <execution> <goals> <goal>generate</goal> </goals>...

Maven build for machine learning - how do I get it working?

maven,machine-learning,pom.xml
I'm trying to compile and run some basic Java code in this repository: https://github.com/jasebell/mlbookexamples As an example, inside the Java folder, chapter2.BritneyDilemma. I'm trying to do this with maven (as there's a pom.xml) but I feel that there's a few things holding me back: -I don't know much about maven;...

Maven: package net.jcip.annotations does not exist

java,maven,pom.xml
I want to use @net.jcip.annotations.NotThreadSafe in my Java code. I have tried to import it is a dependency in the pom.xml for the project as of below. However, I still get the error: Is something wrong with my import? package net.jcip.annotations does not exist <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <version>2.18</version> <dependencies> <dependency>...

POM entries for Hadoop (version 2.4) with HBase (version 0.94.18)

maven,hadoop,hbase,pom.xml
What are the POM entries for Hadoop (version 2.4) with HBase (version 0.94.18) Do i have to use hadoop-core? If so, which version?...

Maven update versions goal builds old version in Jenkins

maven,jenkins,pom.xml,versions-maven-plugin
I've got a Jenkins/maven build where we need to be able to produce release artifacts with arbitrary version numbers. The version number is passed in as a parameter to the build job. I'm using versions:set to update the version from what is in the pom.xml to the $VERSION parameter. When...

org.codehaus.plexus.archiver.jar.Manifest.merge(org.codehaus.plexus.archiver.jar.Manifest)

eclipse,maven,pom.xml,m2e
This godforsaken error in eclipse won't die. I've tried everything mentioned here and elsewhere to get rid of it, but it won't go away and now I can't use the web service utility in eclipse because it complains about this "problem", which apparently isn't really a problem, but it is...

Hibernate possible Maven dependency conflict

xml,spring,hibernate,maven,pom.xml
I'm new to Spring 3 and Hibernate 3, and I'm trying to build a simple app to learn. But, if I try to execute it throws an Exception. As far as I know it might be related to maven dependencies conflict, but I don't know how to solve it. Here...

Why do the JBoss/wildfly BOMs not contain all of the provided modules?

jboss,dependencies,pom.xml,wildfly,wildfly-8
Wildfly 8.x ships with BOMs for easy dependency management: https://github.com/wildfly/boms These are useful for the module-based classloading described here: https://docs.jboss.org/author/display/WFLY8/Implicit+module+dependencies+for+deployments However, when I look in $JBOSS_HOME\modules\system\layers\base, I see many, many more included modules. For example, dozens of org.apache modules like commons-lang, etc. are included. These deps are also not in...

Surefire run certain tests in sequence, others in parallel

java,automated-tests,pom.xml,surefire,test-suite
Is there a way to make certain tests run in in sequence with the surefire plugin for JUnit? Currently it is running all tests in parallel, but some tests are very hard to convert and it would be sufficient if they didn't run in parallel. Here is a part of...

What is the wrong with my dependency definition?

java,maven,pom.xml
My pom.xml <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>com.example.cassandra</groupId> <artifactId>simple-client</artifactId> <packaging>jar</packaging> <version>0.1.0</version> <dependencies>...

Maven install not respecting command line arguments

java,maven,command-line-arguments,pom.xml
I have a project which I am attempting to install with maven. The pom.xml has a few properties in it which are modified when the maven install command is run depending on whatever version of a library we are attempting to build with: <properties> <some-version>0</some-version> </properties> The zero here is...

Spring & Hibernate Maven Building

spring,hibernate,maven,pom.xml
I have a relatively simple question regarding spring & hibernate maven builds. Say I have project A, which has had all jars added to the library by the IDE during project configuration at setup time - there was no Maven POM. Everything in this project is assumed to be working...

I am working in camel (Servicemix 5.4.0) i am getting below error message for sql in pom

java,sql,apache-camel,pom.xml,servicemix
I am working in camel (Servicemix 5.4.0) i am getting below error message while compiling project using mvn install com.microsoft.sqlserver:sqljdbc4:jar:4.0: Failure to find com.microsoft.sqlserver:sqljdbc:jar:4.0.2206.100 in https://repo.maven.apache.or g/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced...

Nexus / Maven - The POM for … is missing, no dependency information available

java,maven,pom.xml,nexus
I'm facing a bunch of warnings like "The POM for ... is missing, no dependency information available" while building my maven java project. The artifacts are stored in the Nexus server hosted in our company. The problem started after I scheduled a task in Nexus to "Remove Releases From Repository"...

Cannot find com.adobe.fdf.FDFDoc for Maven

maven,intellij-idea,pom.xml
I searched everywhere and I cannot seem to be able to find maven Dependencies artifact for com.adobe.fdf I am working on a very old project and am importing com.adobe.fdf.FDFDoc Does anyone know what should I do?...