Maven settings.xml related problem

I been facing some issues with settings.xml. Actually the problems is at work place I need to point to different repository on our VPN, while in case of trying out new examples I want to ignore the settings.xml with repository server configured on VP

Freelander csv sort in asc order and json ad

Recently I played with lazerycode jmeter analysis plugin but no matter how I tried to generate data through freemarker I failed to reach my goals, because for csv ftl I couldn't sort values in asc order or for json ftl I need to delete a comma after

How to call maven-resources-plugin programmatically

I am writing a custom Maven plugin and part of the plugin's job is to filter-copy some resources. The code I've written looks like this: CopyResourcesMojo rm = new CopyResourcesMojo(); rm.setOutputDirectory(outputDir); //determined dynamically in a l

Bootstrap, LESS and the Maven plugin

I'm looking for some information on how to get LESS compiling Bootstrap using the Maven plugin. I need to compile bootstrap with my less because I use bootstrap less in my files. Right now I have the maven plugin compiling less files into css, but it

How to write a maven plugin that actually works?

The instructions here seem very clear: http://maven.apache.org/guides/plugin/guide-java-plugin-development.html However, the first problem I run into is that the dependencies are wrong. I also needed to reference the maven-plugin-annotations dependen

mvn release: prepare does not work using maven 3

My JAVA_HOME is properly set up to /usr/local/java/jdk1.7.0_01 $echo $JAVA_HOME /usr/local/java/jdk1.7.0_01 $sudo update-alternatives --config java There are 3 choices for the alternative java (providing /usr/bin/java). Selection Path Priority Status

maven-scala-plugin giving a pom file error

I'm testing java code using scala and maven. The maven-scala-plugin is returning a pom file error in Eclipse. Here is my pom snippet : <plugin> <groupId>org.scala-tools</groupId> <artifactId>maven-scala-plugin</artifactId> &l

Maven JaCoCo plugin error

I have configured the Maven JaCoCo plugin as follows in my pom.xml file: <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <jacoco.version>0.5.9.201207300726</jacoco.version> </properties>

Updating a maven library project in the main project (android)

i'm trying to understand Maven Android Plugin with the examples found here: https://github.com/jayway/maven-android-plugin-samples/archives/stable I'm using the example "libraryproject" and all is working good, only one thing i really can't figu

how to generate a pot and war both in the project

we have two different project . And and the controller is almost same in two project. project A has controller inside it. So generating war for it is not problem. But project B is requiring Controller's jar of project A controller. Can any body tell

add a complex object to a maven plugin

I'm having trouble setting a default-value for a complex object in a maven plugin. If I have a class called MyObject I would like to new it up by default, so I would like to do something like this in my Mojo: /** * Value class that wraps all report c

How to list all the goals of a particular maven plugin

How to list all the goals of a particular maven plugin (e.g. I would like to list all the goals for maven-clean-plugin or maven-javadoc-plugin, how do I do that?)You can use this command to list all goals of a particular maven plugin. mvn help:descri

Objectives of the Exec before the war archive package

I want to run maven-replacer-plugin just before packaging war. I have find "prepare-package" phase but it triggered before war assembled and all resources copied, but I need to make changes when all resources copied and just before archive creat

Maven exec plugin question

I'm using Maven 3.0.3 on Mac 10.6.6. After packaging my war, I want to execute an unzip command (I want to do this because I'm using a Grails plugin that deletes the exploded war directory). So I have this in my pom.xml - <plugin> <groupId>org

Alter settings.xml from a maven plugin

Is it possible to access content of user settings.xml file from a maven plugin Mojo ? And if so, how ? I would like to alter this file in order to put in some user-specific configuration.for reading the Settings Object see khmarbaise's answer, and fo

Jetty Maven Plugin ignores the custom webdefault.xml file

I'm trying to get around the common issue of Jetty locking static files on Windows with the technique of setting useFileMappedBuffer to false in webdefault.xml. Unfortunately, every time Jetty is not picking up my customized webdefault.xml. I'm using

Maven systemPath is not added to classpath runtime

I need to add JDK's tools.jar as a project dependency. Setting it as a normal dependency is not working, because when installing it to the Maven repository, it adds a version number to the jar file. Thereafter, when I need something that needs tools.

Using Maven to create an Eclipse plugin - latest opinions

I am building a plugin for Eclipse - but as we use Maven as a standard build platform I would like to be able to build the plugin using Maven. I have found a previous question about using Maven with Eclipse Plugins - but as it is a year old I thought

How to generate JUnit sources using maven-gunit-plugin

I have maven configured to run gunit (an ANTLR grammar unit testing tool) through the maven-gunit-plugin. gunit, however, has two different modes. The first mode causes gunit to act as an interpreter, reading through the *.gunit (or *.testsuite) file

Maven Exec Plugin does not read the configuration

I'm trying to execute my project using the Maven exec:exec goal and I've tried to configure it with this snippet: <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>exec-maven-plugin</artifactId> <version>1.1.1&l