plugin « Development « Maven/Ant Q&A

Home
Maven/Ant Q&A
1.Ant
2.artifact
3.dependency
4.deploy
5.Development
6.eclipse
7.glassfish
8.hudson
9.integration
10.jetty
11.junit
12.m2eclipse
13.module
14.netbeans
15.package
16.plugin
17.POM
18.repository
19.svn
Maven/Ant Q&A » Development » plugin 

1. Maven Jdepend report contains no data    stackoverflow.com

I'm running the jdepend maven plugin on my project and whether I run "mvn site:site" or "mvn jdepend:generate" the report that gets generated says "There are no package used." There ...

2. maven-buildnumber-plugin    stackoverflow.com

i use the maven-buildnumber-plugin to generate my version number for JAR/WAR/EAR packages. So when doing a compile i'll get for example ${project.version}-${buildNumber}, because is set to this value. But when ...

3. Maven2 life cycle help    stackoverflow.com

I’ve built a custom Maven2 plug-in using Ant. I would like to call another maven plug-in in particular the Cargo Maven2 plug-in immediately after the custom Ant plug-in successfully completes. However, ...

4. A couple of questions about Maven 2    stackoverflow.com

i have some questions about Maven 2 and i hope somebody can clear things up for me:

  1. made a new thread about that (link: http://stackoverflow.com/questions/540697/maven-2-plugin-build-surfire)
  2. Is it possible to define a profile ...

5. When to use MojoExecutionException vs MojoFailureException in Maven    stackoverflow.com

The AbstractMavenMojo's execute method declares it throws two exceptions, MojoExecutionException and MojoFailureException. Throwing either results in the build stopping and the log displays an almost identical message in each case. The message ...

6. How does Maven determine the order goals run in within a given phase?    stackoverflow.com

As per this link... http://en.wikipedia.org/wiki/Apache_Maven#Build_Lifecycles I understand that Maven as a number of phases that run in the order they are defined for a given lifecycle. I also understand ...

7. Convert Maven Site Software Documentation to PDF    stackoverflow.com

I am currently working on a project written in Java and I am using Maven and the maven-site-plugin to generate a website containing all the relevant JavaDoc, reports, etc. I ...

8. Is there a Maven Report showing Ohloh statistics?    stackoverflow.com

Does anybody know if there is a Maven 2 plugin for including Ohloh statistics/widgets as a report?

9. Jalopy to format return/throw statements    stackoverflow.com

I would like Jalopy to format my return and throw statements such that they look like a method call since they are:

return(true);

throw(new IllegalArgumentException("You can't do that, what we you thinking?"));
I have ...

10. Execute file from maven goal    stackoverflow.com

I like to integrate compass (http://wiki.github.com/chriseppstein/compass/) in my java project, and I need something to compile .sass files to css without running commands manualy. So is there a way to execute ...

11. How do you select the file name of a maven jar-with-dependencies?    stackoverflow.com

I am creating an executable jar using the jar-with-dependencies component of the maven-assembly-plugin during the package phase of my maven lifecycle. However, I can't see a way to configure the ...

12. How do I execute a program using Maven?    stackoverflow.com

I would like to have a Maven goal trigger the execution of a java class. I'm trying to migrate over a Makefile with the lines:

neotest:
    mvn exec:java -Dexec.mainClass="org.dhappy.test.NeoTraverse"
And ...

13. How to rename goals in Maven?    stackoverflow.com

In the Maven document Introduction to the Build Lifecycle, a goal of display:time is described that outputs the current time. The plugin is as follows:

...
<plugin>
  <groupId>com.mycompany.example</groupId>
  ...

14. Issue on maven 2.2.1    stackoverflow.com

I wrote a small maven plugin and everything seems to work well with prior version of maven (2.0.9) but my build fails on version 2.2.1 The stack trace does not show ...

15. Where is the documentation on all built-in Maven expressions?    stackoverflow.com

When building a Maven plugin, where can I find documentation for the built-in expressions that can be used for @parameter expression="${...}" constructs?

16. Maven goal raises "Required goal not found"    stackoverflow.com

I am trying to generate a maven plugin as described in the maven documentation. So I created a new plugin project with Eclipse, using the mvn archetype:

<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 ...

17. run task with maven after specific phace    stackoverflow.com

how run a task post maven eclipse:eclipse phase ?

<groupId>org.codehaus.mojo</groupId>

<artifactId>exec-maven-plugin</artifactId>

<version>1.2</version>

<executions>

    <execution>

        <phase>eclipse:eclipse</phase>

        <goals>

   ...

18. maven-dependency-plugin:copy tries to copy classes    stackoverflow.com

I have parent pom and two module poms. In first module I want to copy second module (jar) to some folder. When I compiling project from first module pom - it ...

19. statscm alternative    stackoverflow.com

Is there an alternative to the maven plugin statscm? http://stat-scm.sourceforge.net/ Looking for something that has active development. Also there are some lingering bugs which are only available in the Snapshot. ...

20. Invoking Maven goals inside Mavenplugin    stackoverflow.com

I want to write a maven plugin which executes some specific maven goals on a set of projects. Currently I have in my plugins pom:

<dependency>
    <groupId>org.apache.maven.shared</groupId>
    ...

21. Where is the versions-maven-plugin?    stackoverflow.com

I cant find it anywhere: the website doesn't point to any repository and the guessed http://repository.codehaus.org/org/codehaus/mojo folder is empty.

22. maven-assembly-plugin 2.2.1 -- throws NullPointerException    stackoverflow.com

I'm a long time maven user but have stumbled across a problem constructing maven assemblies that contain built-in maven repository and need a bit of help.

Environment:

  • Ubuntu 10.10 - 2.6.32-30-generic ...

23. VM Arguments with maven-failsafe-plugin    stackoverflow.com

I'm trying to pass a VM argument into Maven, specifically for a suite of tests run by failsafe. My pom.xml looks like this:

...
<plugin>
  <groupId>org.apache.maven.plugins</groupId>
  <artifactId>maven-failsafe-plugin</artifactId>
  <configuration>
   ...

24. properties-maven-plugin: The parameters 'files' for goal ... are missing    stackoverflow.com

I'm using Maven 3.0.3. I'm trying to test reading properties from a properties file (this is part of a larger effort, I wanted to get this part right first). ...

25. Can I make maven-assembly-plugin go faster?    stackoverflow.com

I have a maven multi-module project. The final goal wraps up all the libraries, etc., that we build in a tarball and RPM for distribution. This goal uses the ...

26. how to avoid UTF-8 encoding for binary with maven-resources-plugin?    stackoverflow.com

I'm using the maven-resources-plugin to copy some resources from my project but one of my resources is a binary file. The output says it is Using 'UTF-8' encoding to copy filtered ...

27. How do I configure Maven 3 to use preemptive authorization?    stackoverflow.com

I've tried a number of ways to get this to work, but I've yet to be successful. Here's what I've found so far. Note that I've tried these settings ...

28. Easyb with Data-driven Development?    stackoverflow.com

in the latest version of easyb (0.9.8.2) it seems to be possible to have "where" and "example" statements to make a Data-driven testing possible. In my POM, I'm using the latest ...

29. Emma runtime controller doesnt start    stackoverflow.com

My primary goal is to get code coverage using EMMA on a running web application using CTL coverage.get. I use emma maven plugin. So, I deploy my web application with instrumented ...

30. Writing a Maven Plugin/Mojo: how do you make a goal force the execution of other goals?    stackoverflow.com

Note: this thread is about writing a custom Mojo, not using a plugin. I maintain a testing plugin for Maven. Unfortunately, for almost a year now, I've let this particular ...

31. What is the replacement for MavenProjectBuilder which is deprecated in maven 3?    stackoverflow.com

I'm writing a plugin which in part takes as an input groupId:artifactId:version, and interrogates it POM. In Maven2, there was an option to use MavenProjectBuilder. I could download the pom for the ...

32. maven-assembly-plugin remove unwanted folders    stackoverflow.com

I'm making use of the maven-assembly-plugin to zip up couple of folders. Following is my code: pom.xml

<plugin>
 <artifactId>maven-assembly-plugin</artifactId>
 <version>2.2-beta-5</version>
 <configuration>
     <descriptors>
        ...

33. maven-assembly-plugin MojoExecutionException with dependencySet as outputDirectory    stackoverflow.com

In my Khatami project I'm using maven to both manage compilation and package up the result into a runnable artifact: executable shell-script at the top-level, bin/ containing the executable ...

34. How to make a backwards compatible maven-plugin?    stackoverflow.com

I've written a maven plugin for jslint4java. One of my users is reporting that the plugin fails for him. It transpires that maven is injecting ...

35. assemble dependencySet sources    stackoverflow.com

I'm rebundling dependent artifacts to an new jar for automatically supporting all libs within an eclipse plugin project. Therefore I'm using in the assembly plugin the dependencySet option.

<assembly ...>
  ...

36. buildnumber-maven-plugin and maven-assembly-plugin    stackoverflow.com

I've set up the buildnumber-maven-plugin to pull the version number from SVN and stash it away in the META-INF/MANIFEST.MF inside the jar. That works ok. But when I try to use ...

37. How to stop Apache maven to overwrite the folder    stackoverflow.com

I have the following directory hierarchy:

generated 

   |    
   | -->java
Java directory has the following package: com.model that contains java models that I copy/paste from ...

38. Maven 3 with antlr3-maven-plugin: does source geneation really take place in process-sources?    stackoverflow.com

I'm using antlr3-maven-plugin (v.3.3) with Maven 3. It has only one goal named antlr wchich, due to documentation:

Binds by default to the lifecycle phase: generate-sources
However when I invoke ...

39. maven-assembly-plugin holds lock on file    stackoverflow.com

I'm using the maven-assembly-plugin to produce a zip file for some database scripts. I am having an intermittent problem in that if my build fails for whatever reason, when I come ...

40. Maven test-jar for children    stackoverflow.com

We have many modules in our project and we want to enable test-jar creation for some of those. I tried adding maven jar plugin to the parent pom's pluginmanagement

<plugins>
  <pluginManagement>
 ...

java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.