public:javabestpractises
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
public:javabestpractises [2015/12/07 12:36] – created Konrad Hoeffner | public:javabestpractises [2021/04/29 11:42] (current) – [Maven] Carl Suckfuell | ||
---|---|---|---|
Line 8: | Line 8: | ||
===== Maven ===== | ===== Maven ===== | ||
+ | |||
+ | Maven makes it easier to include dependencies //and// to let other people depend and work on your code. | ||
+ | |||
+ | Please take care, to solely use HTTPS in your repository URLs, to avoid https:// | ||
Maven 3 pom.xml template (change the compiler source to your liking): | Maven 3 pom.xml template (change the compiler source to your liking): | ||
< | < | ||
- | <project xmlns=" | + | <project xmlns=" |
< | < | ||
< | < | ||
Line 23: | Line 27: | ||
< | < | ||
</ | </ | ||
+ | <!-- remove repositories you don't use--> | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | </ | ||
< | < | ||
Line 46: | Line 68: | ||
If you have a stable project, create a release (non-snapshot) version, as it decrease network traffic and increase speed tremendously. | If you have a stable project, create a release (non-snapshot) version, as it decrease network traffic and increase speed tremendously. | ||
+ | |||
===== Logging ===== | ===== Logging ===== | ||
- | SLF4j | + | SLF4j is a collection of interfaces for logger abstraction |
- | is a collection of interfaces for logger abstraction, | + | |
===== Encoding and Line Endings ===== | ===== Encoding and Line Endings ===== | ||
Please always use UTF-8 encoding. Line endings will usually handled by git so that you can choose those as you prefer. | Please always use UTF-8 encoding. Line endings will usually handled by git so that you can choose those as you prefer. | ||
+ | |||
+ | ===== Further Reading ===== | ||
+ | |||
+ | For general (not AKSW-specific) guidelines, see http:// | ||
public/javabestpractises.1449488194.txt.gz · Last modified: 2015/12/07 12:36 by Konrad Hoeffner