This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 194422 - Unable to create JAXB binding in Maven Project using schema from url
Summary: Unable to create JAXB binding in Maven Project using schema from url
Status: RESOLVED WONTFIX
Alias: None
Product: xml
Classification: Unclassified
Component: JAXB (show other bugs)
Version: 7.0
Hardware: PC Windows XP
: P3 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-17 17:28 UTC by aquaglia
Modified: 2015-09-17 13:21 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description aquaglia 2011-01-17 17:28:12 UTC
Each time I try to create a new JAXB binding inside a Maven project, specifying an xml schema through a URL I get the error below when building the project.

If I choose the same schema from the local file system, everything is fine.


cd E:\quaglan\My Documents\projects\subversion\sdi3\Geoportal\Common\MavenProjects\INSPIREGeoportalLibrary; "JAVA_HOME=C:\\Program Files\\Java\\jdk1.6.0_21" "\"C:\\Program Files\\NetBeans Dev 201101130001\\java\\maven\\bin\\mvn.bat\"" clean install
Scanning for projects...

Some problems were encountered while building the effective model for eu.europa.ec.inspire.geoportal.commons:INSPIREGeoportalLibrary:jar:1.0-SNAPSHOT
'build.plugins.plugin.version' for org.jvnet.jaxb2.maven2:maven-jaxb2-plugin is missing. @ line 24, column 12

It is highly recommended to fix these problems because they threaten the stability of your build.

For this reason, future Maven versions might no longer support building such malformed projects.

                                                                        
------------------------------------------------------------------------
Building INSPIREGeoportalLibrary 1.0-SNAPSHOT
------------------------------------------------------------------------
Downloading: http://vap-sdisvn.jrc.it/archiva/repository/internal/eu/europa/ec/inspire/geoportal/commons/Edina-Shib/1.0-SNAPSHOT/maven-metadata.xml

Downloading: http://vap-sdisvn.jrc.it/archiva/repository/internal/eu/europa/ec/inspire/geoportal/commons/xbeans_2_4_inspire_viewservice/1.0-SNAPSHOT/maven-metadata.xml
        
Downloaded: http://vap-sdisvn.jrc.it/archiva/repository/internal/eu/europa/ec/inspire/geoportal/commons/xbeans_2_4_inspire_viewservice/1.0-SNAPSHOT/maven-metadata.xml (403 B at 0.3 KB/sec)
Downloading: http://vap-sdisvn.jrc.it/archiva/repository/internal/eu/europa/ec/inspire/geoportal/commons/xbeans_2_5_wmts_1_0_0/1.0-SNAPSHOT/maven-metadata.xml
        
Downloaded: http://vap-sdisvn.jrc.it/archiva/repository/internal/eu/europa/ec/inspire/geoportal/commons/xbeans_2_5_wmts_1_0_0/1.0-SNAPSHOT/maven-metadata.xml (394 B at 12.4 KB/sec)
Downloading: http://vap-sdisvn.jrc.it/archiva/repository/internal/eu/europa/ec/inspire/geoportal/commons/xbeans_2_5_wmts_1_0_0/1.0-SNAPSHOT/xbeans_2_5_wmts_1_0_0-1.0-20101210.172713-1.pom
        
Downloading: http://repo.opengeo.org/eu/europa/ec/inspire/geoportal/commons/xbeans_2_5_wmts_1_0_0/1.0-SNAPSHOT/xbeans_2_5_wmts_1_0_0-1.0-20101210.172713-1.pom
        
The POM for eu.europa.ec.inspire.geoportal.commons:xbeans_2_5_wmts_1_0_0:jar:1.0-20101210.172713-1 is missing, no dependency information available
Downloading: http://vap-sdisvn.jrc.it/archiva/repository/internal/eu/europa/ec/inspire/geoportal/commons/xbeans_2_5_wmsc_1_1_1/1.0-SNAPSHOT/maven-metadata.xml
        
Downloaded: http://vap-sdisvn.jrc.it/archiva/repository/internal/eu/europa/ec/inspire/geoportal/commons/xbeans_2_5_wmsc_1_1_1/1.0-SNAPSHOT/maven-metadata.xml (394 B at 0.8 KB/sec)
Downloading: http://vap-sdisvn.jrc.it/archiva/repository/internal/eu/europa/ec/inspire/geoportal/commons/xbeans_2_5_wmsc_1_1_1/1.0-SNAPSHOT/xbeans_2_5_wmsc_1_1_1-1.0-20101210.173244-1.pom
        
Downloading: http://repo.opengeo.org/eu/europa/ec/inspire/geoportal/commons/xbeans_2_5_wmsc_1_1_1/1.0-SNAPSHOT/xbeans_2_5_wmsc_1_1_1-1.0-20101210.173244-1.pom
        
The POM for eu.europa.ec.inspire.geoportal.commons:xbeans_2_5_wmsc_1_1_1:jar:1.0-20101210.173244-1 is missing, no dependency information available
Downloading: http://vap-sdisvn.jrc.it/archiva/repository/internal/org/geotools/gt-main/2.7-SNAPSHOT/maven-metadata.xml
        
Downloading: http://vap-sdisvn.jrc.it/archiva/repository/internal/org/geotools/library/2.7-SNAPSHOT/maven-metadata.xml
        
Downloading: http://vap-sdisvn.jrc.it/archiva/repository/internal/org/geotools/modules/2.7-SNAPSHOT/maven-metadata.xml
        
Downloading: http://vap-sdisvn.jrc.it/archiva/repository/internal/org/geotools/geotools/2.7-SNAPSHOT/maven-metadata.xml
        
Downloading: http://vap-sdisvn.jrc.it/archiva/repository/internal/org/geotools/gt-api/2.7-SNAPSHOT/maven-metadata.xml
        
Downloading: http://vap-sdisvn.jrc.it/archiva/repository/internal/org/geotools/gt-referencing/2.7-SNAPSHOT/maven-metadata.xml
        
Downloading: http://vap-sdisvn.jrc.it/archiva/repository/internal/org/geotools/gt-metadata/2.7-SNAPSHOT/maven-metadata.xml
        
Downloading: http://vap-sdisvn.jrc.it/archiva/repository/internal/org/geotools/gt-wms/2.7-SNAPSHOT/maven-metadata.xml
        
Downloading: http://vap-sdisvn.jrc.it/archiva/repository/internal/org/geotools/extension/2.7-SNAPSHOT/maven-metadata.xml
        
Downloading: http://vap-sdisvn.jrc.it/archiva/repository/internal/org/geotools/gt-coverage/2.7-SNAPSHOT/maven-metadata.xml
        
Downloading: http://vap-sdisvn.jrc.it/archiva/repository/internal/org/geotools/gt-xml/2.7-SNAPSHOT/maven-metadata.xml
        
Downloading: http://vap-sdisvn.jrc.it/archiva/repository/internal/org/geotools/gt-render/2.7-SNAPSHOT/maven-metadata.xml
        
Downloading: http://vap-sdisvn.jrc.it/archiva/repository/internal/org/geotools/gt-cql/2.7-SNAPSHOT/maven-metadata.xml
        

[clean:clean]
Deleting E:\quaglan\My Documents\projects\subversion\sdi3\Geoportal\Common\MavenProjects\INSPIREGeoportalLibrary\target

[jaxb2:generate]
Started execution.
JAXB API is loaded from the [jar:file:/C:/Program%20Files/Java/jdk1.6.0_21/jre/lib/rt.jar!].
Detected JAXB API version [2.1].
pluginArtifacts:[org.jvnet.jaxb2.maven2:maven-jaxb2-plugin:maven-plugin:0.7.4:, org.jvnet.jaxb2.maven2:maven-jaxb2-plugin-raw:jar:0.7.4:compile, org.codehaus.plexus:plexus-utils:jar:1.1:compile, junit:junit:jar:4.8.1:compile, org.jfrog.maven.annomojo:maven-plugin-anno:jar:1.3.1:compile, org.sonatype.plexus:plexus-build-api:jar:0.0.6:compile, com.sun.xml.bind:jaxb-impl:jar:2.1.13:compile, javax.xml.bind:jaxb-api:jar:2.1:compile, javax.xml.stream:stax-api:jar:1.0-2:compile, javax.activation:activation:jar:1.1:compile, org.jvnet.jaxb2_commons:jaxb2-basics-jaxb-xjc:jar:2.1.13.MR2:compile, com.sun.codemodel:codemodel:jar:2.3:compile, com.sun.xml.dtd-parser:dtd-parser:jar:1.1:compile, com.sun.istack:istack-commons-tools:jar:2.2.MR1:compile, org.apache.ant:ant:jar:1.7.0:compile, org.apache.ant:ant-launcher:jar:1.7.0:compile, relaxngDatatype:relaxngDatatype:jar:20020414:compile, com.sun.org.apache.xml.internal:resolver:jar:20050927:compile, org.kohsuke.rngom:rngom:jar:20100718:compile, com.sun.xsom:xsom:jar:20100725:compile, sun.jdk:tools:jar:1.5.0:system]
schemaLanguage:null
schemaDirectory:E:\quaglan\My Documents\projects\subversion\sdi3\Geoportal\Common\MavenProjects\INSPIREGeoportalLibrary\src\main\resources
schemaIncludes:[Ljava.lang.String;@17b1d64
schemaExcludes:null
bindingDirectory:E:\quaglan\My Documents\projects\subversion\sdi3\Geoportal\Common\MavenProjects\INSPIREGeoportalLibrary\src\main\resources
bindingIncludes:[Ljava.lang.String;@1c6a99d
bindingExcludes:null
disableDefaultExcludes:false
catalog:E:\quaglan\My Documents\projects\subversion\sdi3\Geoportal\Common\MavenProjects\INSPIREGeoportalLibrary\src\main\resources\jaxb\catalog.xml
catalogResolver:org.jvnet.jaxb2.maven2.resolver.tools.ClasspathCatalogResolver
generatePackage:eu.europa.ec.inspire.jaxb
generateDirectory:E:\quaglan\My Documents\projects\subversion\sdi3\Geoportal\Common\MavenProjects\INSPIREGeoportalLibrary\target\generated-sources\xjc
readOnly:false
extension:false
strict:true
writeCode:true
verbose:true
debug:false
args:[]
forceRegenerate:true
removeOldOutput:false
produces:[**/*.*, **/*.java, **/bgm.ser, **/jaxb.properties]
otherDepends:null
episodeFile:E:\quaglan\My Documents\projects\subversion\sdi3\Geoportal\Common\MavenProjects\INSPIREGeoportalLibrary\target\generated-sources\xjc\META-INF\jaxb-INSPIRE.episode
episode:true
classpathElements:[E:\quaglan\My Documents\projects\subversion\sdi3\Geoportal\Common\MavenProjects\INSPIREGeoportalLibrary\target\classes]
plugins:null
episodes:null
xjcPlugins:null
episodes:null
specVersion:2.1
schemaFiles (calculated):[]
bindingFiles (calculated):[]
xjcPluginArtifacts (resolved):[]
xjcPluginFiles (resolved):[]
xjcPluginURLs (resolved):[]
episodeArtifacts (resolved):[]
episodeFiles (resolved):[]
The schemaLanguage setting was not defined, assuming 'AUTODETECT'.
Cannot find CatalogManager.properties
Using java.util.ServiceLoader
------------------------------------------------------------------------
BUILD FAILURE
------------------------------------------------------------------------
Total time: 11.656s
Finished at: Mon Jan 17 18:25:09 CET 2011
Final Memory: 4M/15M
------------------------------------------------------------------------
Failed to execute goal org.jvnet.jaxb2.maven2:maven-jaxb2-plugin:0.7.4:generate (jaxb-generate-INSPIRE) on project INSPIREGeoportalLibrary: Error parsing the command line [[Ljava.lang.String;@6de609]: grammar is not specified -> [Help 1]

To see the full stack trace of the errors, re-run Maven with the -e switch.
Re-run Maven using the -X switch to enable full debug logging.

For more information about the errors and possible solutions, please read the following articles:
[Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
Comment 1 aquaglia 2011-01-17 18:05:49 UTC
Sorry, no, it happens only for 
http://inspire.ec.europa.eu/schemas/latest/inspireResource_eng.xsd

With http://schemas.opengis.net/csw/2.0.2/CSW-discovery.xsd it works fine.


However, http://inspire.ec.europa.eu/schemas/latest/inspireResource_eng.xsd is valid.

I wonder why it does not work.
Comment 2 aquaglia 2011-01-17 18:09:01 UTC
No, no it happens for http://schemas.opengis.net/csw/2.0.2/CSW-discovery.xsd, too.
There is definitely an issue with URLs.
Comment 3 Martin Balin 2015-09-17 13:21:27 UTC
Report from old NetBeans version. Due to code changes since it was reported likely not reproducible now. Feel free to reopen if happens in 8.0.2 or 8.1.