maven plugin - Mule Cookbook Anypoint connector - build failed

pull this from this directory and perform a maven buildgit clone following is the error received towards the 2nd last step[ERROR] Failed to execute goal org.apache.maven.plugins:maven-enforcer-plugin:1.3.1:enforce (default-enforce) on project cookbook-connector: org.apache.maven.plugins.enforcer.RequireJavaVersion failed with message:[ERROR] Detected JDK Version: 1.8.0-77 is not in the allowed range [1.7,1.8).I have tried to change POM.xml to [1.7, 1.9)such POM is located under "mule-cookbook-par...Read more

yarnpkg - How do I migrate "yarn run-script build" task from frontend-maven-plugin to gradle?

I use gradle-node-plugin instead of frontend-maven-plugin."yarn run-script build" task in maven is written such as following<execution> <id>yarn run-script build</id> <goals> <goal>yarn</goal> </goals> <phase>prepare-package</phase> <configuration> <arguments>build</arguments> <environmentVariables> <buildDir>${}/classes/static</buildDir> </environmentVariables> </configuration><...Read more

m2eclipse - apt maven plugin fail to generate Q classes

I am fixing a legacy project that uses Querydsl apt. For some reason the apt-maven-plugin started to fail. The only workaround I found was to use the alter ego maven-processor-plugin.I have reinstalled maven, eclipse and M2E with not much success. The maven-apt-plugin is unable to create the Q classes under /target/generated-sources/metamodel.edit: adding debug from maven [DEBUG] Configuring mojo com.mysema.maven:apt-maven-plugin:1.0.8:process from plugin realm ClassRealm[plugin>com.mysema.maven:apt-maven-plugin:1.0.8, parent: sun.misc.Launc...Read more

pom.xml - Maven Invalid content was found starting with element 'packaging'

I am using an eclipse maven project with apache wicket. When I add wicket-examples dependency with tag to pom xml, I get an error :cvc-complex-type.2.4.a: Invalid content was found starting with element 'packaging'. One of '{" 4.0.0":type, "":classifier, "":scope, " POM/4.0.0":systemPath, "":exclusions, "":optional}' is expected.POM.XML :<project xmlns="http:/...Read more

Clover 0% Coverage with multiple source directories + build-helper-maven-plugin

Our java application has multiple source folders, and use build-helper-maven-plugin to read source files from all the folders,But here when I run clover on the application it generates the clover.xml withcoveredelements = 0coveredconditionals = 0 coveredmethods = 0coveredstatements = 0All other metrics have numbers in itpom.xml<plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>build-helper-maven-plugin</artifactId> <version>1.8</version> <executions> <execution> ...Read more

maven plugin - Can I use another build system to build custom processors with NiFi?

My company uses SBT/Scala so my goal is to develop our custom NiFi processors with these rather than Maven/Java. The problem I'm having is I don't know how to generate the NAR files with SBT. NiFi has a nifi-nar-maven-plugin package plugin that it uses to package all the processor dependencies into a jar (nar). Is there anyway to build the NAR using SBT?Options I've considered: Building a fat jar (ex: I see pom files in the NAR but are those actually used for anything or is it just meta data? I see classes ...Read more

Maven project is not working fine , POM xml is incorrect & Cucumber is not recognised

My maven project was working fine , after adding few plugins for Jar filesMAven Project errors . JDK version is not identified Cucumber feature file displays error as "mismatched input '\n' expecting 'Feature:'"Maven Project displays some black * symbol on src, test, foldersMaven project Folder errorCucumber Feature ErrorPOM.XML: <name>maven-automation_test_suite</name> <url></url> <properties> <>UTF-8</> &...Read more

How can i set Mojo Paramater from the pom.xml of Mojo plugin without project

I write a Mojo Plugin. It has a Pamameter like:*@Mojo(name = "showModus", requiresProject = false, defaultPhase = LifecyclePhase.PROCESS_RESOURCES)<br>public class ShowModus extends AbstractMojo { <br>@Parameter (property = "modus", defaultValue = "${modus}")<br>private String modus;*in Pom.xml of Mojo Plugin i define a property for this:<properties><modus>1.1.1</modus></properties>It works fine if i call the Mojo goal direct under project order per mvnBut if i call the mojo plugin direct form maven rep...Read more

maven plugin dependencies forced to be plugins

I'm making a new maven plugin.It basically just allows a program in a JAR that is published to a local maven repo to be run during maven lifecycle.As such, the plugin requires that JAR and it is listed as a dependency. In the target computers (which do not have the JAR installed), during the maven dependency plugin execution, it will try to download that JAR from the plugins repo. This is where it fails.When the JAR is tried to be downloaded from the repo, the wrong JAR URL is used. Instead of using the URL to download lib dependencies, it uses...Read more

APIs for maven dependency

Are there any API that helps to find dependency of maven packages.I used the examples present in the answer of Programmatically resolving Maven dependencies outside of a plugin - get RepositorySystemSession and RepositorySystemHowever the dependency list that I get using aether is different from the list given by APIsAFAIK. The API did not resolve ranges, I am not sure whether it handles exclusions.Is there any readily available API that takes care of resolving version ranges, exclusions (simillar to what i get when using "mvn dependency-list/t...Read more

SoapUI Maven plugin- executing multiple projects

I am working on converting an Ant execution of the SoapUI TestRunner to use the maven plugin and I cannot get a good answer on how to execute multiple projects using this plugin. I found a forum post from 2010 on the Smartbear forum and there are a few approaches listed but none seem very workable (writing some script to invoke maven with different parameters or adding an execution for every project). Are there any best practices for working around this? Or has anyone seen an inventive solution to this problem? I would guess that this is a l...Read more

Why does Liquibase Maven update goal fail with errors while command line works?

I have been trying to get Liquibase's maven plugin to work with a simple SQL Changeset.It's a slightly modified version of the example at: liquibase formatted sql-- changeset nvoxland:1CREATE TABLE test1 ( id int PRIMARY KEY, name varchar(255));CREATE TABLE test2 ( id int PRIMARY KEY, name2 varchar(255));The problem is, it fails with an error:You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ...Read more

pom.xml - Warnings for Maven liquibase plugin?

I am trying to generate changeLog file using the Maven LiquiBase plugin.This is my pom file<project xmlns="" xmlns:xsi=""xsi:schemaLocation=""><modelVersion>4.0.0</modelVersion><groupId></groupId><artifactId>myTest</artifactId><version>1</version><packaging>jar</packaging><dependencies> <dependency> ...Read more