Re: JAXB2 Maven Plugin XJC Goal JDK17 Question

2023-08-22 Thread Delany
This one has JAXB4 support
https://github.com/phax/maven-jaxb2-plugin
Delany



On Tue, 22 Aug 2023 at 22:04, David Hoffer  wrote:

> I think that is based on:
>
> org.jvnet.jaxb2.maven2
> maven-jaxb2-plugin
>
> Which, I can't get to work with JDK17 and to be compatible with the rest of
> my app has to be at Java EE 10.
>
> I'm currently trying to use:
>
> org.codehaus.mojo
> jaxb2-maven-plugin
> 3.1.0
>
> As it's current; seems to support JDK17 Java 10 well.  But it seems they
> dropped support for -X argument options.  Or I just can't find how it's
> supported.
>
> I have also tried:
>
> org.apache.cxf
> cxf-xjc-plugin
> 4.0.0
>
> And it too is current, supports JDK17 and Java 10.  It does have extension
> support for:
>
> toString
> defaultValue
>
> But does not have support for:
> equals
> hashCode
>
> And those I would really like to have.  Trying to find a way to have all 4
> of those options.
>
> -Dave
>
> On Tue, Aug 22, 2023 at 1:31 PM Delany  wrote:
>
> > Try here https://stackoverflow.com/a/32336886/2746335
> > Delany
> >
> > On Tue, 22 Aug 2023 at 21:16, David Hoffer  wrote:
> >
> > > I'm wanting to use the JAXB2 Maven Plugin's XJC goal in a JDK17
> project.
> > > I'm using version 3.1.0.  I can get it to generate the Java code but
> > can't
> > > find any way to add support for optional things like:
> > >
> > > toString
> > > equals
> > > hashCode
> > > defaultValue
> > >
> > > Can someone point me in the right direction on how to add these very
> > useful
> > > options to the generated code.
> > >
> > > Thanks,
> > > -Dave
> > >
> >
>


[ANN] Apache Maven Archiver 3.6.1 released

2023-08-22 Thread Slawomir Jaranowski
The Apache Maven team is pleased to announce the release of the Apache
Maven Archiver, version 3.6.1.

https://maven.apache.org/shared/maven-archiver/

Release Notes - Maven Shared Components - Version maven-archiver-3.6.1

** New Feature
* [MSHARED-1251] - Deprecate the JAR Index feature (JDK-8302819)

** Task
* [MSHARED-1293] - Refresh download page
* [MSHARED-1297] - Prefer JDK features over plexus-utils, plexus-io

** Dependency upgrade
* [MSHARED-1179] - Upgrade Parent to 39
* [MSHARED-1291] - Bump org.junit:junit-bom from 5.9.3 to 5.10.0
* [MSHARED-1292] - Bump org.codehaus.plexus:plexus-archiver from 4.4.0
to 4.8.0
* [MSHARED-1294] - Upgrade Parent to 40

Enjoy,

-The Apache Maven team


Re: JAXB2 Maven Plugin XJC Goal JDK17 Question

2023-08-22 Thread David Hoffer
I think that is based on:

org.jvnet.jaxb2.maven2
maven-jaxb2-plugin

Which, I can't get to work with JDK17 and to be compatible with the rest of
my app has to be at Java EE 10.

I'm currently trying to use:

org.codehaus.mojo
jaxb2-maven-plugin
3.1.0

As it's current; seems to support JDK17 Java 10 well.  But it seems they
dropped support for -X argument options.  Or I just can't find how it's
supported.

I have also tried:

org.apache.cxf
cxf-xjc-plugin
4.0.0

And it too is current, supports JDK17 and Java 10.  It does have extension
support for:

toString
defaultValue

But does not have support for:
equals
hashCode

And those I would really like to have.  Trying to find a way to have all 4
of those options.

-Dave

On Tue, Aug 22, 2023 at 1:31 PM Delany  wrote:

> Try here https://stackoverflow.com/a/32336886/2746335
> Delany
>
> On Tue, 22 Aug 2023 at 21:16, David Hoffer  wrote:
>
> > I'm wanting to use the JAXB2 Maven Plugin's XJC goal in a JDK17 project.
> > I'm using version 3.1.0.  I can get it to generate the Java code but
> can't
> > find any way to add support for optional things like:
> >
> > toString
> > equals
> > hashCode
> > defaultValue
> >
> > Can someone point me in the right direction on how to add these very
> useful
> > options to the generated code.
> >
> > Thanks,
> > -Dave
> >
>


[ANN] Apache Maven Enforcer Plugin 3.4.0 Released

2023-08-22 Thread Slawomir Jaranowski
The Apache Maven team is pleased to announce the release of the Apache
Maven Enforcer Plugin, version 3.4.0

This plugin provides goals to control certain environmental constraints
such as Maven version, JDK version and OS family
along with many more built-in rules and user created rules.

https://maven.apache.org/enforcer/maven-enforcer-plugin/

You should specify the version in your project's plugin configuration:


 org.apache.maven.plugins
 maven-enforcer-plugin
 3.4.0


You can download the appropriate sources etc. from the download page:

https://maven.apache.org/enforcer/download.html

Release Notes - Maven Enforcer Plugin - Version 3.4.0

** Bug
* [MENFORCER-393] - Upgrading to 3.0.0 causes `Could not build
dependency tree` with repositories some unknown protocol
* [MENFORCER-426] - DependencyConvergence in 3.1.0 fails when using
version ranges
* [MENFORCER-480] - Semantics of `ignores` parameter of
`banDynamicVersions` is inverted
* [MENFORCER-481] - Omission of `excludedScopes` parameter of
`banDynamicVersions` causes NPE

** Improvement
* [MENFORCER-488] - EnforcerLogger: Provide isDebugEnabled(),
isErrorEnabled(), isWarnEnabled() and isInfoEnabled()

** Dependency upgrade
* [MENFORCER-485] - Upgrade Parent to 40
* [MENFORCER-486] - Bump commons-codec from 1.15 to 1.16.0
* [MENFORCER-487] - Bump commons-io from 2.11.0 to 2.13.0
* [MENFORCER-489] - Bump commons-lang3 from 3.12.0 to 3.13.0

Enjoy,

-The Apache Maven team


Re: JAXB2 Maven Plugin XJC Goal JDK17 Question

2023-08-22 Thread Delany
Try here https://stackoverflow.com/a/32336886/2746335
Delany

On Tue, 22 Aug 2023 at 21:16, David Hoffer  wrote:

> I'm wanting to use the JAXB2 Maven Plugin's XJC goal in a JDK17 project.
> I'm using version 3.1.0.  I can get it to generate the Java code but can't
> find any way to add support for optional things like:
>
> toString
> equals
> hashCode
> defaultValue
>
> Can someone point me in the right direction on how to add these very useful
> options to the generated code.
>
> Thanks,
> -Dave
>


JAXB2 Maven Plugin XJC Goal JDK17 Question

2023-08-22 Thread David Hoffer
I'm wanting to use the JAXB2 Maven Plugin's XJC goal in a JDK17 project.
I'm using version 3.1.0.  I can get it to generate the Java code but can't
find any way to add support for optional things like:

toString
equals
hashCode
defaultValue

Can someone point me in the right direction on how to add these very useful
options to the generated code.

Thanks,
-Dave