Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename models module to meet project conventions #840

Merged
merged 1 commit into from
Dec 4, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -96,13 +96,13 @@
</contributors>

<modules>
<module>model-report</module>
<module>model-ruleset</module>
<module>versions-api</module>
<module>versions-common</module>
<module>versions-enforcer</module>
<module>versions-test</module>
<module>versions-maven-plugin</module>
<module>versions-model-report</module>
<module>versions-model</module>
<module>versions-test</module>
</modules>

<scm>
Expand Down
2 changes: 1 addition & 1 deletion versions-common/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
</dependency>
<dependency>
<groupId>org.codehaus.mojo.versions</groupId>
<artifactId>model-ruleset</artifactId>
<artifactId>versions-model</artifactId>
<version>${project.version}</version>
</dependency>

Expand Down
4 changes: 2 additions & 2 deletions versions-maven-plugin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@
<dependencies>
<dependency>
<groupId>org.codehaus.mojo.versions</groupId>
<artifactId>model-ruleset</artifactId>
<artifactId>versions-model</artifactId>
<version>${project.version}</version>
</dependency>

<dependency>
<groupId>org.codehaus.mojo.versions</groupId>
<artifactId>model-report</artifactId>
<artifactId>versions-model-report</artifactId>
<version>${project.version}</version>
</dependency>

Expand Down
6 changes: 3 additions & 3 deletions versions-maven-plugin/src/site/markdown/version-rules.md.vm
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ it otherwise.
Rules.xml
---------

To specify the version schemes to use, you may define a [rule-set xml file](../model-ruleset/rule.html), use the `ruleSet`
To specify the version schemes to use, you may define a [rule-set xml file](../versions-model/rule.html), use the `ruleSet`
element in the `versions-maven-plugin` plugin configuration, or specify ignored versions via
the `maven.version.ignore` property.

Expand All @@ -69,7 +69,7 @@ The `rules.xml` file should conform to the xsd specified in the example below.
```xml
<ruleset comparisonMethod="maven"
xmlns="https://www.mojohaus.org/VERSIONS/RULE/2.1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="https://www.mojohaus.org/VERSIONS/RULE/2.1.0 https://www.mojohaus.org/versions/model-ruleset/xsd/rule-2.1.0.xsd">
xsi:schemaLocation="https://www.mojohaus.org/VERSIONS/RULE/2.1.0 https://www.mojohaus.org/versions/versiosn-model/xsd/rule-2.1.0.xsd">
<rules>
<rule groupId="*.maven" comparisonMethod="mercury"/>
<rule groupId="com.mycompany" comparisonMethod="numeric"/>
Expand All @@ -79,7 +79,7 @@ The `rules.xml` file should conform to the xsd specified in the example below.
</ruleset>
```

The rule-set files must match the [XSD schema](./xsd/index.html).
The rule-set files must match the [XSD schema](../versions-model/xsd/index.html).

You can then use the `rulesUri` parameter to specify the rule-set to be used by the
`versions-maven-plugin`.
Expand Down
4 changes: 2 additions & 2 deletions versions-maven-plugin/src/site/site.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@
</menu>

<menu name="Reference">
<item name="Version number comparison rule-sets" href="../model-ruleset/rule.html"/>
<item name="XML schemas" href="../model-ruleset/xsd/index.html"/>
<item name="Version number comparison rule-sets" href="../versions-model/rule.html"/>
<item name="XML schemas" href="../versions-model/xsd/index.html"/>
</menu>

<menu ref="parent"/>
Expand Down
6 changes: 3 additions & 3 deletions model-report/pom.xml → versions-model-report/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
</parent>
<modelVersion>4.0.0</modelVersion>

<artifactId>model-report</artifactId>
<artifactId>versions-model-report</artifactId>

<name>Versions reports model</name>
<description>Modello model for reports</description>
<name>Versions Model Report</name>
<description>Modello models used in reports</description>

<dependencies>
<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ under the License.
<model xmlns="http://codehaus-plexus.github.io/MODELLO/2.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://codehaus-plexus.github.io/MODELLO/2.0.0 https://codehaus-plexus.github.io/modello/xsd/modello-2.0.0.xsd"
xml.namespace="https://www.mojohaus.org/VERSIONS/PROPERTY-UPDATES-REPORT/${version}"
xml.schemaLocation="https://www.mojohaus.org/versions/model-report/xsd/property-updates-report-${version}.xsd">
xml.schemaLocation="https://www.mojohaus.org/versions/versions-model-report/xsd/property-updates-report-${version}.xsd">
<id>property-updates-report</id>
<name>PropertyUpdatesReport</name>
<description>
Expand Down
6 changes: 3 additions & 3 deletions model-ruleset/pom.xml → versions-model/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
</parent>
<modelVersion>4.0.0</modelVersion>

<artifactId>model-ruleset</artifactId>
<artifactId>versions-model</artifactId>

<name>Versions ruleSet model</name>
<description>Modello model for ruleSet</description>
<name>Versions Model</name>
<description>Modello models used in plugin</description>

<dependencies>
<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ under the License.
<model xmlns="http://codehaus-plexus.github.io/MODELLO/2.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://codehaus-plexus.github.io/MODELLO/2.0.0 https://codehaus-plexus.github.io/modello/xsd/modello-2.0.0.xsd"
xml.namespace="https://www.mojohaus.org/VERSIONS/RULE/${version}"
xml.schemaLocation="https://www.mojohaus.org/versions/model-ruleset/xsd/rule-${version}.xsd">
xml.schemaLocation="https://www.mojohaus.org/versions/versions-model/xsd/rule-${version}.xsd">
<id>rule</id>
<name>Rule</name>
<description>
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions versions-test/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,17 @@
<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>
<artifactId>versions</artifactId>
<groupId>org.codehaus.mojo.versions</groupId>
<version>2.14.0-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>

<artifactId>versions-test</artifactId>

<name>Versions Test</name>
<description>Test utilities</description>
<description>Internal test utilities used in project</description>

<dependencies>
<dependency>
Expand Down