users@jaxb.java.net

Re: JAXB MAven Plugin

From: Aleksei Valikov <valikov_at_gmx.net>
Date: Mon, 20 May 2013 22:22:16 +0200

Hi Markos,

XJC has also an option -httpproxy, so I would try
<args><arg>-httpproxy
[user[:password]@]proxyHost:proxyPort</arg></args> is the plugin
configuration.

Best wishes,
Alexey

On Mon, May 6, 2013 at 12:06 PM, Markos Mevorah <Markos.Mevorah_at_fmi.fi> wrote:
> Hei Alexei,
>
> My problem is solved.
> I need to pass the next arguments to the VM:
>
> -Dhttp.proxyHost=<our proxy> -Dhttp.proxyPort=<port>
>
> In continuation of this email:
>
> <
> I am using the JAXB maven plugin to parse a schema into JAXB classes.
> The project is very simple with only the pom.xml.
> I enter here the only relevant section of the pom:
>
> <build>
> <plugins>
> <plugin>
> <groupId>org.jvnet.jaxb2.maven2</groupId>
> <artifactId>maven-jaxb2-plugin</artifactId>
> <configuration>
> <forceRegenerate>true</forceRegenerate>
> <schemas>
> <schema>
> <url>http://schemas.opengis.net/wfs/2.0/wfs.xsd</url>
> </schema>
> </schemas>
> </configuration>
> <executions>
> <execution>
> <goals>
> <goal>generate</goal>
> </goals>
> </execution>
> </executions>
> </plugin>
> </plugins>
> </build>
>
> When I try to run: mvn clean package
> I get this exceptions:
>
> Error while parsing schema(s).Location [].
> org.xml.sax.SAXParseException; schema_reference.4: Failed to read schema document 'http://schemas.opengis.net/wfs/2.0/wfs.xsd', because
> 1) could not find the document;
> 2) the document could not be read;
> 3) the root element of the document is not <xsd:schema>.
>
> And
>
> Caused by: java.net.ConnectException: Connection refused: connect
>
> Do you have any idea what must be the problem?
>>