Skip to content

Commit 4aa061d

Browse files
committed
feat: removed both Mongo and NPM
1 parent 1a5d99b commit 4aa061d

33 files changed

+336
-4374
lines changed

.github/workflows/docker-build.yml

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

.github/workflows/docker-push.yml

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

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
/.idea
22
/*.iml
33
/db
4-
/server/node_modules
54
/target

CONTRIBUTING.md

Lines changed: 10 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -4,37 +4,31 @@ Before creating a pull request:
44

55
1. Successfully built and run all unit tests.
66
2. Verified that the you can run using the server application.
7-
3. Make sure that the `./setup.sh` script works.
87

98
## Running Locally
109

10+
This has been made much simpler. The server has been re-written in Java, and data is stored in `target/scans` rather
11+
than in a Mongo database.
12+
1113
Install:
1214

1315
- Java
1416
- Maven
15-
- NPM
16-
17-
Start mongo:
1817

1918
```bash
20-
docker compose up mongo
19+
# install
20+
mvn package
21+
cp -v target/maven-build-scanner-jar-with-dependencies.jar $(mvn help:evaluate -Dexpression=maven.home -DforceStdout -q)/lib/ext/
2122
```
2223

23-
Start UI:
24-
2524
```bash
26-
cd server
27-
npm install
28-
npm start
25+
# create a scan
26+
mvn test
2927
```
3028

31-
Install extension:
32-
3329
```bash
34-
mvn dependency:go-offline
35-
mvn clean package
36-
cp -v target/maven-build-scanner-jar-with-dependencies.jar $(mvn help:evaluate -Dexpression=maven.home -DforceStdout -q)/lib/ext/
30+
# run server
31+
java -jar target/maven-build-scanner-jar-with-dependencies.jar
3732
```
3833

39-
4034
Open UI on <http://localhost:3000>.

README.md

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,8 @@ Install the following:
2929

3030
* Java
3131
* Maven
32-
* Docker
3332

3433
```bash
35-
# run a mongo database
36-
docker run -d --rm -p 27017:27017 --name mongo mongo
37-
# run the web server
38-
docker run -d --rm -p 3000:3000 -e MONGO_DB_HOST=host.docker.internal --name maven-build-scanner-server alexcollinsintuit/maven-build-scanner-server
3934
# Install the Maven extension:
4035
output="$(mvn help:evaluate -Dexpression=maven.home -DforceStdout -q)/lib/ext/maven-build-scanner-jar-with-dependencies.jar"
4136
curl -L https://github.com/intuit/maven-build-scanner/releases/download/v1.0.0/maven-build-scanner-jar-with-dependencies.jar -o $output
@@ -47,6 +42,12 @@ curl -L https://github.com/intuit/maven-build-scanner/releases/download/v1.0.0/m
4742
mvn install
4843
```
4944

45+
```bash
46+
# Start the server to view your results:
47+
output="$(mvn help:evaluate -Dexpression=maven.home -DforceStdout -q)/lib/ext/maven-build-scanner-jar-with-dependencies.jar"
48+
java -jar $output
49+
```
50+
5051
This will print out a URL to the report. The report will show:
5152

5253
* A timeline of the build, so you can see how effective concurrency is being used.
@@ -59,6 +60,4 @@ This will print out a URL to the report. The report will show:
5960
```bash
6061
output="$(mvn help:evaluate -Dexpression=maven.home -DforceStdout -q)/lib/ext/maven-build-scanner-jar-with-dependencies.jar"
6162
rm -f $output
62-
docker rm --force maven-build-scanner-server
63-
docker rm --force mongo
6463
```

pom.xml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@
3030
<version>2.14.1</version>
3131
</dependency>
3232
<dependency>
33-
<groupId>org.mongodb</groupId>
34-
<artifactId>mongodb-driver</artifactId>
35-
<version>3.12.11</version>
33+
<groupId>org.apache.commons</groupId>
34+
<artifactId>commons-io</artifactId>
35+
<version>2.4</version>
3636
</dependency>
3737
<dependency>
3838
<groupId>org.slf4j</groupId>
@@ -104,6 +104,11 @@
104104
<artifactId>maven-assembly-plugin</artifactId>
105105
<version>3.4.2</version>
106106
<configuration>
107+
<archive>
108+
<manifest>
109+
<mainClass>com.intuit.maven.extensions.build.scanner.Server</mainClass>
110+
</manifest>
111+
</archive>
107112
<descriptorRefs>
108113
<descriptorRef>jar-with-dependencies</descriptorRef>
109114
</descriptorRefs>

server/.dockerignore

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

server/.eslintrc.js

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

server/Dockerfile

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

server/app.js

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

0 commit comments

Comments
 (0)