Skip to content

Commit 53d3406

Browse files
authored
Create artifact with software list (#1033)
1 parent a0fa61a commit 53d3406

File tree

4 files changed

+73
-1
lines changed

4 files changed

+73
-1
lines changed

.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,5 @@ docs/build
1515
release.properties
1616
dist/
1717
yarn-debug.log*
18-
yarn-error.log*
18+
yarn-error.log*
19+
ddf-ui-deplist.out

pom.xml

+1
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
<module>ui-backend</module>
4242
<module>ui-frontend</module>
4343
<module>docs</module>
44+
<module>software-list</module>
4445
</modules>
4546

4647
<properties>

software-list/generate-sw-list.sh

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# generate the software list
2+
mvn dependency:list -DexcludeTransitive=true -DincludeScope=runtime -DexcludeGroupIds=com.connexta,ddf,org.codice -pl '!docs,!ui-frontend' | grep -i compile | sort | uniq -u | cut -d ":" -f 2,4 | sed s/:/-/g > ddf-ui-deplist.out

software-list/pom.xml

+68
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
/**
4+
* Copyright (c) Codice Foundation
5+
*
6+
* This is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either
7+
* version 3 of the License, or any later version.
8+
*
9+
* This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
10+
* See the GNU Lesser General Public License for more details. A copy of the GNU Lesser General Public License is distributed along with this program and can be found at
11+
* <http://www.gnu.org/licenses/lgpl.html>.
12+
*
13+
**/
14+
-->
15+
<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/xsd/maven-4.0.0.xsd">
16+
<modelVersion>4.0.0</modelVersion>
17+
<parent>
18+
<groupId>org.codice.ddf.search</groupId>
19+
<artifactId>catalog-ui</artifactId>
20+
<version>5.2.13-SNAPSHOT</version>
21+
</parent>
22+
<artifactId>software-list</artifactId>
23+
<groupId>org.codice.ddf.search</groupId>
24+
<name>DDF UI :: Software List</name>
25+
<build>
26+
<plugins>
27+
<plugin>
28+
<groupId>org.codehaus.mojo</groupId>
29+
<artifactId>exec-maven-plugin</artifactId>
30+
<executions>
31+
<execution>
32+
<id>generate-sw-list</id>
33+
<phase>prepare-package</phase>
34+
<goals>
35+
<goal>exec</goal>
36+
</goals>
37+
</execution>
38+
</executions>
39+
<configuration>
40+
<workingDirectory>${maven.multiModuleProjectDirectory}</workingDirectory>
41+
<executable>${project.basedir}/generate-sw-list.sh</executable>
42+
</configuration>
43+
</plugin>
44+
<plugin>
45+
<groupId>org.codehaus.mojo</groupId>
46+
<artifactId>build-helper-maven-plugin</artifactId>
47+
<executions>
48+
<execution>
49+
<id>attach-artifacts</id>
50+
<phase>package</phase>
51+
<goals>
52+
<goal>attach-artifact</goal>
53+
</goals>
54+
<configuration>
55+
<artifacts>
56+
<artifact>
57+
<file>${maven.multiModuleProjectDirectory}/ddf-ui-deplist.out</file>
58+
<type>txt</type>
59+
<classifier>ddf-ui</classifier>
60+
</artifact>
61+
</artifacts>
62+
</configuration>
63+
</execution>
64+
</executions>
65+
</plugin>
66+
</plugins>
67+
</build>
68+
</project>

0 commit comments

Comments
 (0)