## Synopsis
`ceylon p2 [--cacherep=<url>] [--categories=<categories>] [--category-prefix=<category-prefix>] [--cwd=<dir>] [--maven-overrides=<url>] [--no-default-repositories] [--offline] [--out=<url>] [--overrides=<url>] [--pass=<secret>] [--rep=<url>...] [--repository-name=<repository-name>] [--sysrep=<url>] [--timeout=<seconds>] [--user=<name>] [--verbose[=<flags>]] [--] <module...>`

## Description
This is EXPERIMENTAL Given a list of modules, and optionally a category file and prefix, this tool generates `content.xml` and `artifacts.xml` files in the output directory, and packs the folders in `${output}/features/*` into jars.

## Options
`--cacherep=url` | Specifies the folder to use for caching downloaded modules. (default: `~/.ceylon/cache`)
`--categories=categories` | Specify a `categories.xml` file to be used for the list of categories
`--category-prefix=category-prefix` | Specify the prefix for categories, for example if you have a category named 'x' and a prefix of 'com.foo.bar' we will generate a unit named 'com.foo.bar.x' for your category
`--cwd=dir` | Specifies the current working directory for this tool. (default: the directory where the tool is run from)
`--maven-overrides=url` | Specifies the XML file to use to load Maven artifact overrides. See http://ceylon-lang.org/documentation/current/reference/repository/maven/ for information. Deprecated: use --overrides.
`--no-default-repositories` | Indicates that the default repositories should not be used.
`--offline`, `-L` | Enables offline mode that will prevent connections to remote repositories.
`--out=url`, `-o url` | Specifies the output module repository (which must be publishable). (default: `./modules`)
`--overrides=url` | Specifies the XML file to use to load module overrides. See http://ceylon-lang.org/documentation/current/reference/repository/maven/ for information. Experimental.
`--pass=secret` | Sets the password for use with an authenticated output repository (no default).
`--rep=url` | Specifies a module repository containing dependencies. Can be specified multiple times. (default: `modules`, `~/.ceylon/repo`, `https://modules.ceylon-lang.org/repo/1`)
`--repository-name=repository-name` | Specify an output repository name
`--sysrep=url` | Specifies the system repository containing essential modules. (default: `$CEYLON_HOME/repo`)
`--timeout=seconds`, `-T seconds` | Sets the timeout for connections to remote repositories, use 0 for no timeout (default: 20).
`--user=name` | Sets the user name for use with an authenticated output repository (no default).
`--verbose[=flags]`, `-d` | Produce verbose output. If no `flags` are given then be verbose about everything, otherwise just be verbose about the flags which are present. Allowed flags include: `all`, `loader`.