Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gaol/java-parent
Maven parent project with handy configuration and plugins
https://github.com/gaol/java-parent
Last synced: 19 days ago
JSON representation
Maven parent project with handy configuration and plugins
- Host: GitHub
- URL: https://github.com/gaol/java-parent
- Owner: gaol
- Created: 2020-07-18T01:39:14.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-11-21T14:59:25.000Z (about 2 months ago)
- Last Synced: 2024-11-21T15:33:49.501Z (about 2 months ago)
- Size: 28.3 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# java-parent
Maven parent project with handy configuration and plugins## Enable debug when executing the test case
> mvn clean install -Djpda
or
> mvn clean install -Pjpda
This will start the `maven-surefire-plugin` with the following arguments:
> -agentlib:jdwp=transport=dt_socket,address=8787,server=y,suspend=y
The test will suspend and wait remote debugging on part: `8787`
## Run tests on JDK 9 +
Modules are introduced in JDK9+, to be able to run the tests on JDK9+, the following arguments are added:
```
--add-exports=java.base/sun.nio.ch=ALL-UNNAMED
--add-exports=jdk.unsupported/sun.reflect=ALL-UNNAMED
--add-exports=jdk.unsupported/sun.misc=ALL-UNNAMED
--add-modules=java.se
```## How to use this project
* Add parent to your pom:
```
io.github.gaol
java-parent
1.0.1
```that is all.
### Release your project
If you specify this parent project, you can use the following command to do maven release and deploy to [Sonatype](https://oss.sonatype.org/):
```
mvn -Prelease release:prepare
mvn -Prelease release:perform
```### Some notes to release to maven central
* Specify project name, description, url in your pom
* Specify SCM information in your pom
* Specify developer information in your pomMore requirement, refer to: https://central.sonatype.org/pages/requirements.html