Comments (12)
try running the examples folder in this project. It uses the 1.3.6 version. I ran that on a new machine a few weeks ago and didn't have any problems. hopefully that works and if not we can go from there.
from gradle-jaxb-plugin.
Examples use the buildscript notation. I'm talking this one:
plugins {
id 'com.github.jacobono.jaxb' version '1.3.6'
}
from gradle-jaxb-plugin.
ah i see.
Everything is linked in bintray properly. Both jcenter and the gradle plugins portal show that 1.3.6
is linked.
https://bintray.com/gradle/gradle-plugins?filterByPkgName=gradle-jaxb-plugin
after some correspondence with the gradle guys during the 1.3.5
version change I was told nothing has to happen on version changes because
The plugin portal is more or less stateless. that's why the metadata is reparsed regulary. I guess they should just show up with the new meta data provided.
this all worked for 1.3.5
pretty seamlessly so perhaps someone on their team can be of assistance?
from gradle-jaxb-plugin.
If i compare both versions on bintray the "gradle-plugin"-property? is missing in 1.3.6. See screenshot:
from gradle-jaxb-plugin.
See for yourself:
https://bintray.com/djmijares/gradle-plugins/gradle-jaxb-plugin/1.3.5/view
https://bintray.com/djmijares/gradle-plugins/gradle-jaxb-plugin/1.3.6/view
from gradle-jaxb-plugin.
I have the same problem here. I can't use version 1.3.6 and I get the same error as @MichaelKunze.
from gradle-jaxb-plugin.
Same problem here. 1.3.5 works, 1.3.6 is not found.
Error:
> Could not find com.github.jacobono.plugins:gradle-jaxb-plugin:1.3.6.
Searched in the following locations:
https://repo.grails.org/grails/core/com/github/jacobono/plugins/gradle-jaxb-plugin/1.3.6/gradle-jaxb-plugin-1.3.6.pom
https://repo.grails.org/grails/core/com/github/jacobono/plugins/gradle-jaxb-plugin/1.3.6/gradle-jaxb-plugin-1.3.6.jar
https://jcenter.bintray.com/com/github/jacobono/plugins/gradle-jaxb-plugin/1.3.6/gradle-jaxb-plugin-1.3.6.pom
https://jcenter.bintray.com/com/github/jacobono/plugins/gradle-jaxb-plugin/1.3.6/gradle-jaxb-plugin-1.3.6.jar
file:/Users/me/.m2/repository/com/github/jacobono/plugins/gradle-jaxb-plugin/1.3.6/gradle-jaxb-plugin-1.3.6.pom
file:/Users/me/.m2/repository/com/github/jacobono/plugins/gradle-jaxb-plugin/1.3.6/gradle-jaxb-plugin-1.3.6.jar
https://plugins.gradle.org/m2/com/github/jacobono/plugins/gradle-jaxb-plugin/1.3.6/gradle-jaxb-plugin-1.3.6.pom
https://plugins.gradle.org/m2/com/github/jacobono/plugins/gradle-jaxb-plugin/1.3.6/gradle-jaxb-plugin-1.3.6.jar
from gradle-jaxb-plugin.
When you specify the script block for the plugin in your build, you can use the JCenter approach to use version 1.3.6 like this:
buildscript {
repositories {
jcenter()
mavenCentral()
}
dependencies {
classpath 'com.github.jacobono:gradle-jaxb-plugin:1.3.6'
}
}
If you are happy with version 1.3.5 then use the gradle plugin like this instead:
plugins {
id 'com.github.jacobono.jaxb' version '1.3.5'
}
Both approaches work fine for me, although I agree it would be nice if the plugin would work with release 1.3.6
from gradle-jaxb-plugin.
If I follow your 1.3.6 approach I get the error message:
Could not find method jaxb() for arguments [com.sun.xml.bind:jaxb-core:2.2.11] on root project
Do I miss something?`
from gradle-jaxb-plugin.
If you are are trying to use JAXB 2.2.11, you might want to try different JARs (I know it took me a while to figure this out myself):
// Define JAXB2 dependencies
dependencies {
/*
* IMPORTANT:
* You have to select the correct dependency group depending on your version of JAXB
* The three dependencies I commented out below will work for all RI versions of JAXB up to 2.2.8
*
* If you see java.lang.NoClassDefFoundError: com/sun/xml/bind/api/ErrorListener
* when running the build then use the dependencies for 2.2.10 and higher.
*/
// jaxb 'com.sun.xml.bind:jaxb-xjc:2.2.4'
// jaxb 'com.sun.xml.bind:jaxb-impl:2.2.4'
// jaxb 'javax.xml.bind:jaxb-api:2.2.4'
/*
* The two dependencies below work for RI versions of JAXB after 2.2.8
*/
jaxb 'org.glassfish.jaxb:jaxb-xjc:2.2.11'
jaxb 'org.glassfish.jaxb:jaxb-runtime:2.2.11'
}
A full working example is on my Github repo https://github.com/warrengsmith/Blog-Examples/tree/master/JAXB_Gradle_Jacobono_XJC which uses 2.2.10
from gradle-jaxb-plugin.
(thanks @warrengsmith that was just what I needed)
from gradle-jaxb-plugin.
The OpenRepose.org updated version of this plugin is now available in the Gradle Plugins repository and is compatible with JSE7.
from gradle-jaxb-plugin.
Related Issues (20)
- cannot access plugin HOT 2
- Java code generation appears to fail when working with schema files that declare namespaces ending with a '#' HOT 1
- What version Gradle & JDK was used to compile v1.3.6 of this plugin?
- The xsdDir, episodesDir and bindingsDir do not accept absolute paths HOT 3
- Invoke "xjc" task from within a loop HOT 1
- ObjectFactory class is being generated wrong HOT 1
- DOCTYPE is disallowed
- Add support for external wsdl
- Binding file *.xjb not getting recognized HOT 1
- How to configure typesafeEnumMaxMembers? HOT 1
- Multi schema modules generate unusable episode files HOT 1
- Can we use a WSDL file instead of the XSD?
- possible to specifiy the sequence of execution of XSD
- Recommend https://github.com/rackerlabs/gradle-jaxb-plugin
- NoClassDefFoundError: javax/activation/DataSource HOT 1
- Unable to Parse Schema when CommonTypes are Not Included
- help HOT 1
- How to specify encoding or language ?
- The bintray repo will vanish May 1st, 2021
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gradle-jaxb-plugin.