-
Notifications
You must be signed in to change notification settings - Fork 99
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixing issue JT-194 : adding TypeArtifactFilter to exclude pom artifacts
- Loading branch information
Laurent SCHOELENS
committed
Aug 9, 2023
1 parent
93f623a
commit 73ec4b2
Showing
6 changed files
with
194 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
<artifactId>jaxb-maven-plugin-tests-194</artifactId> | ||
<parent> | ||
<groupId>org.jvnet.jaxb</groupId> | ||
<artifactId>jaxb-maven-plugin-tests</artifactId> | ||
<version>2.0.4-SNAPSHOT</version> | ||
</parent> | ||
<packaging>jar</packaging> | ||
<name>JAXB Tools :: Maven Plugin :: Test [JAXB-TOOLS 194]</name> | ||
<description> | ||
This project tests pom artifacts filtering that may cause scanDependenciesForBindings fails on dependency of type pom. | ||
</description> | ||
<dependencies> | ||
<dependency> | ||
<groupId>org.apache.commons</groupId> | ||
<artifactId>commons-lang3</artifactId> | ||
<version>3.12.0</version> | ||
<type>pom</type> | ||
<scope>provided</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.glassfish.jaxb</groupId> | ||
<artifactId>jaxb-runtime</artifactId> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.jvnet.jaxb</groupId> | ||
<artifactId>jaxb-maven-plugin-testing</artifactId> | ||
<scope>test</scope> | ||
</dependency> | ||
</dependencies> | ||
<build> | ||
<plugins> | ||
<plugin> | ||
<groupId>org.jvnet.jaxb</groupId> | ||
<artifactId>jaxb-maven-plugin</artifactId> | ||
<executions> | ||
<execution> | ||
<id>generate</id> | ||
<goals> | ||
<goal>generate</goal> | ||
</goals> | ||
<configuration> | ||
<scanDependenciesForBindings>true</scanDependenciesForBindings> | ||
</configuration> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
</project> |
11 changes: 11 additions & 0 deletions
11
maven-plugin/tests/jt-194/src/main/resources/purchaseorder.xjb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<jxb:bindings | ||
xmlns:jxb="http://java.sun.com/xml/ns/jaxb" | ||
xmlns:xs="http://www.w3.org/2001/XMLSchema" | ||
xmlns:xjc="http://java.sun.com/xml/ns/jaxb/xjc" | ||
jxb:extensionBindingPrefixes="xjc" | ||
jxb:version="2.1"> | ||
<jxb:globalBindings generateValueClass="false"> | ||
<xjc:simple/> | ||
</jxb:globalBindings> | ||
</jxb:bindings> |
66 changes: 66 additions & 0 deletions
66
maven-plugin/tests/jt-194/src/main/resources/purchaseorder.xsd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"> | ||
|
||
<xsd:annotation> | ||
<xsd:documentation xml:lang="en"> | ||
Purchase order schema for Example.com. | ||
Copyright 2000 Example.com. All rights reserved. | ||
</xsd:documentation> | ||
</xsd:annotation> | ||
|
||
<xsd:element name="purchaseOrder" type="PurchaseOrderType"/> | ||
|
||
<xsd:element name="comment" type="xsd:string"/> | ||
|
||
<xsd:complexType name="PurchaseOrderType"> | ||
<xsd:sequence> | ||
<xsd:element name="shipTo" type="USAddress"/> | ||
<xsd:element name="billTo" type="USAddress"/> | ||
<xsd:element ref="comment" minOccurs="0"/> | ||
<xsd:element name="items" type="Items"/> | ||
</xsd:sequence> | ||
<xsd:attribute name="orderDate" type="xsd:date"/> | ||
</xsd:complexType> | ||
|
||
<xsd:complexType name="USAddress"> | ||
<xsd:sequence> | ||
<xsd:element name="name" type="xsd:string"/> | ||
<xsd:element name="street" type="xsd:string"/> | ||
<xsd:element name="city" type="xsd:string"/> | ||
<xsd:element name="state" type="xsd:string"/> | ||
<xsd:element name="zip" type="xsd:decimal"/> | ||
</xsd:sequence> | ||
<xsd:attribute name="country" type="xsd:NMTOKEN" | ||
fixed="US"/> | ||
</xsd:complexType> | ||
|
||
<xsd:complexType name="Items"> | ||
<xsd:sequence> | ||
<xsd:element name="item" minOccurs="0" maxOccurs="unbounded"> | ||
<xsd:complexType> | ||
<xsd:sequence> | ||
<xsd:element name="productName" type="xsd:string"/> | ||
<xsd:element name="quantity"> | ||
<xsd:simpleType> | ||
<xsd:restriction base="xsd:positiveInteger"> | ||
<xsd:maxExclusive value="100"/> | ||
</xsd:restriction> | ||
</xsd:simpleType> | ||
</xsd:element> | ||
<xsd:element name="USPrice" type="xsd:decimal"/> | ||
<xsd:element ref="comment" minOccurs="0"/> | ||
<xsd:element name="shipDate" type="xsd:date" minOccurs="0"/> | ||
</xsd:sequence> | ||
<xsd:attribute name="partNum" type="SKU" use="required"/> | ||
</xsd:complexType> | ||
</xsd:element> | ||
</xsd:sequence> | ||
</xsd:complexType> | ||
|
||
<!-- Stock Keeping Unit, a code for identifying products --> | ||
<xsd:simpleType name="SKU"> | ||
<xsd:restriction base="xsd:string"> | ||
<xsd:pattern value="\d{3}-[A-Z]{2}"/> | ||
</xsd:restriction> | ||
</xsd:simpleType> | ||
|
||
</xsd:schema> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters