Skip to content

Commit 4addba6

Browse files
committed
Refresh site docs and turn the container guides into a migration guide
The container tutorials and guides keep their addresses but now point to the replacements (Eclipse Sisu, plexus-testing, maven-plugin-testing) through guides/migrating-from-plexus-container.
1 parent 2cf0ffe commit 4addba6

41 files changed

Lines changed: 375 additions & 3215 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎AGENTS.md‎

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# Agent guide for codehaus-plexus.github.io
2+
3+
This repository is the source of the Codehaus Plexus organization site at
4+
<https://codehaus-plexus.github.io/> (`org.codehaus.plexus:plexus-site`, `pom` packaging). It has no
5+
Java code and no test suite. Pages are Markdown under `src/site/markdown`: the overview
6+
(`index.md`), `get-involved.md`, and the retired Plexus container documentation under `guides/` and
7+
`ref/`. `src/site/site.xml` defines the menu, and `apt-old/`, `src/site/xdoc` and `src/site/old`
8+
hold older material that is not rendered. The published URLs of the container guides are linked
9+
from a lot of external writing: do not move, rename or delete a page, and do not change its
10+
headings. The container tutorials are short notes that point to
11+
`guides/migrating-from-plexus-container.md`; put new migration advice there, not in the old pages.
12+
13+
## Build and test
14+
15+
- Run `mvn site` to render the site into `target/site`. The reports configured in the POM are the
16+
`maven-project-info-reports-plugin` team, issue-management, licenses and scm reports.
17+
- The site is the organization page, so `maven-scm-publish-plugin` publishes it to the `master`
18+
branch (`scmBranch` in the POM), not to `gh-pages`. `mvn site-deploy` does that; the
19+
`site.yml` workflow runs the same publish through the shared `codehaus-plexus/.github` site
20+
workflow, and its `dry-run` input builds without committing. Publishing steps are in
21+
`RELEASING.md` of that shared repository.
22+
- `.github/workflows/maven.yml` calls the shared `codehaus-plexus/.github` build workflow (the
23+
default `mvn verify javadoc:javadoc` on the shared JDK and operating system matrix) and then the
24+
shared deploy workflow.
25+
- Run `mvn spotless:apply` on JDK 17 to 21 before pushing; it also formats Markdown.
26+
27+
## Documentation updates
28+
29+
A change that users or contributors can notice ships with the documentation it affects, in the
30+
same pull request. A refactor with no visible effect needs none.
31+
32+
- A library gets a new site, is retired, or changes its one-line description: the matching entry in
33+
`src/site/markdown/index.md`, under Libraries, Components, Tooling or Retired.
34+
- A page is added or removed: the menu in `src/site/site.xml`.
35+
- The way the site is built or published: `README.md` and the Build and test section of this file.
36+
- A new convention, build gate or fixture: this file.
37+

‎README.md‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Codehaus Plexus site
22

3-
This repository holds the source for the [Codehaus Plexus organization site](https://codehaus-plexus.github.io/), including the component index and reference pages.
3+
This repository holds the source of the [Codehaus Plexus organization site](https://codehaus-plexus.github.io/):
4+
the list of Plexus libraries, with a link to each project site, and the documentation of the retired
5+
Plexus container. Each library publishes its own site from its own repository.
46

5-
Maintainers publish the site as described in [RELEASING.md](https://github.com/codehaus-plexus/.github/blob/master/RELEASING.md) in the shared `.github` repository.
7+
Run `mvn site` to render the site into `target/site`. Maintainers publish it as described in
8+
[RELEASING.md](https://github.com/codehaus-plexus/.github/blob/master/RELEASING.md) in the shared
9+
`.github` repository. Contributor notes are in [AGENTS.md](AGENTS.md).

‎src/site/markdown/guides/developer-guide/appendices/javadoc-tags-reference.md‎

Lines changed: 4 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -6,43 +6,18 @@ author:
66
date: 2006-07-09
77
---
88

9-
`The contents of this document are a work in progress`
10-
119
# Javadoc Tags used by Plexus tools
1210

13-
Here is a reference of the Javadoc annotations that can be used to 'decorate' the Java sources to allow Plexus tools like Component Descriptor Creator (CDC) to generate Component Descriptors.
14-
15-
|**Tag/Annotation**|**Available on**|**Required**|**Descriptor Element**|
16-
|---|---|---|---|
17-
|[@plexus.component](#@plexus.component)|Class|Yes|Indicate to Plexus CDC that the class is a component|
18-
|[@plexus.configuration](#@plexus.configuration)|Field|No|Tell Plexus CDC that this item should be configured through the `components.xml`|
19-
|[@plexus.requirement](#@plexus.requirement)|Field|No|Indicate to Plexus CDC that the field is required by the component|
11+
The Plexus container is retired and archived, so this page no longer carries the instructions it once had. It stays at this address because other sites link to it. The original page listed the Javadoc tags read by the Component Descriptor Creator.
2012

2113
# @plexus.component
2214

23-
The `@plexus.component` tag is used to show that the class it annotates is a plexus component. This will add a `<component`\> element to the `<components`\> in components.xml. The following parameters are available, but remember the `role` is required. The text in the javadoc tag describing this class is copied into the component's `<description`\> tag.
24-
25-
|**Parameter**|**Required**|**Description**|
26-
|---|---|---|
27-
|role|Yes|The role that this class provides an implementation for (usually the class name of an implemented Interface|
28-
|role-hint|No|The hints are used to differentiate multiple implementations of the same role|
29-
|version|No|Set the version of the component|
15+
Replaced by [Components and injection](/guides/migrating-from-plexus-container.html#Components_and_injection) and [Component index](/guides/migrating-from-plexus-container.html#Component_index).
3016

3117
# @plexus.configuration
3218

33-
The `@plexus.configuration` tags are used to mark fields in a class for configuration through the `components.xml`.
34-
35-
|**Parameter**|**Required**|**Description**|
36-
|---|---|---|
37-
|default-value|Currently|The default values are currently required for the `<configuration`> tag to be written to `components.xml`.|
19+
Replaced by [Configuration](/guides/migrating-from-plexus-container.html#Configuration).
3820

3921
# @plexus.requirement
4022

41-
Tagging a field with `@plexus.requirement` will tell plexus to inject the required component or list of components before the component itself is started. Fields can be of the type of the Interface defining the component you wish to be injected or of type `java.util.List` or `java.util.Map`.
42-
43-
Fields of type `java.lang.List` will have a list of components injected whereas a field of type `java.lang.Map` will have a mapping in the form of `role-hint -> component`. The `role` parameter is required if using a `List` or `Map` whereas a role-hint is not allowed.
44-
45-
|**Parameter**|**Required**|**Description**|
46-
|---|---|---|
47-
|role|No. Yes if the field is a `List` or a `Map`|The role parameter is used to tell plexus what Component role you are interested in. For singleton fields their type is used as a default.|
48-
|role-hint|No. Not allowed if the field is a `List` or a `Map`|Links to the role-hint defined by a component when looking up a component. Not allowed with `List` or `Map` fields, as they return all `role-hint`s.|
23+
Replaced by [Components and injection](/guides/migrating-from-plexus-container.html#Components_and_injection).

‎src/site/markdown/guides/developer-guide/building-applications/cdc.md‎

Lines changed: 4 additions & 100 deletions
Original file line numberDiff line numberDiff line change
@@ -6,114 +6,18 @@ author:
66
date: 2006-07-09
77
---
88

9-
`The contents of this document are a work in progress`
10-
119
# Plexus Component Descriptor Creator
1210

13-
**NOTE: This document and the CDC itself is currently a work in progress.**
14-
15-
The Component Descriptor Creator (or CDC for short) is a tool that will create the `components.xml` file from your Java code. It uses JavaDoc tags to gather the information it needs to create the component descriptor.
16-
17-
There is a tag for marking components, requirements and configuration. Each of the tags can have parameters as documented below.
11+
The Plexus container is retired and archived, so this page no longer carries the instructions it once had. It stays at this address because other sites link to it. The original page described the Javadoc tags that generated `components.xml`.
1812

1913
## Component Tag Parameters
2014

21-
|**Tag**|**Required**|**Description**|
22-
|---|---|---|
23-
|role|y|The role of the component.|
24-
|role-hint|n|The role-hint of the component.|
25-
|version|n|The component version.|
26-
|lifecycle-handler|n|The lifecycle handler of the component. _TODO: link to the different lifecycle handlers_|
27-
|instantiation-strategy|n|The instantiation strategy of the component. _TODO: link to the different instantiation strategies_|
28-
29-
<!-- TODO: This line will be incorrectly render the *name* of the table as well -->
30-
<!-- as the caption -->
31-
<!-- [plexus-component-tags] Plexus Component Tag Parameters -->
32-
33-
```
34-
package org.foo;
35-
36-
/**
37-
* @plexus.component
38-
* role="com.foo.ActionManager"
39-
* lifecycle-handler="plexus-configurable"
40-
*/
41-
public class DefaultActionManager
42-
extends AbstractLogEnabled
43-
implements ActionManager, Serviceable
44-
{
45-
```
46-
47-
<!-- [example-class-tags] Example Component Tag -->
48-
This will be generated in component.xml:
49-
50-
```
51-
<component>
52-
<role>org.foo.ActionManager</role>
53-
<implementation>org.foo.DefaultActionManager</implementation>
54-
<lifecycle-handler>plexus-configurable</lifecycle-handler>
55-
</component>
56-
```
15+
Replaced by [Components and injection](/guides/migrating-from-plexus-container.html#Components_and_injection) and [Component index](/guides/migrating-from-plexus-container.html#Component_index).
5716

5817
## Requirement Tag Parameters
5918

60-
These tags are used on fields to state requirements. TODO: it should be possible to override the role for a normal field.
61-
62-
|**Tag**|**Required**|**Description**|
63-
|---|---|---|
64-
|role|y/n|The role of the component. Only required if the field is a List or Map|
65-
|role-hint|n|The role-hint of the component.|
66-
67-
```
68-
/**
69-
* @plexus.requirement
70-
* role-hint="foo"
71-
*/
72-
private ActionManager actionManager;
73-
```
74-
75-
<!-- [example-requirement-tags] Example Requirement Tag -->
76-
This will be generated in component.xml:
77-
78-
```
79-
<component>
80-
<role>org.foo.MyComponent</role>
81-
<implementation>org.foo.MyComponentImplementation</implementation>
82-
<requirements>
83-
<requirement>
84-
<role>org.foo.ActionManager</role>
85-
<role-hint>foo</role-hint>
86-
<field-name>actionManager</field-name>
87-
</requirement>
88-
</requirements>
89-
</component>
90-
```
19+
Replaced by [Components and injection](/guides/migrating-from-plexus-container.html#Components_and_injection).
9120

9221
## Configuration Tag Parameters
9322

94-
Note that the default value tag won't be required in the future when these tags will be used to generate a separate configuration declaration section.
95-
96-
|**Tag**|**Required**|**Description**|
97-
|---|---|---|
98-
|default-value|y|Sets the default value for the configuration field|
99-
100-
```
101-
/**
102-
* @plexus.configuration
103-
* default-value="Trygve"
104-
*/
105-
private String name;
106-
```
107-
108-
<!-- [example-requirement-tags] Example Configuration Tag -->
109-
This will be generated in component.xml:
110-
111-
```
112-
<component>
113-
<role>org.foo.MyComponent</role>
114-
<implementation>org.foo.MyComponentImplementation</implementation>
115-
<configuration>
116-
<name>Trygve</name>
117-
</configuration>
118-
</component>
119-
```
23+
Replaced by [Configuration](/guides/migrating-from-plexus-container.html#Configuration).

0 commit comments

Comments
 (0)