Skip to content

Commit 69efede

Browse files
author
Mike Cayanan
committed
Added deploy scripts for the model tree
1 parent dea87ed commit 69efede

File tree

4 files changed

+224
-0
lines changed

4 files changed

+224
-0
lines changed

pom-en.xml

Lines changed: 119 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,119 @@
1+
<?xml version="1.0" encoding="ISO-8859-1"?>
2+
3+
<!--
4+
Copyright 2016-2018, by the California Institute of Technology.
5+
ALL RIGHTS RESERVED. United States Government Sponsorship acknowledged.
6+
Any commercial use must be negotiated with the Office of Technology
7+
Transfer at the California Institute of Technology.
8+
9+
This software is subject to U. S. export control laws and regulations
10+
(22 C.F.R. 120-130 and 15 C.F.R. 730-774). To the extent that the software
11+
is subject to U.S. export control laws and regulations, the recipient has
12+
the responsibility to obtain export licenses or other export authority as
13+
may be required before exporting such information to foreign countries or
14+
providing access to foreign nationals.
15+
-->
16+
17+
<project>
18+
<modelVersion>4.0.0</modelVersion>
19+
<parent>
20+
<groupId>gov.nasa.pds</groupId>
21+
<artifactId>pds-en</artifactId>
22+
<version>0.0.0</version>
23+
</parent>
24+
25+
<groupId>gov.nasa.pds.2010</groupId>
26+
<artifactId>model</artifactId>
27+
<version>9.1.0</version>
28+
<packaging>pom</packaging>
29+
30+
<name>Model</name>
31+
<description>
32+
The Model package describes the information model in use by PDS4.
33+
</description>
34+
<url>https://pds-cm.jpl.nasa.gov/pds4/model/</url>
35+
36+
<licenses>
37+
<license>
38+
<name>California Institute of Technology</name>
39+
<url>file:///${basedir}/LICENSE.txt</url>
40+
<distribution>repo</distribution>
41+
</license>
42+
</licenses>
43+
44+
<modules>
45+
<module>model-dmdocument</module>
46+
<module>model-ontology</module>
47+
<module>model-lddtool</module>
48+
</modules>
49+
50+
<developers>
51+
<developer>
52+
<name>Sean Hardman</name>
53+
<id>shardman</id>
54+
<email>[email protected]</email>
55+
<organization>NASA Jet Propulsion Laboratory</organization>
56+
<roles>
57+
<role>Development Lead</role>
58+
</roles>
59+
</developer>
60+
<developer>
61+
<name>Sean Kelly</name>
62+
<id>kelly</id>
63+
<email>[email protected]</email>
64+
<organization>NASA Jet Propulsion Laboratory</organization>
65+
<roles>
66+
<role>Developer</role>
67+
</roles>
68+
</developer>
69+
<developer>
70+
<name>Pearl Haw</name>
71+
<id>pearl</id>
72+
<email>[email protected]</email>
73+
<organization>NASA Jet Propulsion Laboratory</organization>
74+
<roles>
75+
<role>Developer</role>
76+
</roles>
77+
</developer>
78+
<developer>
79+
<name>Steve Hughes</name>
80+
<email>[email protected]</email>
81+
<organization>NASA Jet Propulsion Laboratory</organization>
82+
<roles>
83+
<role>System Engineering Lead</role>
84+
<role>Developer</role>
85+
</roles>
86+
</developer>
87+
</developers>
88+
89+
<contributors>
90+
<contributor>
91+
<name>Ron Joyner</name>
92+
<email>[email protected]</email>
93+
<organization>NASA Jet Propulsion Laboratory</organization>
94+
<roles>
95+
<role>System Engineer</role>
96+
</roles>
97+
</contributor>
98+
</contributors>
99+
100+
<repositories>
101+
<!-- Hosts the PDS and OODT artifacts. -->
102+
<repository>
103+
<id>pds-repo</id>
104+
<name>PDS Maven Repository</name>
105+
<url>https://pds-cm.jpl.nasa.gov/maven2</url>
106+
<releases>
107+
<enabled>true</enabled>
108+
<updatePolicy>always</updatePolicy>
109+
<checksumPolicy>warn</checksumPolicy>
110+
</releases>
111+
<snapshots>
112+
<enabled>false</enabled>
113+
</snapshots>
114+
</repository>
115+
</repositories>
116+
117+
<!-- Project Information and Reports inherited from parent. -->
118+
<reporting/>
119+
</project>

util/mvn-deploy.sh

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
#!/bin/sh
2+
# Copyright 2010-2017, by the California Institute of Technology.
3+
# ALL RIGHTS RESERVED. United States Government sponsorship acknowledged.
4+
# Any commercial use must be negotiated with the Office of Technology Transfer
5+
# at the California Institute of Technology.
6+
#
7+
# This software is subject to U. S. export control laws and regulations
8+
# (22 C.F.R. 120-130 and 15 C.F.R. 730-774). To the extent that the software
9+
# is subject to U.S. export control laws and regulations, the recipient has
10+
# the responsibility to obtain export licenses or other export authority as
11+
# may be required before exporting such information to foreign countries or
12+
# providing access to foreign nationals.
13+
#
14+
# $Id$
15+
16+
# This script traverses the module directories to deploy the artifacts
17+
# to the Maven repository.
18+
19+
20+
cd ..
21+
22+
mvn deploy --non-recursive
23+
cd model-dmdocument
24+
mvn site
25+
mvn deploy
26+
cd ../model-lddtool
27+
mvn site
28+
mvn deploy
29+
cd ../model-ontology
30+
mvn site
31+
mvn deploy
32+
cd ..

util/mvn-package-copy.sh

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
#!/bin/sh
2+
# Copyright 2012-2017, by the California Institute of Technology.
3+
# ALL RIGHTS RESERVED. United States Government sponsorship acknowledged.
4+
# Any commercial use must be negotiated with the Office of Technology Transfer
5+
# at the California Institute of Technology.
6+
#
7+
# This software is subject to U. S. export control laws and regulations
8+
# (22 C.F.R. 120-130 and 15 C.F.R. 730-774). To the extent that the software
9+
# is subject to U.S. export control laws and regulations, the recipient has
10+
# the responsibility to obtain export licenses or other export authority as
11+
# may be required before exporting such information to foreign countries or
12+
# providing access to foreign nationals.
13+
#
14+
# $Id$
15+
16+
# This script creates a package of the package artifacts so that they
17+
# can be copied to the FTP site.
18+
19+
cd ..
20+
mkdir -p target/model-packages
21+
cd target/model-packages
22+
23+
echo "Copying the Model packages to the package directory."
24+
cp ../../model-lddtool/target/lddtool*bin* .
25+
26+
# Create the package of packages
27+
28+
echo "Creating the package of model-packages."
29+
cd ..
30+
tar czvf model-packages.tar.gz ./model-packages

util/mvn-site-deploy-en.sh

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
#!/bin/sh
2+
# Copyright 2010-2018, by the California Institute of Technology.
3+
# ALL RIGHTS RESERVED. United States Government sponsorship acknowledged.
4+
# Any commercial use must be negotiated with the Office of Technology Transfer
5+
# at the California Institute of Technology.
6+
#
7+
# This software is subject to U. S. export control laws and regulations
8+
# (22 C.F.R. 120-130 and 15 C.F.R. 730-774). To the extent that the software
9+
# is subject to U.S. export control laws and regulations, the recipient has
10+
# the responsibility to obtain export licenses or other export authority as
11+
# may be required before exporting such information to foreign countries or
12+
# providing access to foreign nationals.
13+
#
14+
# $Id$
15+
16+
# This script traverses the module directories to build and deploy
17+
# the associated sites with the EN skin to a deployment directory.
18+
19+
if [ $# != 1 ] ; then
20+
echo "Usage $0 <deployment-directory>"
21+
exit 1
22+
fi
23+
24+
cd ..
25+
mvn clean
26+
27+
mvn --non-recursive install clean
28+
cd model-dmdocument
29+
mvn install clean
30+
cd ..
31+
32+
# Build each site (recursive).
33+
mvn --file pom-en.xml site
34+
35+
echo "Deploying Model component sites to the deployment directory."
36+
mkdir -p $1/model
37+
cp -r target/site/* $1/model
38+
mkdir -p $1/model-dmdocument
39+
cp -r model-dmdocument/target/site/* $1/model/model-dmdocument
40+
mkdir -p $1/model/model-lddtool
41+
cp -r model-lddtool/target/site/* $1/model/model-lddtool
42+
mkdir -p $1/model/model-ontology
43+
cp -r model-ontology/target/site/* $1/model/model-ontology

0 commit comments

Comments
 (0)