jax-maven-plugin
                                
                                 jax-maven-plugin copied to clipboard
                                
                                    jax-maven-plugin copied to clipboard
                            
                            
                            
                        Plugin fails when being used behind a company firewall
This plugin generally works good for me, but it fails when I try to use it behind a firewall with no direct access to the open internet. We're using a local artifactory instance to proxy/manage our maven repositories - it looks like the plugin tries to download its dependencies from the official maven repositories, though..(please see logs below).
Any change you're gonna fix this ?
build	16-Jul-2019 15:56:35	[DEBUG] === PROJECT BUILD PLAN ================================================
build	16-Jul-2019 15:56:35	[DEBUG] Project:       com.h3g.fs.fileCompare:xmlCompare:1.0.4-SNAPSHOT
build	16-Jul-2019 15:56:35	[DEBUG] Dependencies (collect): []
build	16-Jul-2019 15:56:35	[DEBUG] Dependencies (resolve): [compile, runtime, test]
build	16-Jul-2019 15:56:35	[DEBUG] Repositories (dependencies): [artifactory-release (https://artifactory.three.com/libs-release, default, releases), artifactory-snapshot (https://artifactory.three.com/libs-snapshot, default, releases+snapshots), central (https://repo.maven.apache.org/maven2, default, releases)]
build	16-Jul-2019 15:56:35	[DEBUG] Repositories (plugins)     : [artifactory-plugins-release (https://artifactory.three.com/libs-release, default, releases), artifactory-plugins-snapshot (https://artifactory.three.com/libs-snapshot, default, releases+snapshots), central (https://repo.maven.apache.org/maven2, default, releases)]
....
build	16-Jul-2019 15:56:40	[DEBUG] Configuring mojo com.github.davidmoten:jax-maven-plugin:0.1.7:xjc from plugin realm ClassRealm[plugin>com.github.davidmoten:jax-maven-plugin:0.1.7, parent: jdk.internal.loader.ClassLoaders$AppClassLoader@799f7e29]
build	16-Jul-2019 15:56:40	[DEBUG] Configuring mojo 'com.github.davidmoten:jax-maven-plugin:0.1.7:xjc' with basic configurator -->
build	16-Jul-2019 15:56:40	[DEBUG]   (f) addResources = true
build	16-Jul-2019 15:56:40	[DEBUG]   (f) addSources = true
build	16-Jul-2019 15:56:40	[DEBUG]   (f) arguments = [-verbose, -extension, -d, target/classes, /appl/bamboo/bamboo-agent-home-1/xml-data/build-dir/BAE-XMLC111-BUIL/src/main/resources/xmlCompareConfig.xsd, -b, /appl/bamboo/bamboo-agent-home-1/xml-data/build-dir/BAE-XMLC111-BUIL/src/main/resources/xmlCompareConfig.xjb]
build	16-Jul-2019 15:56:40	[DEBUG]   (f) localRepository =       id: local
build	16-Jul-2019 15:56:40	      url: file:///appl/bamboo/caches/maven/repository/
build	16-Jul-2019 15:56:40	   layout: default
build	16-Jul-2019 15:56:40	snapshots: [enabled => true, update => always]
build	16-Jul-2019 15:56:40	 releases: [enabled => true, update => always]
build	16-Jul-2019 15:56:40	
build	16-Jul-2019 15:56:40	[DEBUG]   (f) remoteRepositories = []
build	16-Jul-2019 15:56:40	[DEBUG]   (f) project = MavenProject: com.h3g.fs.fileCompare:xmlCompare:1.0.4-SNAPSHOT @ /appl/bamboo/bamboo-agent-home-1/xml-data/build-dir/BAE-XMLC111-BUIL/pom.xml
build	16-Jul-2019 15:56:40	[DEBUG] -- end configuration --
build	16-Jul-2019 15:56:40	[INFO] Starting XJC mojo
build	16-Jul-2019 15:56:40	[INFO] destination directory (-d option) specified and does not exist, creating: target/classes
build	16-Jul-2019 15:56:40	[INFO] setting up classpath for jaxws-tools version 0.1.7
build	16-Jul-2019 15:56:40	[DEBUG] testArtifact: jax-maven-plugin-core
build	16-Jul-2019 15:56:40	[DEBUG] includeArtifact: com.github.davidmoten:jax-maven-plugin-core:0.1.7::jar
build	16-Jul-2019 15:56:40	[DEBUG] startProcessChildren: com.github.davidmoten:jax-maven-plugin-core:0.1.7::jar
build	16-Jul-2019 15:56:40	[DEBUG] Verifying availability of /appl/bamboo/caches/maven/repository/com/sun/xml/ws/jaxws-tools/2.3.2/jaxws-tools-2.3.2.pom from [central (https://repo.maven.apache.org/maven2, default, releases)]
build	16-Jul-2019 15:56:40	[DEBUG] Using transporter WagonTransporter with priority -1.0 for https://repo.maven.apache.org/maven2
build	16-Jul-2019 15:56:40	[DEBUG] Using connector BasicRepositoryConnector with priority 0.0 for https://repo.maven.apache.org/maven2
**build	16-Jul-2019 15:56:40	[INFO] Downloading from central: https://repo.maven.apache.org/maven2/com/sun/xml/ws/jaxws-tools/2.3.2/jaxws-tools-2.3.2.pom**
build	16-Jul-2019 15:56:40	[DEBUG] Writing tracking file /appl/bamboo/caches/maven/repository/com/sun/xml/ws/jaxws-tools/2.3.2/jaxws-tools-2.3.2.pom.lastUpdated
build	16-Jul-2019 15:56:40	[DEBUG] endProcessChildren: com.github.davidmoten:jax-maven-plugin-core:0.1.7::jar
**build	16-Jul-2019 15:56:40	[INFO] Failure detected.**
...
build	16-Jul-2019 15:56:40	[DEBUG] isolated classpath for call to XJC=
build	16-Jul-2019 15:56:40	  /appl/bamboo/caches/maven/repository/com/github/davidmoten/jax-maven-plugin-core/0.1.7/jax-maven-plugin-core-0.1.7.jar
build	16-Jul-2019 15:56:40	[INFO] call arguments:
build	16-Jul-2019 15:56:40	  -----------------
build	16-Jul-2019 15:56:40	  /appl/bamboo/tools/java/openjdk/install/openjdk-11.0.1/bin/java
build	16-Jul-2019 15:56:40	  -classpath
build	16-Jul-2019 15:56:40	  /appl/bamboo/caches/maven/repository/com/github/davidmoten/jax-maven-plugin-core/0.1.7/jax-maven-plugin-core-0.1.7.jar
build	16-Jul-2019 15:56:40	  com.github.davidmoten.jaxws.XjcMain
build	16-Jul-2019 15:56:40	  -verbose
build	16-Jul-2019 15:56:40	  -extension
build	16-Jul-2019 15:56:40	  -d
build	16-Jul-2019 15:56:40	  target/classes
build	16-Jul-2019 15:56:40	  /appl/bamboo/bamboo-agent-home-1/xml-data/build-dir/BAE-XMLC111-BUIL/src/main/resources/xmlCompareConfig.xsd
build	16-Jul-2019 15:56:40	  -b
build	16-Jul-2019 15:56:40	  /appl/bamboo/bamboo-agent-home-1/xml-data/build-dir/BAE-XMLC111-BUIL/src/main/resources/xmlCompareConfig.xjb
build	16-Jul-2019 15:56:40	  -----------------
build	16-Jul-2019 15:56:40	[DEBUG] Executing [/appl/bamboo/tools/java/openjdk/install/openjdk-11.0.1/bin/java, -classpath, /appl/bamboo/caches/maven/repository/com/github/davidmoten/jax-maven-plugin-core/0.1.7/jax-maven-plugin-core-0.1.7.jar, com.github.davidmoten.jaxws.XjcMain, -verbose, -extension, -d, target/classes, /appl/bamboo/bamboo-agent-home-1/xml-data/build-dir/BAE-XMLC111-BUIL/src/main/resources/xmlCompareConfig.xsd, -b, /appl/bamboo/bamboo-agent-home-1/xml-data/build-dir/BAE-XMLC111-BUIL/src/main/resources/xmlCompareConfig.xjb] in /appl/bamboo/bamboo-agent-home-1/xml-data/build-dir/BAE-XMLC111-BUIL.
build	16-Jul-2019 15:56:41	[DEBUG] Started Process[pid=126294, exitValue="not exited"]
build	16-Jul-2019 15:56:41	Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/tools/xjc/Driver
build	16-Jul-2019 15:56:41		at com.github.davidmoten.jaxws.XjcMain.main(XjcMain.java:8)
build	16-Jul-2019 15:56:41	Caused by: java.lang.ClassNotFoundException: com.sun.tools.xjc.Driver
build	16-Jul-2019 15:56:41		at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:583)
build	16-Jul-2019 15:56:41		at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
build	16-Jul-2019 15:56:41		at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
build	16-Jul-2019 15:56:41		... 1 more
build	16-Jul-2019 15:56:41	[DEBUG] Process[pid=126294, exitValue=1] stopped with exit code 1
build	16-Jul-2019 15:56:41	[INFO] ------------------------------------------------------------------------
build	16-Jul-2019 15:56:41	[INFO] BUILD FAILURE
build	16-Jul-2019 15:56:41	[INFO] ------------------------------------------------------------------------
I use the plugin behind a company firewall with an internal maven proxy (artifactory). Works fine. Do you have any ideas as to the cause of the problem?