Maven Dependency Updates

Mar 4, 2016 1 min.

Use the following command to find any updates on dependencies mvn versions:display-dependency-updates Sample Output: $ mvn versions:display-dependency-updates [INFO] Scanning for projects... [INFO] [INFO] --------------------< com.sample.myproject:app >-------------------- [INFO] Building MyProject 1.0-SNAPSHOT [INFO] --------------------------------[ war ]--------------------------------- [INFO] [INFO] --- versions-maven-plugin:2.5:display-dependency-updates (default-cli) @ app --- [INFO] artifact commons-io:commons-io: checking for updates from local-release-repository [INFO] artifact commons-fileupload:commons-fileupload: checking for updates from prime-repo [INFO] artifact commons-io:commons-io: checking for updates from local-release-repository [INFO] The following dependencies in Dependencies have newer versions: [INFO] commons-io:commons-io .

Maven Skip Test

Jan 21, 2016 1 min.

Any of the following option can be used to skip the tests during build process. Option 1: -DskipTests Option 2: -DskipTests=true Option 3: -Dmaven.test.skip=true Option 4: -Darguments="-DskipTests"

Oracle Invalid Objects

Jan 20, 2016 1 min.

Get List of Invalid Objects Following query can be used to get the list of Invalid objects. SELECT object_type, object_name FROM user_objects WHERE STATUS != 'VALID' ORDER BY object_type; or SELECT owner, object_type, object_name FROM dba_objects WHERE STATUS != 'VALID' ORDER BY owner, object_type; Compile Invalid Objects Following SQL block can be used for compiling invalid objects DECLARE sql_statement varchar2(500); BEGIN dbms_output.put_line(chr(0)); dbms_output.put_line('Re-compilation of Invalid Objects'); dbms_output.put_line('---------------------------------'); dbms_output.put_line(chr(0)); FOR invalid in (SELECT object_type, object_name FROM user_objects o WHERE o.