- process-resources resources:resources
- compile compiler:compile
- process-test-resources resources:testResources
- test-compile compiler:testCompile
- test surefire:test
- package jar:jar
- install install:install
- deploy deploy:deploy
mvn exec:java -Dexec.mainClass="com.example.Main" [-Dexec.args="argument1"]
OR
<project>
...
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
mvn dependency:resolve
mvn dependency:tree
<build>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.5</source>
<target>1.5</target>
</configuration>
</plugin>
git tag v1.0-Final #sets lightweight tag as v1.0-Final on last commit
git tag #list tags
git push --tags #pushes tags to github
Good unit test properties:
- It should be automated and repeatable.
- It should be easy to implement.
- Once it’s written, it should remain for future use.
- Anyone should be able to run it.
- It should run at the push of a button.
- It should run quickly.
Good unit test definition:
- Code Complete (2nd edition) by Steve McConnell
- The Pragmatic Programmer
- Structure and Interpretation of Computer Programs
- The C Programming Language by Kernighan and Ritchie
- Introduction to Algorithms by Cormen, Leiserson, Rivest & Stein
- Design Patterns by the Gang of Four
- Refactoring: Improving the Design of Existing Code
- The Mythical Man Month
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| start 'c:\path\export.sql'; |
int a = 4, b = 6;
a^= b^= a^= b;
Works for all types including strings and floats.