Storing a POM file inside the Jar archive provides a convenient, reliable way of reading dependency information.
See example usages here.