Skip to content
This repository was archived by the owner on May 14, 2025. It is now read-only.

Commit f4154ad

Browse files
ghillertilayaperumalg
authored andcommitted
gh-784 Maven - Support -DskipTests=true
1 parent 2ea34a6 commit f4154ad

File tree

2 files changed

+20
-4
lines changed

2 files changed

+20
-4
lines changed

pom.xml

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@
9696
<executions>
9797
<execution>
9898
<id>install node and npm</id>
99+
<phase>generate-resources</phase>
99100
<goals>
100101
<goal>install-node-and-npm</goal>
101102
</goals>
@@ -105,29 +106,42 @@
105106
</execution>
106107
<execution>
107108
<id>npm install</id>
109+
<phase>generate-resources</phase>
108110
<goals>
109111
<goal>npm</goal>
110112
</goals>
111113
<configuration>
112114
<arguments>install</arguments>
113115
</configuration>
114116
</execution>
117+
<execution>
118+
<id>npm doc</id>
119+
<phase>generate-resources</phase>
120+
<goals>
121+
<goal>npm</goal>
122+
</goals>
123+
<configuration>
124+
<arguments>run doc</arguments>
125+
</configuration>
126+
</execution>
115127
<execution>
116128
<id>npm build</id>
129+
<phase>compile</phase>
117130
<goals>
118131
<goal>npm</goal>
119132
</goals>
120133
<configuration>
121-
<arguments>run mavenbuild</arguments>
134+
<arguments>run mavenbuild-without-tests</arguments>
122135
</configuration>
123136
</execution>
124137
<execution>
125-
<id>npm doc</id>
138+
<id>npm test</id>
139+
<phase>test</phase>
126140
<goals>
127141
<goal>npm</goal>
128142
</goals>
129143
<configuration>
130-
<arguments>run doc</arguments>
144+
<arguments>run mavenbuild-tests</arguments>
131145
</configuration>
132146
</execution>
133147
</executions>

ui/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@
1515
"e2e-browserstack-local": "ng e2e --proxy-config proxy.conf.json --host dataflow.local --config protractor-browserstack.conf.js -prod",
1616
"install": "napa pivotal-cf/pivotal-ui:pivotal-ui-git-clone",
1717
"doc": "./node_modules/.bin/compodoc -p tsconfig.json -n \"Spring Cloud Data Flow Dashboard Documentation\"",
18-
"mavenbuild": "node ./node_modules/@angular/cli/bin/ng test --code-coverage true --watch false --browsers ChromeHeadless && node ./node_modules/@angular/cli/bin/ng build --prod --output-path ./../src/main/resources/public/dashboard --base-href /dashboard/",
18+
"mavenbuild-tests": "node ./node_modules/@angular/cli/bin/ng test --code-coverage true --watch false --browsers ChromeHeadless",
19+
"mavenbuild-without-tests": "node ./node_modules/@angular/cli/bin/ng build --prod --output-path ./../target/classes/public/dashboard --base-href /dashboard/",
20+
"mavenbuild": "node ./node_modules/@angular/cli/bin/ng test --code-coverage true --watch false --browsers ChromeHeadless && node ./node_modules/@angular/cli/bin/ng build --prod --output-path ./../target/classes/public/dashboard --base-href /dashboard/",
1921
"bundle-report": "webpack-bundle-analyzer dist/stats.json"
2022
},
2123
"private": true,

0 commit comments

Comments
 (0)