Skip to content

Commit

Permalink
[MPOM-483] Make a separate module for documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
slawekjaranowski committed Apr 13, 2024
1 parent 30d3a1d commit 1442171
Show file tree
Hide file tree
Showing 28 changed files with 177 additions and 134 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/maven-verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,5 @@ jobs:
build:
name: Verify
uses: apache/maven-gh-actions-shared/.github/workflows/maven-verify.yml@v4
with:
ff-site-goal: 'site'
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,7 @@ There are some guidelines which will make applying PRs easier for us:
[MPOM-XXX] - Subject of the JIRA Ticket
Optional supplemental description.
```
+ Make sure you have added the necessary tests (JUnit/IT) for your changes.
+ Run all the tests with `mvn -Prun-its verify` to assure nothing else was accidentally broken.
+ Update the [site documentation](https://maven.apache.org/pom/maven/) accordingly in `docs` and build it via `mvn site site:stage -f docs`
+ Submit a pull request to the repository in the Apache organization.
+ Update your JIRA ticket and include a link to the pull request in the ticket.

Expand Down
22 changes: 15 additions & 7 deletions doxia-tools/site-pom.xml → docs/doxia-tools/pom.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>

<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
Expand All @@ -18,28 +17,37 @@ KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>org.apache.maven</groupId>
<!-- we need to have a different gav for pom.xml and site-pom.xml -->
<!-- dot at the end is on purpose -->
<artifactId>maven-parent.</artifactId>
<artifactId>docs</artifactId>
<version>42-SNAPSHOT</version>
<relativePath>../site-pom.xml</relativePath>
</parent>

<groupId>org.apache.maven.doxia</groupId>
<artifactId>doxia-tools</artifactId>
<artifactId>doxia-tools-docs</artifactId>
<packaging>pom</packaging>

<name>Apache Maven Doxia Tools Parent POM</name>
<description>This project consists of a POM that contains settings that are likely to be useful to any Maven Doxia Tool that is building and releasing code with Maven.</description>
<url>https://maven.apache.org/pom/maven/doxia-tools</url>

<scm>
<url>https://github.com/apache/maven-parent/tree/${project.scm.tag}/doxia-tools</url>
</scm>

<issueManagement>
<system>jira</system>
<url>https://issues.apache.org/jira/projects/MPOM</url>
</issueManagement>

<distributionManagement>
<site>
<id>apache.website</id>
<url>scm:svn:https://svn.apache.org/repos/asf/maven/website/components/${maven.site.path}/doxia-tools</url>
</site>
</distributionManagement>

</project>
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -34,17 +34,7 @@ under the License.
<item name="Extensions" href="../maven-extensions/index.html"/>
<item name="Shared Components" href="../maven-shared-components/index.html"/>
<item name="Skins" href="../maven-skins/index.html"/>
<item name="Doxia Tools" href="../doxia-tools/index.html"/>
</menu>

<menu ref="reports" />

<menu name="ASF">
<item name="How Apache Works" href="https://www.apache.org/foundation/how-it-works.html"/>
<item name="Foundation" href="https://www.apache.org/foundation/"/>
<item name="Data Privacy" href="https://privacy.apache.org/policies/privacy-policy-public.html"/>
<item name="Sponsoring Apache" href="https://www.apache.org/foundation/sponsorship.html"/>
<item name="Thanks" href="https://www.apache.org/foundation/thanks.html"/>
<item name="Doxia Tools" href="index.html"/>
</menu>

</body>
Expand Down
25 changes: 16 additions & 9 deletions maven-extensions/site-pom.xml → docs/maven-extensions/pom.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>

<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
Expand All @@ -18,29 +17,37 @@ KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>org.apache.maven</groupId>
<!-- we need to have a different gav for pom.xml and site-pom.xml -->
<!-- dot at the end is on purpose -->
<artifactId>maven-parent.</artifactId>
<artifactId>docs</artifactId>
<version>42-SNAPSHOT</version>
<relativePath>../site-pom.xml</relativePath>
</parent>

<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-extensions</artifactId>
<artifactId>maven-extensions-docs</artifactId>
<packaging>pom</packaging>

<name>Apache Maven Extensions Parent POM</name>
<description>This project consists of a POM that contains settings that are likely to be useful to any Maven extension that is building and releasing code with Maven.</description>
<url>https://maven.apache.org/pom/maven/maven-extensions</url>

<scm>
<url>https://github.com/apache/maven-parent/tree/${project.scm.tag}/maven-extensions</url>
</scm>

<issueManagement>
<system>jira</system>
<url>https://issues.apache.org/jira/projects/MPOM</url>
</issueManagement>

<distributionManagement>
<site>
<id>apache.website</id>
<url>scm:svn:https://svn.apache.org/repos/asf/maven/website/components/${maven.site.path}/maven-extensions</url>
</site>
</distributionManagement>

</project>
Original file line number Diff line number Diff line change
Expand Up @@ -31,20 +31,11 @@ under the License.
<menu name="Maven Parent POMs">
<item name="Maven" href="../index.html"/>
<item name="Plugins" href="../maven-plugins/index.html"/>
<item name="Extensions" href="../maven-extensions/index.html"/>
<item name="Extensions" href="index.html"/>
<item name="Shared Components" href="../maven-shared-components/index.html"/>
<item name="Skins" href="../maven-skins/index.html"/>
<item name="Doxia Tools" href="../doxia-tools/index.html"/>
</menu>

<menu ref="reports" />

<menu name="ASF">
<item name="How Apache Works" href="https://www.apache.org/foundation/how-it-works.html"/>
<item name="Foundation" href="https://www.apache.org/foundation/"/>
<item name="Data Privacy" href="https://privacy.apache.org/policies/privacy-policy-public.html"/>
<item name="Sponsoring Apache" href="https://www.apache.org/foundation/sponsorship.html"/>
<item name="Thanks" href="https://www.apache.org/foundation/thanks.html"/>
</menu>
</body>
</project>
25 changes: 16 additions & 9 deletions maven-plugins/site-pom.xml → docs/maven-plugins/pom.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>

<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
Expand All @@ -18,29 +17,37 @@ KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>org.apache.maven</groupId>
<!-- we need to have a different gav for pom.xml and site-pom.xml -->
<!-- dot at the end is on purpose -->
<artifactId>maven-parent.</artifactId>
<artifactId>docs</artifactId>
<version>42-SNAPSHOT</version>
<relativePath>../site-pom.xml</relativePath>
</parent>

<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-plugins</artifactId>
<artifactId>maven-plugins-docs</artifactId>
<packaging>pom</packaging>

<name>Apache Maven Plugins Parent POM</name>
<description>This project consists of a POM that contains settings that are likely to be useful to any Maven plugin that is building and releasing code with Maven.</description>
<url>https://maven.apache.org/pom/maven/maven-plugins</url>

<scm>
<url>https://github.com/apache/maven-parent/tree/${project.scm.tag}/maven-plugins</url>
</scm>

<issueManagement>
<system>jira</system>
<url>https://issues.apache.org/jira/projects/MPOM</url>
</issueManagement>

<distributionManagement>
<site>
<id>apache.website</id>
<url>scm:svn:https://svn.apache.org/repos/asf/maven/website/components/${maven.site.path}/maven-plugins</url>
</site>
</distributionManagement>

</project>
Original file line number Diff line number Diff line change
Expand Up @@ -30,21 +30,12 @@ under the License.

<menu name="Maven Parent POMs">
<item name="Maven" href="../index.html"/>
<item name="Plugins" href="../maven-plugins/index.html"/>
<item name="Plugins" href="index.html"/>
<item name="Extensions" href="../maven-extensions/index.html"/>
<item name="Shared Components" href="../maven-shared-components/index.html"/>
<item name="Skins" href="../maven-skins/index.html"/>
<item name="Doxia Tools" href="../doxia-tools/index.html"/>
</menu>

<menu ref="reports" />

<menu name="ASF">
<item name="How Apache Works" href="https://www.apache.org/foundation/how-it-works.html"/>
<item name="Foundation" href="https://www.apache.org/foundation/"/>
<item name="Data Privacy" href="https://privacy.apache.org/policies/privacy-policy-public.html"/>
<item name="Sponsoring Apache" href="https://www.apache.org/foundation/sponsorship.html"/>
<item name="Thanks" href="https://www.apache.org/foundation/thanks.html"/>
</menu>
</body>
</project>
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>

<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
Expand All @@ -18,29 +17,37 @@ KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>org.apache.maven</groupId>
<!-- we need to have a different gav for pom.xml and site-pom.xml -->
<!-- dot at the end is on purpose -->
<artifactId>maven-parent.</artifactId>
<artifactId>docs</artifactId>
<version>42-SNAPSHOT</version>
<relativePath>../site-pom.xml</relativePath>
</parent>

<groupId>org.apache.maven.shared</groupId>
<artifactId>maven-shared-components</artifactId>
<artifactId>maven-shared-components-docs</artifactId>
<packaging>pom</packaging>

<name>Apache Maven Shared Components Parent POM</name>
<description>This project consists of a POM that contains settings that are likely to be useful to any Maven Shared Component that is building and releasing code with Maven.</description>
<url>https://maven.apache.org/pom/maven/maven-shared-components</url>

<scm>
<url>https://github.com/apache/maven-parent/tree/${project.scm.tag}/maven-shared-components</url>
</scm>

<issueManagement>
<system>jira</system>
<url>https://issues.apache.org/jira/projects/MPOM</url>
</issueManagement>

<distributionManagement>
<site>
<id>apache.website</id>
<url>scm:svn:https://svn.apache.org/repos/asf/maven/website/components/${maven.site.path}/maven-shared-components</url>
</site>
</distributionManagement>

</project>
Original file line number Diff line number Diff line change
Expand Up @@ -32,20 +32,10 @@ under the License.
<item name="Maven" href="../index.html"/>
<item name="Plugins" href="../maven-plugins/index.html"/>
<item name="Extensions" href="../maven-extensions/index.html"/>
<item name="Shared Components" href="../maven-shared-components/index.html"/>
<item name="Shared Components" href="index.html"/>
<item name="Skins" href="../maven-skins/index.html"/>
<item name="Doxia Tools" href="../doxia-tools/index.html"/>
</menu>

<menu ref="reports" />

<menu name="ASF">
<item name="How Apache Works" href="https://www.apache.org/foundation/how-it-works.html"/>
<item name="Foundation" href="https://www.apache.org/foundation/"/>
<item name="Data Privacy" href="https://privacy.apache.org/policies/privacy-policy-public.html"/>
<item name="Sponsoring Apache" href="https://www.apache.org/foundation/sponsorship.html"/>
<item name="Thanks" href="https://www.apache.org/foundation/thanks.html"/>
</menu>

</body>
</project>
24 changes: 15 additions & 9 deletions maven-skins/site-pom.xml → docs/maven-skins/pom.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>

<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
Expand All @@ -18,29 +17,36 @@ KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>org.apache.maven</groupId>
<!-- we need to have a different gav for pom.xml and site-pom.xml -->
<!-- dot at the end is on purpose -->
<artifactId>maven-parent.</artifactId>
<artifactId>docs</artifactId>
<version>42-SNAPSHOT</version>
<relativePath>../site-pom.xml</relativePath>
</parent>

<groupId>org.apache.maven.skins</groupId>
<artifactId>maven-skins</artifactId>
<artifactId>maven-skins-docs</artifactId>
<packaging>pom</packaging>

<name>Apache Maven Skins Parent POM</name>
<description>This project consists of a POM that contains settings that are likely to be useful to any Maven Skin that is building and releasing code with Maven.</description>
<url>https://maven.apache.org/pom/maven/maven-skins</url>

<scm>
<url>https://github.com/apache/maven-parent/tree/${project.scm.tag}/maven-skins</url>
</scm>

<issueManagement>
<system>jira</system>
<url>https://issues.apache.org/jira/projects/MPOM</url>
</issueManagement>

<distributionManagement>
<site>
<id>apache.website</id>
<url>scm:svn:https://svn.apache.org/repos/asf/maven/website/components/${maven.site.path}/maven-skins</url>
</site>
</distributionManagement>
</project>
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -33,18 +33,9 @@ under the License.
<item name="Plugins" href="../maven-plugins/index.html"/>
<item name="Extensions" href="../maven-extensions/index.html"/>
<item name="Shared Components" href="../maven-shared-components/index.html"/>
<item name="Skins" href="../maven-skins/index.html"/>
<item name="Skins" href="index.html"/>
<item name="Doxia Tools" href="../doxia-tools/index.html"/>
</menu>

<menu ref="reports" />

<menu name="ASF">
<item name="How Apache Works" href="https://www.apache.org/foundation/how-it-works.html"/>
<item name="Foundation" href="https://www.apache.org/foundation/"/>
<item name="Data Privacy" href="https://privacy.apache.org/policies/privacy-policy-public.html"/>
<item name="Sponsoring Apache" href="https://www.apache.org/foundation/sponsorship.html"/>
<item name="Thanks" href="https://www.apache.org/foundation/thanks.html"/>
</menu>
</body>
</project>
Loading

0 comments on commit 1442171

Please sign in to comment.