Skip to content

Commit

Permalink
update Maven dev guide #498
Browse files Browse the repository at this point in the history
  • Loading branch information
walterxie committed Sep 17, 2024
1 parent 7e0fdc6 commit b48896b
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions DEV_NOTE3.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,19 +22,29 @@ https://maven.apache.org/plugins/maven-jar-plugin/examples/create-test-jar.html

## Release

1. Git pull, and then build and test. If there is no issues, go to the next step.

2. Update the version in "pom.xml". If the project is also a BEAST2 package, e.g. LPhyBeast,
you need to update the "version.xml" as well.

3. Run the `install` command to create the release.

```bash
mvn clean package
mvn clean install
```

The release will be available under the build directory `target`.

```bash
mvn clean package -Dmaven.test.skip
mvn clean install -Dmaven.test.skip
```

4. Find the jar or zip file in the corresponding `target` folder, and upload it to Github release.


## Useful Links

- [Maven in 5 Minutes](https://maven.apache.org/guides/getting-started/maven-in-five-minutes.html)
- [List of predefined Maven properties](https://github.com/cko/predefined_maven_properties/blob/master/README.md)

- [How are "mvn clean package" and "mvn clean install" different?](https://stackoverflow.com/questions/16602017/how-are-mvn-clean-package-and-mvn-clean-install-different)

0 comments on commit b48896b

Please sign in to comment.