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

1. Restricting Java maven plugin configuration parameters    stackoverflow.com

I’m writing a maven plugin with a number of configurable parameters. There are a number of parameters specified in the Mojo class. One of these parameters is required and must contain ...

2. How to configure defaults for a parameter with multiple values for a Maven plugin    stackoverflow.com

I'm writing a Maven plugin and I am using default values for all parameters such as this:

/**
 * The file with the site structure.
 * 
 * @parameter expression="${generateSite.siteFile}" default-value="${basedir}/src/oda/site.xml"
 */
private ...

3. Simple Maven Mojo Plug-in: Boolean parameter    stackoverflow.com

This should be simple - I think I'm just overlooking something. I have a simple Mojo:

package com.company.product.plugins;

import org.apache.maven.plugin.AbstractMojo;
import org.apache.maven.plugin.MojoExecutionException;

/**
 * @goal diff
 */
public class CCDiffMojo extends AbstractMojo {

   ...

4. How to pass parameters to guicified TestNG test from Surefire Maven plugin?    stackoverflow.com

I'm using Maven + Surefire + TestNG + Guice (latest stable ones) I have "large" test that requires Guice to run. Basically I'm doing it this way:

@Test(groups = "large")
@Guice(modules = FooLargeTest.Module.class)
public class FooLargeTest ...

5. Having a map as a Maven plugin parameter    stackoverflow.com

I am using maven 3 and I want to pass in a type Map as a parameter. I have this in my mojo at the moment:

/**
 * @parameter expression="${rep.env}" alias="environments"
 * @required
 ...

6. Maven plugin complex parameter initialization via system properties    stackoverflow.com

I need to run maven plugin from console. In plugin i need a complex parameter kind of:

/**
* @goal do-automation
**/
public class AutomationMojo extends AbstractMojo {

/**
 * The current maven project.
 *
 * ...

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.