Skip to content

Instantly share code, notes, and snippets.

View adamjshook's full-sized avatar

Adam J. Shook adamjshook

View GitHub Profile
@adamjshook
adamjshook / README.md
Created February 18, 2020 17:31
Parses the output from the Maven Dependency Version Check plugin and mutates the pom.xml

Not guaranteed to work on your pom, but hey it works for mine.

  1. Remove the namespace from the pom.xml (head element should just say <project>
  2. Create a file called output.txt containing only the output of the plugin that spells out all the versions
  3. Run the program. It will parse the output and ask you to select the version you want to use, or none to exclude them all.
  4. It will modify pom.xml in-place, adding exclusions to all of the other dependencies
  5. Add the namespace back and run your Maven build.
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: replication.proto
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
from google.protobuf import descriptor_pb2
# @@protoc_insertion_point(imports)
@adamjshook
adamjshook / shiro.ini
Created September 3, 2016 17:12
Apache Shiro JdbcRealm MySQL Example
# Apache Shiro v1.2.3
# Install MySQL
# $ sudo yum install mysql-server
# $ sudo /sbin/service mysqld start
# $ sudo chkconfig mysqld on
# Secure install and set root password
# $ sudo /usr/bin/mysql_secure_installation