$ mvn package exec:exec
...
[INFO] --- exec-maven-plugin:1.5.0:exec (default-cli) @ Secret ---
secret was additive
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.581 s
...
OR
...
[INFO] --- exec-maven-plugin:1.5.0:exec (default-cli) @ Secret ---
secret was not additive
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.718 s
...
You can customize the class and method that are used for secret's implementation using the following system variable configurations.
$ mvn package
$ java -Dsecret.classname=com.example.codechallenge.utilities.SecretImplementations -Dsecret.methodname=secretFailure1 -jar target/Secret-1.0.jar 12
secret() must be public and static.
Classes
- com.example.codechallenge.utilities.SecretImplementations
Methods
- secretSuccess1
- secretFailure1
- secretFailure2
- secretFailure3
- secretFailureEvil
$ mvn test
You can build an ecplise project by issuing the following command:
$ mvn eclipse:eclipse
jdk version: 1.7
Dependencies:
- Maven 3.3.9
- JUnit 4.11