Skip to content

Instantly share code, notes, and snippets.

View tonit's full-sized avatar

Toni Menzel tonit

View GitHub Profile
@tonit
tonit / releaseproblem123
Created December 15, 2010 21:37
mvn release:perform problems: deploys **.jar.asc as **.bundle.asc for bundles
Problem Screenshot: https://skitch.com/tonit/rfg6j/sonatype-nexus-maven-repository-manager
This is the tracked down first appearance of the misnamed artifact (bundle.asc vs. jar.asc) during mvn release:perform:
..
[INFO] [INFO] --- maven-install-plugin:2.3:install (default-install) @ pax-exam ---
[INFO] [INFO] Installing /Users/tonit/devel/oss/org.ops4j.pax.exam1/target/checkout/pax-exam/target/pax-exam-1.2.3.jar to /Users/tonit/.m2/repository/org/ops4j/pax/exam/pax-exam/1.2.3/pax-exam-1.2.3.jar
[INFO] [INFO] Installing /Users/tonit/devel/oss/org.ops4j.pax.exam1/target/checkout/pax-exam/pom.xml to /Users/tonit/.m2/repository/org/ops4j/pax/exam/pax-exam/1.2.3/pax-exam-1.2.3.pom
[INFO] [INFO] Installing /Users/tonit/devel/oss/org.ops4j.pax.exam1/target/checkout/pax-exam/target/pax-exam-1.2.3-javadoc.jar to /Users/tonit/.m2/repository/org/ops4j/pax/exam/pax-exam/1.2.3/pax-exam-1.2.3-javadoc.jar
[INFO] [INFO] Installing /Users/tonit/devel/oss/org.ops4j.pax.exam1/target/checkout/pax-exam/target/pax-exam-1.2.3-so
TestContainerFactory factory = getFactory();
Option[] options = new Option[]{junitBundles(), easyMockBundles()};
ExxamReactor reactor = new DefaultExamReactor(factory);
TestProbeBuilder probe = createProbe().addTest(Probe.class);
reactor.addProbe(probe);
reactor.addConfiguration(options);
TestContainerFactory factory = getFactory();
Option[] options = new Option[]{junitBundles(), easyMockBundles()};
for (OptionDescription testTarget : factory.parse(options)) {
TestContainer testContainer = factory.createContainer(testTarget);
try {
testContainer.start();
TestProbeBuilder probe = createProbe().addTest(Probe.class);
testContainer.install(probe.getStream());
TestContainerFactory factory = PaxExamRuntime
.getTestContainerFactory( PaxRunnerTestContainerFactory.class );
// we know there can be only one container
OptionDescription testTarget = factory.parse(
options(
waitForRBCFor( 2000 )
//location( "192.168.73.204", 8181 )
)
)[ 0 ];