atlas-create-fecru-plugin

This page describes the shell script atlas-create-fecru-plugin, part of the Atlassian Plugin SDK.

(info) There is a specific version of this shell script for each Atlassian application. The shell script described on this page is for FishEye and Crucible. Because these two applications share the same code base, you will use the same shell script to create your plugin for either application.

On this page:

Basic Usage

atlas-create-fecru-plugin [options] – Creates an example of a FishEye or Crucible plugin, which you can adapt to suit your own plugin's needs. (Runs mvn fecru:create.) Interpreted parameters: artifact-id, group-id, version, package, non-interactive.

Parameters

This shell script supports some interpreted parameters, specified below. All other parameters are passed straight through to Maven.

Explaining the table columns:

  • 'Full Parameter' and 'Shortened' – Some parameters allow you to choose a full or a shortened version of the parameter, others just support the full version.
  • 'Accepts a Value?' – 'Yes' means that you should specify a value in addition to the parameter, e.g. for the 'version' parameter you should specify the version number. 'No' means that the parameter does not accept a value.

Interpreted parameters:

Full Parameter

Shortened

Accepts a Value?

Description

--artifact-id

-a

Yes

Name of the project. This is an identifier for your plugin. It corresponds to the Maven artifactId. If you do not enter this value, the script will prompt you for it.

--group-id

-g

Yes

Identifier for the logical group of artifacts associated with the project. Will be used as the default value for package. Corresponds to the Maven groupId. If you do not enter this value, the script will prompt you for it.

--version

-v

Yes

Version of your plugin. Default is 1.0-SNAPSHOT. If you do not enter this value, the script will prompt you for it.

--package

-p

Yes

Name of the Java package that will contain the plugin source code. Default is the value given for group-id.

--non-interactive

No

If this parameter is present, interactive mode is turned off, so that the script will not prompt the user for input. In this case, the script will fail if you do not provide the artifact-id and group-id.

Getting Help

The shell script will display some help text if you enter one of the following as the first argument:

  • -?
  • -h
  • help
  • -help
  • --help

For example:

atlas-create-fecru-plugin -?
atlas-create-fecru-plugin -help

Examples

Let's assume you want to create a new FishEye or Crucible plugin skeleton. Simply open a command window, go to the directory where you want to create the plugin and type:

atlas-create-fecru-plugin

Let's assume you want to create a new FishEye or Crucible plugin by supplying all the necessary information to the script and allowing the package name to be the same as the group ID. Let's assume you do not want the script to prompt you for information. Type:

atlas-create-fecru-plugin --artifact-id myfooplugin --group-id com.mycompany.plugins --version 1.0 --non-interactive
RELATED TOPICS

Working with the SDK

Was this page helpful?

Have a question about this article?

See questions about this article

Powered by Confluence and Scroll Viewport