plugin « plugin « 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 » plugin » plugin 

1. Maven plugins for javascript    stackoverflow.com

Javascript code can be tough to maintain.
I am looking for tools that will help me ensure a reasonable quality level.
So far I have found JsUNit, a very nice unit ...

2. looking for best practice guidlines (or any guidelines) on using the jax-ws maven plugin    stackoverflow.com

My particular use case is using the wsimport goal (which basically maps to the jaxws wsimport.sh tool) to generate java code from wsdl. Looking for ideas on how others have ...

3. GOOD tutorial for writing Maven plugins?    stackoverflow.com

Can someone please recommend a GOOD online tutorial for writing maven2 plugins? I looked at about 5 tutorials yesterday and each skipped steps, didn't tell you where key components (referenced ...

4. Maven plugin executing another plugin    stackoverflow.com

I'm trying to create a new plugin to package my latest project. I'm trying to have this plugin depend on the maven-dependency-plugin to copy all my projects dependencies. I've added this ...

5. Alternate plugin executions in maven2?    stackoverflow.com

In the included configuration, does the "stop-jetty" execution inherit any configuration information from the outer "configuration" element? Will stopPort be 9999 in the "stop-jetty" execution even if I omit it from ...

6. Code generation in Maven    stackoverflow.com

I want to autogenerate some java classes from interfaces. My first thought was to write a code generator, and integrate it as a maven plugin. I was thinking of creating a maven ...

7. Maven plugin can't load class    stackoverflow.com

I'm trying to make a maven plugin that needs to use reflection. I want a project to run the plugin, and give it the full name of a class in the ...

8. How do I combine library code and a maven plugin in same project?    stackoverflow.com

Can I make a single maven project that can be included as a dependency (to reference Java classes inside) and executed as a plugin? I'm working on a library to help with ...

9. Maven Plugin to automatically generate setters/getters?    stackoverflow.com

Is there a Maven Plugin that will automatically generate setters and getters with the corresponding JavaDocs? I am aware that Eclipse/Netbeans will do this when you tell it to; however, it ...

10. maven javaee application client plugin    stackoverflow.com

I am pretty new to maven. Is there any plugin or packaging type suitable for building application client jar file ? I want to add the application-client.xml file to the META-INF folder ...

11. Integrating Maven reporting plugins    stackoverflow.com

I need to setup Maven plugins. I have downloaded the JARs. Can anyone please tell me what do I do next in order to integrate or setup the plugins with Maven? Should ...

12. How do I stop my command-line arguments being escaped in a maven plugin?    stackoverflow.com

I have a plugin that uses the Plexus Commandline to invoke some external process and capture the output. One of the arguments is in a funny format with spaces and quotes, ...

13. String arrays as command line arguments for maven plugin    stackoverflow.com

I'm writing a maven plugin that has a parameter that's a String[]. Like this:

/**
* @parameter expression="${args}"
*/
protected String[] args;
This can be utilized through the POM like this:
<args>
  <arg>arg1</arg>
  <arg>arg2</arg>
<args>
But I want ...

14. Plugin similar to dashboard    stackoverflow.com

I'm looking for a plugin that will aggregate various reports from our maven project (which consists of many modules). I was using dashboard maven plugin but it doesn't seem to be ...

15. How do I execute a set of goals before my Maven plugin runs?    stackoverflow.com

I'm writing a Maven plugin (Mojo) that needs to execute a standard set of other plugin executions before it is run. Is there a mechanism to declare all the goals within my ...

16. Configure Maven plugins to stick together    stackoverflow.com

I have parent pom which configures certain plugins

<pluginManagement>
   </plugins>
      <plugin>
         <artifactId>gmaven-plugin</artifactId>
      ...

17. Using output of maven assembler plugin as input to plugin    stackoverflow.com

I have a number of maven projects which build various components of a plugin framework for a 3rd party application. I have a master project which, using aggregation (<modules> element), includes ...

18. XML DTD/Schema validation maven plugin    stackoverflow.com

Does anyone knows maven plugin that validate xml documents against DTD or Schema and generates reports?

19. Maven Plugins - how to require a license    stackoverflow.com

I would like to make my plugin require a license to run similar to the maven clover plugin. Is there some utility out there that I can generate licenses with ...

20. Ice grid plugin for maven    stackoverflow.com

Does anyone know if there is an Ice grid plugin for Maven2? Currently I will have to call an Ant task from Maven as follows: http://maven.apache.org/plugins/maven-antrun-plugin/usage.html

21. Maven plugin for gathering source code statistics    stackoverflow.com

Our project is based on J2EE and we would like to know if there is a open source maven-plugin which either integrates with cloc (Refer http://stackoverflow.com/questions/1353631/source-code-statistics) or other tools?

22. maven plugin newer updates    stackoverflow.com

Is there a mechanism to track maven plugin version updates automatically. Since most of the time in dependencyManagement you hard-wire the version numbers for every plugin. Is there an administrative command ...

23. Maven: use common/shared plugins when working with multiple profiles    stackoverflow.com

I have a project that is using several profiles. Each profile uses following plugins:

  • maven-compiler-plugin
  • maven-resources-plugin
  • maven-antrun-plugin
  • maven-surefire-plugin
  • maven-war-plugin
The one marked in bold is however the only plugin where there is a difference between the profiles ...

24. Best "General Purpose" Maven plugins    stackoverflow.com

We are just moving to Maven, and I understand there is a world of different plugins & extensions. Which are the best ones you recommend for general usage? (On plugin per answer ...

25. Which Maven Plugin did you write by yourself?    stackoverflow.com

that is not available on public repository. Why or for what purpose did you write it?

26. unit-testing maven plugins    stackoverflow.com

I'm looking for information about how to write unit tests for Maven plugins. Although there's a page on the Maven site about this topic, there's only one example unit ...

27. Maven animal sniffer plugin    stackoverflow.com

I'm trying to use the animal sniffer Maven plugin to verify that code is compatible with JDK1.4. The following configuration works:

  <plugin>
    <groupId>org.jvnet</groupId>
    <artifactId>animal-sniffer</artifactId>
 ...

28. Failed to load late-bound plugin: org.apache.maven.plugins:maven-resources-plugin    stackoverflow.com

We have our local Maven repository which was working fine till yesterday. Today we are getting the following error while building any project.

Failed to load late-bound plugin: org.apache.maven.plugins:maven-resources-plugin
We haven't change any settings. ...

29. Maven Plugin - are plugins executable within plugins?    stackoverflow.com

Is it possible to execute a plugin from a plugin? For instance, if I want to programmatically call another plugin from within a plugin, not via static XML. Is this possible, ...

30. maven plugin goals    stackoverflow.com

I'm developing a Maven plugin that will have provide 5 goals. You can either execute goals 1-4 individually, or execute goal5, which will execute goals 1-4 in sequence. I've been looking ...

31. Download all Maven plugins    stackoverflow.com

Is there an easy way to download all the official Maven plugins (http://maven.apache.org/plugins/index.html) with one command? I'm setting up an offline repository for use within a corporate environment and I wanted to ...

32. Useful maven plugins    stackoverflow.com

Possible Duplicate:
Best “General Purpose” Maven plugins
Which are some of the most useful (and maybe not so well-known) maven plugins that you've used? Time and ...

33. Will the was6 plugin for maven work with WAS 7    stackoverflow.com

From what I can find there is no specific maven plugin for WAS 7, so I am wondering if the was6-maven-plugin will work with the newer version of the server.

34. Is there any XML lint maven plugin?    stackoverflow.com

I'm trying to validate my XML resources during maven build cycle. Is there any plugin for this purpose, or I should use ant + xmllint manually?

35. Running the same plugin multiple times in Maven    stackoverflow.com

I'm using maven-minify-plugin. It can produce only one output file. I need to produce two minified js files. One from one set of files, the other from another set of files. Can ...

36. Maven RPM Plugin does not generate the scriptlets specified    stackoverflow.com

I am trying to create an rpm package with the help of the rpm-maven-plugin. All goes well until I try to have it generate the %pre scriptlet (or any scriptlet for that ...

37. Maven trinidad plugin (fitnesse) How to add java.library.entry    stackoverflow.com

I try to run some fitnesse fixtures (slim) within our build system (eclipse with maven). To run the tests within the IDE I'm trying to do this with the trinidad plugin. ...

38. Is there any maven plugin that sends HTTP requests and validates results?    stackoverflow.com

I'm trying to find a maven plugin that sends a HTTP request to the URL specified, parses response against some regular expression, and fails build if the matching fails. Do you ...

39. Maven plugin to convert tabs to spaces    stackoverflow.com

Do you know a maven plugin to convert at buildtime tabs to spaces in source files ? (as in AnyEdit Eclipse Plugin)

40. How is Maven's support for other languages, as well as writing plugins to support other languges?    stackoverflow.com

I recently asked about a maven like tool for other languages but there hasn't been any responses (except for a few upvotes :). Given that, I've decided that maybe using ...

41. Maven plugin classloading    stackoverflow.com

could please anybody explain how the Core Classloader is loading resources when for instance surefire test plugin is used? What I'd especially need to know is the order in ...

42. How do I tell what a Maven plugin does?    stackoverflow.com

I've been given the task of speeding up a large maven build, and while I've worked with Ant quite a bit I'm new to Maven. Looking through the various pom.xml files I ...

43. Maven template plugin?    stackoverflow.com

I've looked and I can't seem to find a standalone maven plugin that one could use to generate files with Maven. I've seen a couple of projects that look like they ...

44. how to change maven plugin's scope    stackoverflow.com

i m using maven-jetty-plugin for my integration test, and it kept complaining

java.lang.ClassNotFoundException: org.slf4j.Logger
i tried search for the war file in my target folder, in WEB-INF/lib folder no slf4j-api-XX.jar was found ...

45. Which software installer plugin for Apache Maven do you recommend?    stackoverflow.com

For Apache Maven I have found a izpack plugin and a NSIS plugin (for Win32). Are there other Maven plugins available which allow to create software installers ...

46. Developing Maven 3.0 Plugin    stackoverflow.com

I have developed few Maven plugins for Maven 2, but I am wondering what are the main changes when I want to develop a plugin (or migrate the existing ones) for ...

47. JGoodies Maven plugin NullPointerException    stackoverflow.com

I am doing a JGoodies GUI application using maven. The program successfully run on any idea, but when I created executible jar file with dependencies, jar file is also created successfully ...

48. Setup of maven plugin for using QueryDSL with a MySQL database    stackoverflow.com

I'm trying to setup my project so that I can use querydsl-sql against a MySQL database. I'd like to get the classes and generate the classes using maven and am having problems ...

49. Looking for Webstart Maven Plugin sample application    stackoverflow.com

I am looking for source code for a complete application that uses the Webstart Maven Plugin. Any ideas?

50. Maven Perforce plugin suddenly requires a password?    stackoverflow.com

In my pom.xml I have:

<scm>
    <connection>scm:perforce://path_to_my_repository</connection>
</scm>
This has worked fine until recently. Now when I build I receive the following message:
"password is required for the perforce scm plugin."
The ...

51. Where to find a real-life example of a Maven plugin for maven-plugin-api 3.0?    stackoverflow.com

Where can I find a complete example of a Maven plugin written for maven-plugin-api 3.0? Preferably with unit and integration tests.

52. Customizing Maven Reporting Plugins for a Confluence Wiki    stackoverflow.com

I've developed a Maven reporting plugin for internal use at our company. It's designed to work in standalone mode so that it can be run against a given project without ...

53. conditionally execute maven plugins    stackoverflow.com

I have some Maven plugins configured in my pom.xml. I only want to execute these plugins if the tests are being run (tests may be skipped using either -Dmaven.test.skip=true or -DskipTests). One ...

54. Alter settings.xml from a maven plugin    stackoverflow.com

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

55. How maven plugin can aggregate information from sub-modules?    stackoverflow.com

I'm trying to develop Maven-3 reporting plugin that will have an aggregate option. When this option is set to true the plugin has collect data from sub-modules and build a report ...

56. where does maven store the plugins after downloading?    stackoverflow.com

Is it also in the .M2\repository?

57. What is the mechanism of the maven plugin    stackoverflow.com

For example, does maven compiler plugin simply start a process to execute javac command when executing?

58. Building apache Geronimo Plugin with the car-maven-plugin    stackoverflow.com

I am trying to develope a Apache Geronimo 2.2.1 plugin, and need to use Maven 3.0 to build it. I have used these two documentations to get started with developing plugins:

59. In Maven, can I inject project classes as a dependecy into plugin?    stackoverflow.com

Is it possible to have a plugin depend on the classes of the local project (after the compile phase, of course)? In other words, can I add ./target/classes to the classpath of ...

60. Exception happens when using maven datanucleus plugin    stackoverflow.com

When I use maven datanucleus plugin. When I run "mvn datanucleus:schema-create", the following exception happens. Does anyone know what's wrong?

ERROR] BUILD ERROR
INFO] ------------------------------------------------------------------------
INFO] The DataNucleus tool org.datanucleus.store.rdbms.SchemaTool exited with a
non-null exit ...

61. Is a Maven plugin able to bootstrap itself?    stackoverflow.com

I created a Maven plugin able to generate changelogs and various other information from a project's Git repository. It's called Mavanagaiata and is available from Maven Central (and the ...

62. How to execute custom Maven plugin from TeamCity    stackoverflow.com

I want to execute Custom Maven plugin after clicking on custom button in TeamCity. Does anybody has any solution? Please help me.

63. Maven JarJar Plugin: Exclude 'provided' scope?    stackoverflow.com

Is there a way to have the Maven JarJar plugin exclude items in the 'provided' scope? This seems pretty straightforward... if something is provided, why would I want to include it ...

64. Weblogic maven plugin with ssl problem    stackoverflow.com

I am now trying to use oracle weblogic maven plugin to deploy an application to an admin server with administration port. I am using t3s protocol to connect but I am wondering ...

65. Maven - run plugin once per profile    stackoverflow.com

I have one Maven module responsible with building some docs out of several other modules (wars). All works fine -> at build i combine several plugins like javadoc, wadl, assembly, etc. ...

66. maven: how to prevent plugin updates    stackoverflow.com

Similar to this question, I can't do a glassfish deploy because some server in Australia is down at the moment. I've had the artifacts cached locally for months. How can I ...

67. Maven plugin to execute other plugins?    stackoverflow.com

Is there a maven plugin that executes other maven plugins? I swear there was one and now I can not find it. Thanks!

68. Maven glass fish plug-in problem    stackoverflow.com

Normally I would just go to the java.net site and look up what the error code I am getting is about but their web site is currently offline. Basically I am ...

69. java obfuscators with maven plugin support    stackoverflow.com

I am looking for a java obfuscator with maven-plugin support? We tried using ProGuard but we ran into some runtime issues which doesn't happen if you don't obfuscate. Are there any ...

70. Maven-release-plugin and builder-helper plugin    stackoverflow.com


I guess i am missing something..
I want to make a release of my project.
I added maven-release-plugin to my pom. In addition, i have another source code dir aside ...

71. Issue in plugin(maven-enforcer-plugin) download from nexus    stackoverflow.com

Facing issue when try to fix corrupted plugin to rebuild. giving error as below. Using- Sonatype Nexus™ Open Source Edition, Version: 1.8.0.1 ========================================================================

Caused by: org.apache.maven.plugin.version.PluginVersionNotFoundException: The plugin    'org.apache.maven.plugins:maven-enforcer-plugin' does not ...

72. usage of maven enforcer plugin    stackoverflow.com

I'd like to use the maven enforcer plugin to check to see if I have duplicate classes on my path. I've tried the example from here. But when I run ...

73. Maven: Multiple plugins invoking multiple lifecycles    stackoverflow.com

I've been using maven for quite some time (years), so it's surprising to me that I've never come across this issue before, or at least have some way of dealing with ...

74. How do you get the soapUI maven plugin to fail safe?    stackoverflow.com

AFAIK, the maven failsafe plugin fails safe because it has separate goals for running the tests and failing the build based on the tests. These are designed to be bound ...

75. Custom Plugin to add customized behavior    stackoverflow.com

I am fairly new to Maven; read a few tutorials for a day and have written a custom plugin which does what I want it to do. The plugin that I ...

76. Maven EAR Plugin    stackoverflow.com

I started using the maven ear plugin about 12 months ago and want to find out if there are any alternatives. One of the benefits of Maven is the dependency management ...

77. Password encryption with liquibase maven plugin    stackoverflow.com

Currently i am using liquibase maven plugin for database changes and my database credentials are in plain text format in .m2/settings.xml. By using mavens password encryption, i want to encrypt database ...

78. Make Maven list all plugins used?    stackoverflow.com

How do I make Maven generate a list of all of the plugins that it recognizes?

79. Maven2 + native maven plugin    stackoverflow.com

My issue is pretty easy : I tried to compile an c standalone project for my companie. For that need, i installed the native maven plugin. In output, i expect ...

80. How to get a maven reporting plugin to generate report with the doxia API?    stackoverflow.com

I've been trying to write my own maven reporting plugin to generate info about tests when running 'mvn site'. The file test_report.html is created by the code below, but the page does ...

81. wro4j maven plugin and jshint    stackoverflow.com

I have just tried to use the wro4j maven plugin to get my js checked using jshint on build time. I have configure the options used by jshint, and the console lists ...

82. Maven Plugin Development - how to make maven block until execute completes    stackoverflow.com

I've have some java code that starts a web server and listens for requests. I'd like to start the web server from a custom maven plugin goal. This works fine (starts ...

83. ClassNotFound exception while using the Maven Shade Plugin    stackoverflow.com

I am trying to follow this link: http://maven.apache.org/plugins/maven-shade-plugin/examples.html I am new to Maven. I feel a bit out of depth trying to follow the example. I am able to get Quartz Scheduler ...

84. turn off maven plugin from commandline    stackoverflow.com

In pom.xml I have declaration like this

    <plugin>
            <groupId>org.apache.maven.plugins</groupId>
         ...

85. Variables not expanded in Maven plugin    stackoverflow.com

In my maven plugin I have the following:

    <dependencySets>
            <dependencySet>
        ...

86. maven plugin to seach?    stackoverflow.com

Are there any maven plugins that will search for artifacts? By artifactId would be great. Ideally, I'd like to be able to plugin in artifactId and have it come back with full ...

87. Maven plugin loading classes    stackoverflow.com

I have an application which has legacy Struts actions extending org.apache.struts.StrutsActions. I would like to be sure that all my classes which are extending StrutsActions have a custom annotation. In order ...

88. In a Maven multi-module project, how can I disable a plugin in one child?    stackoverflow.com

I have a maven multi-module project (boy, I've written that opening way too many times on this site). Almost all the modules (that is, the ones that have code in ...

89. Maven plugin additional executions    stackoverflow.com

I need to execute the same maven plugin more than once in the same phase. What I want:

  1. Execute maven-assembly-plugin
  2. Execute myplugin (depends on step 1)
  3. Execute maven-assembly-plugin again (depends on step 2)
  4. Execute myplugin again ...

90. c# Generate c# code before compilation/buil (Like maven plugin in java)    stackoverflow.com

I have a projet in c# .net.
I need to hook the "pre build" event so I can run a c# class that will generate other c# class to the same project.
I ...

92. No plugin found for prefix 'maven-rar-plugin'    stackoverflow.com

    [ERROR] No plugin found for prefix 'maven-rar-plugin' in the current project and in the plugin groups [org.apache.maven.plugins, org.co
dehaus.mojo] available from the repositories [local (D:\sunguo\.m2\repository), central (http://repo1.maven.org/maven2)] -> ...

93. Launch4j maven plugin will not work on 64-bit linux machine    stackoverflow.com

I am trying to use the maven Launch4j plugin version 1.5.0.1 When I build the pom on my windows box, there is no issue (my windows box has both 32-bit and 64-bit ...

94. How to fork the JVM process that each invocation of a maven plugin runs in?    stackoverflow.com

I am using a code generation plugin (maven-jnaerator-plugin) in a multi-module (aggregator) maven project. Two of the modules need to run the code generation. However, only the first module ...

95. Best Maven FOP plugin?    stackoverflow.com

I need to transform some xml into html and pdf formats as part of a maven build and am just wondering what plugins people are using out there?

96. maven mixing reporting plugin order    stackoverflow.com

In my maven pom I need to run two reporting plugins and a build plugin but in this order: reporting plugin 1 (changelog) build plugin ...

97. 6.0 EE and Maven Plugin    liferay.com

98. New Liferay Maven Plugin    liferay.com

Hi, I am not an expert on maven but since today the first version of the new maven implementation of the plugins sdk (with ext and hook) was released i wanna give this a try and some feed back to the author... I downloaded the file from here: https://github.com/mikakoivisto/liferay-maven-incubation/ Installation of the archetypes worked quite well but everything seems to be ...

99. Manually downloading Maven plugin    forums.oracle.com

The basic conflict we have is that our web proxy doesn't allow us to download .jar files with the regular servers. I can download .jar files only on a special reserved connection on a laptop off our regular LAN. The machine I'm trying to install on is behind such a restriction. And, of course, Maven hates not being allowed to download ...

100. Maven Plugin classpaths    forums.oracle.com

My experience is limited to Maven 1, where I learned (from examining other plugins) that a plugin's own classpath is separate from the dependency classpath. I had to look at some of the other plugins -- AOP, I think -- to see examples where the plugin accessed the dependency classpath. I would suspect that Maven 2 also maintains separate classpaths, and ...

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.