Skip to content

Instantly share code, notes, and snippets.

View michael-o's full-sized avatar

Michael Osipov michael-o

  • Innomotics (A Siemens Business)
  • Berlin, Germany
  • 17:35 (UTC +01:00)
View GitHub Profile
@michael-o
michael-o / Configured
Last active October 6, 2023 12:21
Tomcat 8.5.94-dev cipher mismatch
TLS_AES_128_CCM_SHA256
TLS_AES_128_GCM_SHA256
TLS_AES_256_GCM_SHA384
TLS_CHACHA20_POLY1305_SHA256
TLS_DHE_RSA_WITH_AES_128_CCM
TLS_DHE_RSA_WITH_AES_128_GCM_SHA256
TLS_DHE_RSA_WITH_AES_256_CCM
TLS_DHE_RSA_WITH_AES_256_GCM_SHA384
TLS_DHE_RSA_WITH_ARIA_128_GCM_SHA256
TLS_DHE_RSA_WITH_ARIA_256_GCM_SHA384
@michael-o
michael-o / MNG-3470 after
Created April 22, 2023 21:39
MNG-7758 workaround
Unable to find the root directory. Create a .mvn directory in the root directory or add the root="true" attribute on the root project's model to identify it.
[INFO] Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO]
[INFO] -----------------< org.apache.maven.its.mng3470:test >------------------
[INFO] Building Maven Integration Test :: MNG-3470 0.1
[INFO] from pom.xml
[INFO] --------------------------------[ jar ]---------------------------------
[INFO] Downloading from maven-core-it: file:///D:/Entwicklung/Projekte/maven-integration-testing/core-it-suite/target/test-classes/mng-3470/repo/org/apache/maven/its/mng3470/dep/0.1/dep-0.1.pom
[WARNING] Checksum validation failed, expected 'fc738b424671ac1d66f8fbc9b9dd8ac89612cb94' (REMOTE_EXTERNAL) but is actually 'db05dc5d489264eb25a7e151e678b5025d4f0079' from maven-core-it for file:///D:/Entwicklung/Projekte/maven-integration-testing/core-it-suite/target/test-classes/mng-3470/repo/org/apache/maven/its/mng3470/dep/0.1/dep-0.1.pom
$ gmake clean-native OS_NAME=FreeBSD OS_ARCH=x86_64 native CC=cc CCFLAGS="-I/usr/local/openjdk8/include -I/usr/local/openjdk8/include/freebsd -Os -fPIC -fvisibility=hidden"
rm -rf target/native-FreeBSD-x86_64
running: cc -I/usr/local/openjdk8/include -I/usr/local/openjdk8/include/freebsd -Os -fPIC -fvisibility=hidden -c src/main/native/jansi.c -o target/native-FreeBSD-x86_64/jansi.o
cc -I/usr/local/openjdk8/include -I/usr/local/openjdk8/include/freebsd -Os -fPIC -fvisibility=hidden -c src/main/native/jansi.c -o target/native-FreeBSD-x86_64/jansi.o
running: cc -I/usr/local/openjdk8/include -I/usr/local/openjdk8/include/freebsd -Os -fPIC -fvisibility=hidden -c src/main/native/jansi_isatty.c -o target/native-FreeBSD-x86_64/jansi_isatty.o
cc -I/usr/local/openjdk8/include -I/usr/local/openjdk8/include/freebsd -Os -fPIC -fvisibility=hidden -c src/main/native/jansi_isatty.c -o target/native-FreeBSD-x86_64/jansi_isatty.o
running: cc -I/usr/local/openjdk8/include -I/usr/local/openjdk8/include/freebsd -Os -fPIC -fvisib
catch ( ArtifactResolutionException e )
{
if ( e.getCause() instanceof ArtifactNotFoundException )
{
missingDescriptor( session, trace, a, (Exception) e.getCause() );
if ( ( getPolicy( session, a, request ) & ArtifactDescriptorPolicy.IGNORE_MISSING ) != 0 )
{
return null;
}
}
$ git stash show --patch
diff --git a/core-it-support/pom.xml b/core-it-support/pom.xml
index 83367ed5..bda312e1 100644
--- a/core-it-support/pom.xml
+++ b/core-it-support/pom.xml
@@ -43,23 +43,4 @@ under the License.
<module>core-it-javaagent</module>
</modules>
diff --git a/core-it-support/pom.xml b/core-it-support/pom.xml
@michael-o
michael-o / gist:5820b03e7268af74cd9da5e89280ed93
Last active December 27, 2021 16:51
Uses of Apache HttpComponents in all Apache Maven repos
mosipov@bsd1srv:/usr/home/mosipov/var/Projekte/maven-uber
$ grep -r --include='*/pom.xml' org.apache.http .
./maven-doxia-linkcheck/pom.xml: <groupId>org.apache.httpcomponents</groupId>
./maven-docck-plugin/pom.xml: <groupId>org.apache.httpcomponents.client5</groupId>
./maven/apache-maven/pom.xml: <groupId>org.apache.httpcomponents</groupId>
./maven/apache-maven/pom.xml: <groupId>org.apache.httpcomponents</groupId>
./maven-doxia/doxia-core/pom.xml: <groupId>org.apache.httpcomponents</groupId>
./maven-doxia/doxia-core/pom.xml: <groupId>org.apache.httpcomponents</groupId>
./maven-javadoc-plugin/pom.xml: <groupId>org.apache.httpcomponents</groupId>
./maven-javadoc-plugin/pom.xml: <groupId>org.apache.httpcomponents</groupId>
@michael-o
michael-o / gist:736716a3be6f757e3c357697793c7238
Last active December 27, 2021 16:50
Uses of Wagon in all Apache Maven repos
$ grep -r --include='*/pom.xml' '<artifactId>wagon' .
./maven-assembly-plugin/src/it/projects/dependency-sets/dep-with-transitive-filter/pom.xml: <artifactId>wagon-webdav-jackrabbit</artifactId>
./maven-assembly-plugin/src/it/projects/dependency-sets/multiple-wildcard-includes/pom.xml: <artifactId>wagon-provider-api</artifactId>
./maven-assembly-plugin/src/it/projects/dependency-sets/multiple-wildcard-includes/pom.xml: <artifactId>wagon-webdav-jackrabbit</artifactId>
./maven-assembly-plugin/src/it/projects/dependency-sets/dep-transfilter-wildcard-massembly544/pom.xml: <artifactId>wagon-webdav-jackrabbit</artifactId>
./maven-jxr/maven-jxr-plugin/pom.xml: <artifactId>wagon-provider-api</artifactId>
./maven-reporting-exec/pom.xml: <artifactId>wagon-http-lightweight</artifactId>
./maven-compiler-plugin/src/it/MCOMPILER-157/annotation-verify/pom.xml: <artifactId>wagon-file</artifactId>
./maven-compiler-plugin/src/it/MCOMPILER-157/annotation-verify/pom.xml: <artifactI
@michael-o
michael-o / AprTest.java
Created May 25, 2021 12:42
Spin up APR server socket in Java
import org.apache.tomcat.jni.Address;
import org.apache.tomcat.jni.Pool;
import org.apache.tomcat.jni.Socket;
import org.apache.tomcat.jni.Library;
import org.apache.tomcat.jni.OS;
public class AprTest {
public static void main(String... args) throws Exception {
String hostname = null;