Skip to content

Instantly share code, notes, and snippets.

View kpiwko's full-sized avatar

Karel Piwko kpiwko

  • Red Hat
  • Brno, Czech Republic
View GitHub Profile
@kpiwko
kpiwko / gist:654fe9b1b4653e9e5877
Created November 4, 2014 13:50
WF 8.1.0.Final missing dependencies in Maven Central
Not in Maven Central: com.sun.faces:jsf-impl:jar:2.2.6-jbossorg-4
Not in Maven Central: com.sun:tools:jar:1.6
Not in Maven Central: com.sun:tools:jar:1.7
Not in Maven Central: com.sun.xml.bind:jaxb-impl:jar:2.2.5.jboss-1
Not in Maven Central: com.sun.xml.bind:jaxb-xjc:jar:2.2.5.jboss-1
Not in Maven Central: com.sun.xml.messaging.saaj:saaj-impl:jar:1.3.16-jbossorg-1
Not in Maven Central: org.apache.directory.jdbm:apacheds-jdbm1:bundle:2.0.0-M2
Not in Maven Central: org.jacorb:jacorb:jar:2.3.2-jbossorg-5
Not in Maven Central: org.jboss.common:jboss-common-beans:jar:1.1.0.Final
Not in Maven Central: org.jboss.com.sun.httpserver:httpserver:jar:1.0.1.Final
@kpiwko
kpiwko / gist:b96abdb8a13586b63a7d
Created November 4, 2014 12:50
Missing artifacts in Maven Central for AS 7.2.0
Not in Maven Central: com.sun.faces:jsf-impl:jar:2.1.18-jbossorg-1
Not in Maven Central: com.sun:tools:jar:1.6
Not in Maven Central: org.jacorb:jacorb:jar:2.3.2.jbossorg-4
Not in Maven Central: org.jboss.as:jboss-as-client-all:jar:7.2.0.Final
Not in Maven Central: org.jboss.as:jboss-as-clustering-common:jar:tests
Not in Maven Central: org.jboss.as:jboss-as-osgi-configadmin:bundle:7.2.0.Final
Not in Maven Central: org.jboss.as:jboss-as-osgi-http:bundle:7.2.0.Final
Not in Maven Central: org.jboss.as:jboss-as-osgi-jpa:bundle:7.2.0.Final
Not in Maven Central: org.jboss.byteman:byteman-bmunit:jar:2.0.1
Not in Maven Central: org.jboss.byteman:byteman-install:jar:2.0.1
public class PushApplicationServiceTest {
private static class LoggedInTestProducer {
@Produces
@LoggedIn
public String userName() {
return "admin";
}
}
@kpiwko
kpiwko / AbstractCompilingProcessor.java
Created September 15, 2014 18:11
Making ShrinkWrap MavenImporter more compatible with JRE/IDE
/*
* JBoss, Home of Professional Open Source
* Copyright 2012, Red Hat Middleware LLC, and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
mvn -f platforms/android-19/pom.xml -N install
mvn -f extras/google-play-services/pom.xml -N install
mvn -f extras/compatibility-v4/pom.xml -N install
mvn -f extras/compatibility-v7-appcompat/pom.xml -N install
[INFO] ------------------------------------------------------------------------
[INFO] Building Java Apple Push Notification Service Library 1.0.0.Beta4-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-dependency-plugin:2.8:tree (default-cli) @ apns ---
[INFO] com.notnoop.apns:apns:jar:1.0.0.Beta4-SNAPSHOT
[INFO] +- commons-httpclient:commons-httpclient:jar:3.1:compile
[INFO] | +- commons-logging:commons-logging:jar:1.0.4:compile
[INFO] | \- commons-codec:commons-codec:jar:1.2:compile
[INFO] +- uk.org.lidalia:slf4j-test:jar:1.0.0-jdk6:test
installations {
tattletale {
product = "foo"
version = "bar"
content {
remoteUrl = "http://foo/bar.jar"
home = "foo"
fileName = "bar"
autoExtract = false
}
@kpiwko
kpiwko / magic.groovy
Created June 20, 2014 14:25
Groovy magic
// update arquillian.xml files with EAP home in all installations and integration test directory
project.selectedInstallations.inject( Tasks.chain([
jbossHome: "${home}"
], ArquillianXmlUpdater).dir(project.rootDir).containers('jboss', 'domain-controller', 'main-server-group')
) { arqXmlUpdater, installation ->
arqXmlUpdater.dir(installation.home)
}.execute().await()
@kpiwko
kpiwko / gist:7f9430f368b0a7c8128c
Last active August 29, 2015 14:01
Gradle Spacelift env plugin
public class SpaceliftToolFromInstallationTest {
@Test
public void installAndroidSDKAndProvideTool() {
Project project = ProjectBuilder.builder().build()
project.apply plugin: 'aerogear-test-env'
project.setProperty("androidTargets", ["19"])
@kpiwko
kpiwko / gist:11216846
Created April 23, 2014 14:15
scheduling a callable for spacelift
Tasks.prepare(CreateFileTask.class)
.named("target/foobar")
.then(DataSampler.class)
.generateRandomData(123)
.then(FileReader.class)
.then(ExecutionCounter.class)
.execute().awaitUntil(3, TimeUnit.SECONDS, new ExecutionCondition<Integer>() {
@Override
public boolean satisfiedBy(Integer object) throws ExecutionException {
return object >= 3;