-
Notifications
You must be signed in to change notification settings - Fork 99
Configuring Proxies
Alexey Valikov edited this page Jan 16, 2016
·
3 revisions
If you need to compile remote resources and have to use proxies to access them, use the following configuration parameters:
-
useActiveProxyAsHttpproxy
- if set totrue
, passes Maven's active proxy settings to XJC. Default value isfalse
. Proxy settings are passed using the-httpproxy
argument in the form[user[:password]@]proxyHost[:proxyPort]
. This sets both HTTP as well as HTTPS proxy. See the following guide on proxy configuration. -
proxyHost
- sets the custom proxy host. -
proxyPort
- sets the custom proxy port. -
proxyUsername
- sets the custom proxy username. -
proxyPassword
- sets the custom proxy password.
If you configure both useActiveProxyAsHttpproxy
as well as custom proxy*
parameters, custom proxy will be preferred.
However, it is generally not recommended to compile remote resources. This may produce all kinds of problems which could make you build unstable. From remote server going down to firewalls you can't overcome.
Instead of accessing remote resources directly, make local copies and use catalogs to rewrite remote URLs into local URLs.
So if you think you need to configure a proxy, you might be on a dangerous path.
- Home
- Migration guide
-
JAXB Maven Plugin
- Quick Start
-
User Guide
- Basic Usage
- Specifying What To Compile
- Referencing Resources in Maven Artifacts
- Using Catalogs
- Using Episodes
- Modular Schema Compilation
- Controlling the Output
- Using JAXB Plugins
- Using a Specific JAXB Version
- Configuring Extension, Validation and XML Security
- IDE Integration
- Miscellaneous
- Configuring Proxies
- Maven Documentation
- Configuration Cheat Sheet
- Common Pitfalls and Problems
-
JAXB2 Basics Plugins
- Using JAXB2 Basics Plugins
- JSR-305 Support
-
JAXB2 Basics Plugins List
- SimpleEquals Plugin
- SimpleHashCode Plugin
- Equals Plugin
- HashCode Plugin
- ToString Plugin
- Copyable Plugin
- Mergeable Plugin
- Inheritance Plugin
- AutoInheritance Plugin
- Wildcard Plugin
- Setters Plugin
- Simplify Plugin
- EnumValue Plugin
- JAXBIndex Plugin
- FixJAXB1058 Plugin
- Commons Lang Plugin
- Default Value Plugin
- Fluent API Plugin
- Namespace Prefix Plugin
- Value Constructor Plugin
- Boolean Getter Plugin
- CamelCase Plugin
- XML ElementWrapper Plugin
- Parent Pointer Plugin
- Property Listener Injector Plugin
- Annox
- JAXB Annotate Plugin
-
HyperJAXB3
- Build System Support
- Customization Guide
- Databases
- Development guide
- Extension guide
- FAQ
- IDE Support
- Java Persistence
- JAXB
- JDK Support
- Project Templates
-
Reference
- Adding vendor-specific annotations
- Features
- Integrating Hyperjaxb3 in builds
- Introduction
- Making schema-derived classes ready for JPA
- Adding required properties
- Applying workarounds for JAXB vs. JPA conflicts
- Enforcing top-level classes
- Generating equals and hashCode methods
- Generating ORM metadata
- Generating persistence unit descriptor
- JPA 2 Support
- Making classes serializable
- Testing generated mappings
- Reference - single page
- Related Projects
- Sample projects
- Solutions
- Target Scenarios
- Test Projects
- Tutorials
- Best Practices
- FAQ
- Sample Projects
- Support
- License
- Distribution