Skip to content
This repository was archived by the owner on Apr 17, 2024. It is now read-only.

Commit 21fac25

Browse files
authored
Merge pull request #3 from 4Science/DS-4525
DS-4525 Update ORCID JAXB to version 3
2 parents 46345d5 + 1247b2a commit 21fac25

File tree

184 files changed

+10458
-6462
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

184 files changed

+10458
-6462
lines changed

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
language: java
22
sudo: false
3+
jdk:
4+
- openjdk8

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
This is an ORCID-Model Java API generated (using JAXB) from the official ORCID XSDs.
44

55
Resources:
6-
* ORCID-Model Official XSDs: https://github.com/ORCID/ORCID-Source/tree/master/orcid-model/src/main/resources
6+
* ORCID-Model Official XSDs: https://github.com/ORCID/orcid-model/tree/master/src/main/resources
77

88
***
99
:warning: WARNING: GENERATED SOURCE CODE
@@ -18,18 +18,18 @@ USE AT YOUR OWN RISK. This source code has only been tested with DSpace and may
1818
The below will regenerate/update the ORCID Java API stored in the `src/main/java` folder of this GitHub repo.
1919

2020
1. Clone this `orcid-jaxb-api` repo locally
21-
2. Clone the [ORCID-Source](https://github.com/ORCID/ORCID-Source/) repo (to a different location), and optionally checkout a specific tag:
21+
2. Clone the [ORCID-model](https://github.com/ORCID/orcid-model/) repo (to a different location), and optionally checkout a specific tag:
2222
```
23-
git clone https://github.com/ORCID/ORCID-Source.git
23+
git clone https://github.com/ORCID/orcid-model.git
2424
```
2525
3. Copy the necessary ORCID XSD folders into this repo's `src/main/resources/xsd/` folder. Check the POM `<schemaIncludes>` list for the XSDs we need.
2626
_Be sure not to overwrite the `.gitignore` already in the "empty" `xsd` folder, as we do NOT want to keep the XSDs in this repo!_
2727
```
2828
# Copy over common_2.1 XSDs
29-
cp -r [ORCID-Source]/orcid-model/src/main/resources/common_2.1 [orcid-jaxb-api]/src/main/resources/xsd/
29+
cp -r [ORCID-model]/src/main/resources/common_3.0 [orcid-jaxb-api]/src/main/resources/xsd/
3030
3131
# Copy over record_2.1 XSDs
32-
cp -r [ORCID-Source]/orcid-model/src/main/resources/record_2.1 [orcid-jaxb-api]/src/main/resources/xsd/
32+
cp -r [ORCID-model]/src/main/resources/record_3.0 [orcid-jaxb-api]/src/main/resources/xsd/
3333
```
3434
4. Build project (with profile `generate-sources-from-jaxb` enabled)
3535
```
@@ -44,7 +44,7 @@ The below will regenerate/update the ORCID Java API stored in the `src/main/java
4444

4545
## Build Project
4646

47-
After regenerating the ORCID Java API (using JAXB and ORCID's XSDs -- see above), you can easily build this project by just running:
47+
**The project requires JAVA 6-8 to build**. After regenerating the ORCID Java API (using JAXB and ORCID's XSDs -- see above), you can easily build this project by just running:
4848

4949
```
5050
mvn -U clean package

pom.xml

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
<groupId>org.dspace</groupId>
66
<artifactId>orcid-jaxb-api</artifactId>
7-
<version>2.1.1-SNAPSHOT</version>
7+
<version>3.0.0-SNAPSHOT</version>
88

99
<name>ORCID Java API generated via JAXB</name>
1010
<description>
@@ -53,8 +53,8 @@
5353
<schemaDirectory>${basedir}/src/main/resources/xsd</schemaDirectory>
5454
<!-- The entire list of XSDs we want to use to generate Java source code -->
5555
<schemaIncludes>
56-
<include>common_2.1/*.xsd</include>
57-
<include>record_2.1/*.xsd</include>
56+
<include>common_3.0/*.xsd</include>
57+
<include>record_3.0/*.xsd</include>
5858
</schemaIncludes>
5959
<episode>false</episode>
6060
<args>
@@ -63,7 +63,15 @@
6363
<arg>-XtoString</arg>
6464
<arg>-extension</arg>
6565
<arg>-Xnamespace-prefix</arg>
66+
<arg>-Xannotate</arg>
6667
</args>
68+
<plugins>
69+
<plugin>
70+
<groupId>org.jvnet.jaxb2_commons</groupId>
71+
<artifactId>jaxb2-basics-annotate</artifactId>
72+
<version>1.1.0</version>
73+
</plugin>
74+
</plugins>
6775
</configuration>
6876
<dependencies>
6977
<dependency>
@@ -193,6 +201,14 @@
193201
<tagNameFormat>orcid-jaxb-api-@{project.version}</tagNameFormat>
194202
</configuration>
195203
</plugin>
204+
<plugin>
205+
<artifactId>maven-compiler-plugin</artifactId>
206+
<version>3.0</version>
207+
<configuration>
208+
<source>1.6</source>
209+
<target>1.6</target>
210+
</configuration>
211+
</plugin>
196212
</plugins>
197213
</build>
198214

src/main/java/org/orcid/jaxb/model/common_v2/ClientType.java

Lines changed: 0 additions & 66 deletions
This file was deleted.

src/main/java/org/orcid/jaxb/model/common_v2/ContributorRole.java

Lines changed: 0 additions & 87 deletions
This file was deleted.

src/main/java/org/orcid/jaxb/model/common_v2/ContributorSequence.java

Lines changed: 0 additions & 60 deletions
This file was deleted.

0 commit comments

Comments
 (0)