Skip to content

Commit 3b66ab6

Browse files
committed
[Build] Remove warnings caused by the cucumber-archetype
1 parent 9fb0755 commit 3b66ab6

File tree

2 files changed

+18
-5
lines changed

2 files changed

+18
-5
lines changed

CONTRIBUTING.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,19 @@ We appreciate that. Do keep the following in mind:
1010
code/output. See [GitHub Flavored Markdown](https://help.github.com/articles/github-flavored-markdown)'s
1111
*Fenced Code Blocks* for details.
1212

13+
## Building
14+
15+
When building the project for the first time, run:
16+
17+
```
18+
mvn install -DskipTests=true -DskipITs=true -Darchetype.test.skip=true
19+
```
20+
21+
The `cucumber-archetype` modules integration tests against `-SNAPSHOT`
22+
versions of Cucumber. These must be installed first.
23+
24+
Afterwards `mvn test` or `mvn verify` should work as expected.
25+
1326
## Formatting Java
1427

1528
The source code is formatted automatically by spotless when running:

cucumber-archetype/pom.xml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,6 @@
1818
<junit-jupiter.version>5.9.1</junit-jupiter.version>
1919
</properties>
2020

21-
<!-- Not used by this module, but used by the integration tests of
22-
created project. Declaring the dependencies keeps the project
23-
in the right order in the maven reactor -->
2421
<dependencyManagement>
2522
<dependencies>
2623
<dependency>
@@ -30,7 +27,7 @@
3027
<type>pom</type>
3128
<scope>import</scope>
3229
</dependency>
33-
<!-- Also not used by this module. But ensures the junit-jupiter.version
30+
<!-- Not used by this module. But ensures the junit-jupiter.version
3431
in the archetype template is also automatically updated by renovate
3532
bot. -->
3633
<dependency>
@@ -44,12 +41,15 @@
4441
</dependencyManagement>
4542

4643
<dependencies>
44+
<!-- Also not used by this module, but used by the integration tests of
45+
created project. Declaring the dependencies keeps the project
46+
in the right order in the maven reactor -->
4747
<dependency>
4848
<groupId>io.cucumber</groupId>
4949
<artifactId>cucumber-bom</artifactId>
5050
<version>${project.version}</version>
5151
<type>pom</type>
52-
<scope>import</scope>
52+
<scope>test</scope>
5353
</dependency>
5454
<dependency>
5555
<groupId>io.cucumber</groupId>

0 commit comments

Comments
 (0)