Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Java code generation appears to fail when working with schema files that declare namespaces ending with a '#' #44

Open
shimada-development opened this issue Dec 3, 2015 · 1 comment

Comments

@shimada-development
Copy link

We are having difficulty using this plugin to generate Java code when working with schema files that declare namespaces that end with a '#'.

I am using the following version of gradle:

++++++++++++++++++++
gradle -v


Gradle 2.4

Build time: 2015-05-05 08:09:24 UTC
Build number: none
Revision: 5c9c3bc20ca1c281ac7972643f1e2d190f2c943c

Groovy: 2.3.10
Ant: Apache Ant(TM) version 1.9.4 compiled on April 29 2014
JVM: 1.8.0_51 (Oracle Corporation 25.51-b03)
OS: Linux 3.13.0-63-generic amd64
+++++++++++++++++++++++++++++++++++++++

Following files have been copied to this ticket in order to reproduce the problem.

(1) build.gradle
++++++++++++++++++++
buildscript {
repositories {
jcenter()
}
}

plugins {
id "com.github.jacobono.jaxb" version "1.3.5"
}

version = '1.0'

repositories {
mavenCentral()
jcenter()
}

jaxb {
xsdDir = "schemas"
xjc {
destinationDir = "generated"
generatePackage = "schemas"
}
}

dependencies {

// This first line specifies which version of the xjc compiler to use
jaxb 'com.sun.xml.bind:jaxb-xjc:2.1.12'

}
++++++++++++++++

(2) schema_imported.xsd: Place this in path 'schemas/schema_imported.xsd' relative to 'build.gradle'

+++++++++++++++++++++++++++++++

+++++++++++++++++++++++++++++

(3) schema_importer.xsd: Place this in path 'schemas/schema_importer.xsd' relative to 'build.gradle'

++++++++++++++++++++

+++++++++++++++++++++

Things appear to work well when 'http://www.w3.org/2009/09/imported#' is replaced by 'http://www.w3.org/2009/09/imported'

@shimada-development
Copy link
Author

I am including the schema files (with a .txt extension) as the original copy and paste did not work faithfully

schema_importer.txt
schema_imported.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant