Setup Java Library
| This documentation was generated with the assistance of AI. Please report any inaccuracies. |
Generate pom.xml at the repository root for a new Java library from an explicit, genericized example template,
and scaffold the standard Maven source layout for the library’s base package.
Purpose
iru-setup-java-library bootstraps a new Java/Maven library’s pom.xml from a house template embedded in the skill
itself — the same test dependencies (junit-jupiter, junit-platform-launcher, mockito-core,
mockito-junit-jupiter), the same sign/build-extras profiles, and the same build/reporting plugins, with only
the project-identity fields filled in per repository. It also creates the src/main/java/<package>,
src/main/resources/<package>, and src/test/java/<package> folders for the library’s base package.
Inputs
| Argument | Required | Description | Default |
|---|---|---|---|
|
No |
Pre-resolved parameters passed by an orchestrating skill (e.g. Setup Java Library Repository)
as newline-separated |
None — if absent or unrecognized, every field is asked interactively. |
groupId |
Yes (unless supplied via |
Maven groupId, e.g. |
None |
artifactId |
Yes (unless supplied via |
Maven artifactId, e.g. |
None |
version |
No |
Project version. |
|
Library package |
Yes (unless supplied via |
Base Java package for the library’s main source (need not equal groupId), used for the
|
None |
Developer name / email / organizationUrl |
Yes (unless supplied via |
Populates the |
None |
License |
Yes (unless supplied via |
Resolved via |
None — user must choose |
Outputs
-
pom.xmlat the repository root, generated fresh or entirely replaced if one already existed and the user chose to continue. -
src/main/java/<package>,src/main/resources/<package>, andsrc/test/java/<package>created if not already present (empty directories won’t show up ingit statusuntil they contain a file). -
A report of the resolved groupId/artifactId/version, the license chosen (or "none"), the inferred repository information, and which source folders were created versus already present — plus an explicit warning to review the generated
pom.xmlbefore building or committing.
Execution flow
Dependencies
Invokes
None — iru-setup-java-library is a leaf skill; it does not call any other skill in this catalog.
Invoked by
-
Setup Java Library Repository — Step 3 runs
iru-setup-java-libraryfirst, passing the pre-resolved groupId, artifactId, package, developer name/email/organizationUrl, and license viaargsaskey: valuelines so this skill’s own Step 2 questions are skipped and the user isn’t asked twice.
Source
SKILL.md on GitHub — the file this page was generated from.