Skip to content

Commit ec5d66a

Browse files
committed
downgrade plexus-xml from 4 to 3: keep Maven 3 compatibility
1 parent b2cf572 commit ec5d66a

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ mvn -Preporting verify site site:stage scm-publish:publish-scm
1616

1717
Starting with version 4, XML classes (in `org.codehaus.plexus.util.xml` and `org.codehaus.plexus.util.xml.pull`) have been extracted to a separate [`plexus-xml`](https://github.com/codehaus-plexus/plexus-xml/) library: if you need them, just use this new artifact.
1818

19-
`plexus-utils` 4 keeps an optional dependency on `plexus-xml` to keep compatibility with the few XML-oriented methods of `ReaderFactory` and `WriterFactory`: these classes are deprecated, you should migrate as explained in javadoc.
19+
`plexus-utils` 4 keeps an optional dependency on `plexus-xml` 3 to keep compatibility with the few XML-oriented methods of `ReaderFactory` and `WriterFactory`: these classes are deprecated, you should migrate as explained in javadoc. And keep `plexus-xml` to 3 if you want Maven 3 compatibility, as `plexus-xml` 4 works only in Maven 4.

pom.xml

+2-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@ limitations under the License.
5656
<dependency>
5757
<groupId>org.codehaus.plexus</groupId>
5858
<artifactId>plexus-xml</artifactId>
59-
<version>4.0.2</version>
59+
<version>3.0.0</version>
60+
<!-- this dependency is optional, only necessary for deprecated Reader/WriterFactory.newXmlReader/Writer(...) -->
6061
<optional>true</optional>
6162
</dependency>
6263
<dependency>

0 commit comments

Comments
 (0)