Skip to content

Instantly share code, notes, and snippets.

View johnament's full-sized avatar

John Ament johnament

View GitHub Profile
@johnament
johnament / gist:5337251
Last active December 15, 2015 22:59 — forked from gbougeard/gist:5337227
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.reservit</groupId>
<artifactId>reservit-web-parent</artifactId>
<version>86.0.1-SNAPSHOT</version>
Maven.resolver().offline().loadPomFromFile("pom.xml").resolve("com.mycompany:foo-app").withTransitivity().asSingle(WebArchive.class);
@johnament
johnament / ApplicationConsumer.java
Created September 18, 2011 13:40 — forked from pmuir/ApplicationConsumer.java
Resource Producer proposal for JMS 2.0
/**
* PLM: ApplicationConsumer is a class provided by the application, and injects and
* uses the resources defined in the central Resources class. An application would
* typically have multiple ApplicationConsumer-style classes - this is just an
* example
*/
public class ApplicationConsumer {
// regular destination.
@Inject @FooMyTopic