Skip to content

Commit

Permalink
[SUREFIRE-1994] Upgrade javacc-maven-plugin, add setup instructions f…
Browse files Browse the repository at this point in the history
…or IDEs
  • Loading branch information
spannm authored and Tibor17 committed Feb 4, 2022
1 parent 5de5d94 commit 463fb64
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 3 deletions.
20 changes: 19 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,25 @@ Build the Surefire project using **Maven 3.2.5+** and **JDK 1.8+**.
```
mvn install site site:stage -P reporting,run-its
```


* To set up the project in [Eclipse IDE](https://www.eclipse.org/), please follow these steps:

* Build module `surefire-shared-utils` with profile `ide-development` and install it into the local maven repository using this Maven command:
```
mvn install -P ide-development -f surefire-shared-utils/pom.xml
```
* Build module `surefire-grouper` in order to generate and compile sources into `target/generated-sources/javacc` using this Maven command:
```
mvn compile -f surefire-grouper/pom.xml
```
* In Eclipse, select _File > Import ... > Maven Project_

* Select all projects (poms) except `surefire-shared-utils`,
enter profile `ide-development` in _Advanced -> Profiles_
* Check module `surefire-grouper` has source folder `target/generated-sources/javacc`.
If not, add it manually in the module's project properties

* Setup for development in [IntelliJ IDEA](https://www.jetbrains.com/idea/) should work out of the box.

### Deploying web site

Expand Down
11 changes: 9 additions & 2 deletions surefire-grouper/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<groupId>org.javacc.plugin</groupId>
<artifactId>javacc-maven-plugin</artifactId>
<version>2.6</version>
<version>3.0.3</version>
<executions>
<execution>
<id>javacc</id>
Expand All @@ -46,6 +46,13 @@
</goals>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>net.java.dev.javacc</groupId>
<artifactId>javacc</artifactId>
<version>7.0.10</version>
</dependency>
</dependencies>
</plugin>
<plugin>
<groupId>org.jacoco</groupId>
Expand Down

0 comments on commit 463fb64

Please sign in to comment.