Skip to content

Instantly share code, notes, and snippets.

View Ladicek's full-sized avatar
🐉
Principal Rockstar Ninja Guru Inquisitor

Ladislav Thon Ladicek

🐉
Principal Rockstar Ninja Guru Inquisitor
  • IBM
  • Czech Republic
View GitHub Profile
@Ladicek
Ladicek / pom.xml
Last active February 27, 2026 07:31
annotation processor debugging with Maven
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<compilerArgument>-J-agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=5005</compilerArgument>
<fork>true</fork>
</configuration>
</plugin>
@Ladicek
Ladicek / StreamIsEmptyBenchmark.java
Created October 29, 2025 12:06
StreamIsEmptyBenchmark.java
package io.quarkus.arc.benchmarks;
import org.openjdk.jmh.annotations.Benchmark;
import org.openjdk.jmh.annotations.BenchmarkMode;
import org.openjdk.jmh.annotations.Fork;
import org.openjdk.jmh.annotations.Measurement;
import org.openjdk.jmh.annotations.Mode;
import org.openjdk.jmh.annotations.OutputTimeUnit;
import org.openjdk.jmh.annotations.Scope;
import org.openjdk.jmh.annotations.Setup;
@Ladicek
Ladicek / maven-deploy-sources.sh
Created January 7, 2016 09:51
deploy *-sources.jar to internal Maven repository
#!/bin/bash
# successful "mvn clean install" or a variant thereof (e.g. -DskipTests)
# is typically required before running this script
REPOSITORY_ID=...
REPOSITORY_URL=...
mvn clean source:jar
package org.wildfly.swarm.infinispan.runtime;
import org.jboss.msc.Service;
import org.jboss.msc.service.ServiceActivator;
import org.jboss.msc.service.ServiceActivatorContext;
import org.jboss.msc.service.ServiceBuilder;
import org.jboss.msc.service.ServiceController;
import org.jboss.msc.service.ServiceName;
import org.jboss.msc.service.ServiceRegistryException;
[INFO] --- wildfly-swarm-plugin:2018.5.0-SNAPSHOT:start (start) @ ts-javaee-interceptors-cdi ---
[INFO] Starting .war
Thu Apr 26 12:51:33 CEST 2018 INFO [org.wildfly.swarm.bootstrap] (main) Dependencies not bundled; resolving from M2REPO.
2018-04-26 12:51:34,904 INFO [org.wildfly.swarm] (main) WFSWARM0013: Installed fraction: CDI - STABLE org.wildfly.swarm:cdi:2018.5.0-SNAPSHOT
2018-04-26 12:51:34,910 INFO [org.wildfly.swarm] (main) WFSWARM0013: Installed fraction: Logging - STABLE org.wildfly.swarm:logging:2018.5.0-SNAPSHOT
2018-04-26 12:51:34,910 INFO [org.wildfly.swarm] (main) WFSWARM0013: Installed fraction: CDI Configuration - STABLE org.wildfly.swarm:cdi-config:2018.5.0-SNAPSHOT
2018-04-26 12:51:34,910 INFO [org.wildfly.swarm] (main) WFSWARM0013: Installed fraction: Bean Validation - STABLE org.wildfly.swarm:bean-validation:2018.5.0-SNAPSHOT
2018-04-26 12:51:34,910 INFO [org.wildfly.swarm] (main) WFSWARM0013:
[INFO] --- wildfly-swarm-plugin:2018.5.0-SNAPSHOT:start (start) @ ts-javaee-interceptors-cdi ---
[INFO] Starting .war
Thu Apr 26 10:57:23 CEST 2018 INFO [org.wildfly.swarm.bootstrap] (main) Dependencies not bundled; resolving from M2REPO.
2018-04-26 10:57:24,819 INFO [org.wildfly.swarm] (main) WFSWARM0013: Installed fraction: CDI - STABLE org.wildfly.swarm:cdi:2018.5.0-SNAPSHOT
2018-04-26 10:57:24,824 INFO [org.wildfly.swarm] (main) WFSWARM0013: Installed fraction: Logging - STABLE org.wildfly.swarm:logging:2018.5.0-SNAPSHOT
2018-04-26 10:57:24,825 INFO [org.wildfly.swarm] (main) WFSWARM0013: Installed fraction: CDI Configuration - STABLE org.wildfly.swarm:cdi-config:2018.5.0-SNAPSHOT
2018-04-26 10:57:24,825 INFO [org.wildfly.swarm] (main) WFSWARM0013: Installed fraction: Bean Validation - STABLE org.wildfly.swarm:bean-validation:2018.5.0-SNAPSHOT
2018-04-26 10:57:24,825 INFO [org.wildfly.swarm] (main) WFSWARM0013:
diff --git a/pom.xml b/pom.xml
index 53a34956b..dc6427730 100644
--- a/pom.xml
+++ b/pom.xml
@@ -1122,6 +1122,7 @@
<module>boms</module>
<module>boms/bom</module>
+<!--
<module>boms/bom-deprecated</module>
{
"addons": {
"admin-user": {
"Name": "admin-user",
"Enabled": true,
"Priority": 0
},
"registry-route": {
"Name": "registry-route",
"Enabled": true,
SSLContext sslContext = SSLContexts.custom()
.loadTrustMaterial((TrustStrategy) (chain, authType) -> true)
.build();
try (CloseableHttpClient httpClient = HttpClients.custom()
.setSSLContext(sslContext)
.setSSLHostnameVerifier(NoopHostnameVerifier.INSTANCE)
.build()) {
String response = Executor.newInstance(httpClient)
.execute(Request.Get("https://localhost:8443/"))
+ du -h /root/.mvnrepository
36K /root/.mvnrepository/xmlpull/xmlpull/1.1.3.1
40K /root/.mvnrepository/xmlpull/xmlpull
44K /root/.mvnrepository/xmlpull
92K /root/.mvnrepository/oro/oro/2.0.8
96K /root/.mvnrepository/oro/oro
100K /root/.mvnrepository/oro
180K /root/.mvnrepository/jdom/jdom/1.0
184K /root/.mvnrepository/jdom/jdom
188K /root/.mvnrepository/jdom