I'm using Java 11, and I avoided `--add-modules` by using the following
for the gradle jooq plugin so that it can write out the jooq xml config
(in `buildscript`):
classpath "com.sun.xml.bind:jaxb-impl:2.3.0.1"
classpath "com.sun.xml.bind:jaxb-core:2.3.0.1"
classpath "com.sun.activation:javax.activation:1.2.0"
and for actually running jooq codegen (in the typical `dependencies` block):
// also include your jdbc driver
jooqRuntime "com.sun.xml.bind:jaxb-impl:2.3.0.1"
jooqRuntime "com.sun.xml.bind:jaxb-core:2.3.0.1"
jooqRuntime "javax.xml.bind:jaxb-api:2.3.0"
jooqRuntime "com.sun.activation:javax.activation:1.2.0"
I gave up on maven years ago so I don't know how to translate that into
maven-ese exactly, but at least in principle it is possible!
Your dependency on jaxws includes transitive dependencies on jaxb-impl,
jaxb-core, and javax.activation, so you could just use those three if
you don't need the rest of jaxws-api and want to include fewer
extraneous jars in your final artifact.
On 10/22/2018 02:26 PM, Joseph Dornisch wrote:
So, I'm updating my own small project from java 8 - currently to 9 and
will move to 11 later today.
In order to generate the jooq source (which I don't do via maven
currently, I added '--add-modules java.xml.bind' to the command:
java --add-modules java.xml.bind org.jooq.codegen.GenerationTool codegen.xml
Then to compile my code along with the generated code, I added the
following dependency to my pom.xml file:
<dependency>
<groupId>javax.xml.ws</groupId>
<artifactId>jaxws-api</artifactId>
<version>2.3.1</version>
</dependency>
Is this the generally preferred way of moving forwards with jooq with
java 9,10,11 right now?
Is there some other replacement dependency I should use for code
generation similarly to adding the javax.xml.ws dependency?
Sorry, if this is covered elsewhere, I did try to find information in
the online jooq documentation.
Thanks.
--
You received this message because you are subscribed to the Google
Groups "jOOQ User Group" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to [email protected]
<mailto:[email protected]>.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "jOOQ User
Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.