JDOm 2 and Java 9..14 Modules
Michael Ellis <[email protected]> Fri, 10 Apr 2020 14:50:22 +0100
| Newsgroups | gmane.comp.java.jdom.general |
|---|---|
| Message-ID | <[email protected]> |
--===============2043122050==
Content-Type: multipart/alternative; boundary="Apple-Mail=_88ECBD91-2E30-4870-82F5-50610E6C8B70"
--Apple-Mail=_88ECBD91-2E30-4870-82F5-50610E6C8B70
X-Clacks-Overhead: GNU Terry Pratchett
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
charset=utf-8
I find that my NetBeans maven drive project generates an error if =
attempting to use JDom2 in a Java 11 project that uses Java modules
My meven project uses the following dependency..
<dependency>
<groupId>org.jdom</groupId>
<artifactId>jdom2</artifactId>
<version>2.0.6</version>
</dependency>
=20
If my module-info.jave file includes =E2=80=9Crequires jdom2;=E2=80=9D =
the project does compile but shows an error=20
=E2=80=9Cmodule not found jdom2=E2=80=9D
If my module-info.jave file includes =E2=80=9Crequires jdom;=E2=80=9D =
the project fails to build.
How do I fix this?
Michael Ellis (Managing Director)
Digital Scientific UK Ltd.
http://www.dsuk.biz <http://www.dsuk.biz/>
[email protected]
tel: +44(0)1223 911215
The Commercial Centre
6 Green End
Cambridge
CB23 7DY
=3D=3D=3D END OF EMAIL =3D=3D=3D
--Apple-Mail=_88ECBD91-2E30-4870-82F5-50610E6C8B70
X-Clacks-Overhead: GNU Terry Pratchett
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
charset=utf-8
<html><head><meta http-equiv=3D"Content-Type" content=3D"text/html =
charset=3Dutf-8"></head><body style=3D"word-wrap: break-word; =
-webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" =
class=3D""><div class=3D"">I find that my NetBeans maven drive project =
generates an error if attempting to use JDom2 in a Java 11 project that =
uses Java modules</div><div class=3D""><br class=3D""></div><div =
class=3D"">My meven project uses the following dependency..</div><div =
class=3D""><br class=3D""></div><div class=3D""><div class=3D""> =
<dependency></div><div class=3D""> =
=
<groupId>org.jdom</groupId></div><div class=3D""> =
=
<artifactId>jdom2</artifactId></div><div class=3D""> =
=
<version>2.0.6</version></div><div class=3D""> =
</dependency></div><div class=3D""> =
</div></div><div =
class=3D"">If my module-info.jave file includes =E2=80=9Crequires =
jdom2;=E2=80=9D the project does compile but shows an =
error </div><div class=3D""><br class=3D""></div><div =
class=3D"">=E2=80=9Cmodule not found jdom2=E2=80=9D</div><div =
class=3D""><br class=3D""></div><div class=3D""><div class=3D"">If my =
module-info.jave file includes =E2=80=9Crequires jdom;=E2=80=9D the =
project fails to build.</div></div><div class=3D""><br =
class=3D""></div><div class=3D"">How do I fix this?</div><div =
class=3D""><br class=3D""></div><br class=3D""><div class=3D"">
<div style=3D"color: rgb(0, 0, 0); letter-spacing: normal; orphans: =
auto; text-align: start; text-indent: 0px; text-transform: none; =
white-space: normal; widows: auto; word-spacing: 0px; =
-webkit-text-stroke-width: 0px; word-wrap: break-word; =
-webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" =
class=3D""><div style=3D"color: rgb(0, 0, 0); letter-spacing: normal; =
orphans: auto; text-align: start; text-indent: 0px; text-transform: =
none; white-space: normal; widows: auto; word-spacing: 0px; =
-webkit-text-stroke-width: 0px; word-wrap: break-word; =
-webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" =
class=3D""><div style=3D"text-align: right;" class=3D"">Michael Ellis =
(Managing Director)</div><div style=3D"text-align: right;" =
class=3D"">Digital Scientific UK Ltd.</div><div style=3D"text-align: =
right;" class=3D""><a href=3D"http://www.dsuk.biz" =
class=3D"">http://www.dsuk.biz</a></div><div style=3D"text-align: =
right;" class=3D""><a href=3D"mailto:[email protected]" =
class=3D"">[email protected]</a></div><div style=3D"text-align: =
right;" class=3D"">tel: +44(0)1223 911215</div><div style=3D"text-align: =
right;" class=3D""><br class=3D""></div><div style=3D"text-align: =
right;" class=3D"">The Commercial Centre</div><div style=3D"text-align: =
right;" class=3D"">6 Green End</div><div style=3D"text-align: right;" =
class=3D"">Cambridge</div><div style=3D"text-align: right;" =
class=3D"">CB23 7DY</div><div style=3D"text-align: right;" class=3D""><br =
class=3D""></div><div style=3D"text-align: right;" class=3D"">=3D=3D=3D =
END OF EMAIL =3D=3D=3D</div></div></div>
</div>
<br class=3D""></body></html>=
--Apple-Mail=_88ECBD91-2E30-4870-82F5-50610E6C8B70--
--===============2043122050==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
To control your jdom-interest membership:
http://www.jdom.org/mailman/options/jdom-interest/[email protected]
--===============2043122050==--