File tree Expand file tree Collapse file tree 4 files changed +21
-116
lines changed Expand file tree Collapse file tree 4 files changed +21
-116
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -38,57 +38,9 @@ Install the following:
3838docker run -d --rm -p 27017:27017 --name mongo mongo
3939# run the web server
4040docker run -d --rm -p 3000:3000 -e MONGO_DB_HOST=host.docker.internal --name maven-build-scanner-server alexcollinsintuit/maven-build-scanner-server
41- ```
42-
43- Edit ` ~/.m2/settings.xml ` and add the following profile:
44-
45- ``` xml
46-
47- <settings xmlns =" http://maven.apache.org/SETTINGS/1.0.0"
48- xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
49- xsi : schemaLocation =" http://maven.apache.org/SETTINGS/1.0.0
50- http://maven.apache.org/xsd/settings-1.0.0.xsd" >
51-
52- <activeProfiles >
53- <activeProfile >github</activeProfile >
54- </activeProfiles >
55-
56- <profiles >
57- <profile >
58- <id >github</id >
59- <repositories >
60- <repository >
61- <id >central</id >
62- <url >https://repo1.maven.org/maven2</url >
63- </repository >
64- <repository >
65- <id >github</id >
66- <url >https://maven.pkg.github.com/intuit/maven-build-scanner</url >
67- <snapshots >
68- <enabled >true</enabled >
69- </snapshots >
70- </repository >
71- </repositories >
72- </profile >
73- </profiles >
74-
75- </settings >
76- ```
77-
78- Edit your ` pom.xml ` and add the following:
79-
80- ``` xml
81- <project >
82- <build >
83- <extensions >
84- <extension >
85- <groupId >com.intuit</groupId >
86- <artifactId >maven-build-scanner</artifactId >
87- <version >1.0.0-SNAPSHOT</version >
88- </extension >
89- </extensions >
90- </build >
91- </project >
41+ # Install the Maven extension:
42+ output=" $( mvn help:evaluate -Dexpression=maven.home -DforceStdout -q) /lib/ext/maven-build-scanner-jar-with-dependencies.jar"
43+ curl -L https://github.com/intuit/maven-build-scanner/releases/download/v1.0.0/maven-build-scanner-jar-with-dependencies.jar -o $output
9244
9345```
9446
Original file line number Diff line number Diff line change 100100 </execution >
101101 </executions >
102102 </plugin >
103+ <plugin >
104+ <artifactId >maven-assembly-plugin</artifactId >
105+ <version >3.4.2</version >
106+ <configuration >
107+ <descriptorRefs >
108+ <descriptorRef >jar-with-dependencies</descriptorRef >
109+ </descriptorRefs >
110+ </configuration >
111+ <executions >
112+ <execution >
113+ <id >make-assembly</id >
114+ <phase >package</phase >
115+ <goals >
116+ <goal >single</goal >
117+ </goals >
118+ </execution >
119+ </executions >
120+ </plugin >
103121 </plugins >
104- <!--
105- <extensions>
106- <extension>
107- <groupId>com.intuit</groupId>
108- <artifactId>maven-build-scanner</artifactId>
109- <version>1.0.0-SNAPSHOT</version>
110- </extension>
111- </extensions>
112- -->
113122 </build >
114- <distributionManagement >
115- <repository >
116- <id >github</id >
117- <name >GitHub Packages</name >
118- <url >https://maven.pkg.github.com/intuit/maven-build-scanner</url >
119- </repository >
120- </distributionManagement >
121123</project >
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments