File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # These files need to be under the sense-rm build context so they
2+ # are available under the docker mount.
3+ # KEYFILE="certificates/host.key"
4+ # CERTFILE="certificates/host.cer"
5+ # CAFILE="certificates/host.ca"
6+
7+ all : build
8+
9+ .PHONY : build test clean
10+ build :
11+ docker run -it --rm --name nsi-common-lib-build \
12+ -v " $( PWD) " :/usr/src/mymaven \
13+ -v " $( HOME) /.m2" :/root/.m2 \
14+ -w /usr/src/mymaven \
15+ maven:3.8.1-openjdk-15-slim mvn clean install -DskipTests=true
16+
17+ test :
18+ docker run -it --rm --name nsi-common-lib-test \
19+ -v " $( PWD) " :/usr/src/mymaven \
20+ -v " $( HOME) /.m2" :/root/.m2 \
21+ -w /usr/src/mymaven \
22+ -p 8801:8801 \
23+ -p 8802:8802 \
24+ maven:3.8.1-openjdk-15-slim mvn clean install
25+
26+ # -Dtest=AgoleManifestReaderTest#loadMasterList
27+
28+ clean :
29+ docker run -it --rm --name nsi-common-lib-clean \
30+ -v "$(PWD ) " :/usr/src/mymaven \
31+ -v "$(HOME ) /.m2" :/root/.m2 \
32+ -w /usr/src/mymaven \
33+ maven :3.8.1-openjdk-15-slim mvn clean
34+
35+ docker :
36+
Original file line number Diff line number Diff line change 55
66 <groupId >net.es.nsi</groupId >
77 <artifactId >common-lib</artifactId >
8- <version >0.1 .0</version >
8+ <version >1.0 .0</version >
99 <packaging >jar</packaging >
1010
1111 <properties >
1515 <project .reporting.outputEncoding>UTF-8</project .reporting.outputEncoding>
1616 </properties >
1717
18- <!-- <parent>
19- <groupId>org.springframework.boot</groupId>
20- <artifactId>spring-boot-starter-parent</artifactId>
21- <version>2.1.2.RELEASE</version>
22- </parent>
23- -->
2418 <dependencies >
2519 <!-- Needed for our use of JAXB API bindings. -->
2620 <dependency >
271265 </plugins >
272266 </build >
273267
274- <distributionManagement >
268+ <profiles >
269+ <profile >
270+ <id >examples-source-zip</id >
271+ <build >
272+ <plugins >
273+ <plugin >
274+ <groupId >org.apache.maven.plugins</groupId >
275+ <artifactId >maven-assembly-plugin</artifactId >
276+ </plugin >
277+ </plugins >
278+ </build >
279+ </profile >
280+ </profiles >
281+
282+ <repositories >
283+ <repository >
284+ <id >central</id >
285+ <url >https://repo1.maven.org/maven2/</url >
286+ </repository >
287+ <repository >
288+ <id >github</id >
289+ <url >https://maven.pkg.github.com/OWNER/*</url >
290+ <snapshots >
291+ <enabled >true</enabled >
292+ </snapshots >
293+ </repository >
294+ </repositories >
295+
296+ <distributionManagement >
275297 <repository >
276298 <id >github</id >
277- <name >GitHub BanwidthOnDemand nsi-dds Apache Maven Packages</name >
278- <url >https://maven.pkg.github.com/BandwidthOnDemand/nsi-dds -lib</url >
299+ <name >GitHub BanwidthOnDemand nsi-dds-lib Apache Maven Packages</name >
300+ <url >https://maven.pkg.github.com/BandwidthOnDemand/nsi-common -lib</url >
279301 </repository >
280302 </distributionManagement >
281303
You can’t perform that action at this time.
0 commit comments