Skip to content

Instantly share code, notes, and snippets.

View djsauble's full-sized avatar

Daniel Sauble djsauble

View GitHub Profile
@djsauble
djsauble / gist:f7b04dc331542e7c4419
Created January 14, 2015 22:52
Fake PEM certificate
-----BEGIN CERTIFICATE-----
MIICUTCCAfugAwIBAgIBADANBgkqhkiG9w0BAQQFADBXMQswCQYDVQQGEwJDTjEL
MAkGA1UECBMCUE4xCzAJBgNVBAcTAkNOMQswCQYDVQQKEwJPTjELMAkGA1UECxMC
VU4xFDASBgNVBAMTC0hlcm9uZyBZYW5nMB4XDTA1MDcxNTIxMTk0N1oXDTA1MDgx
NDIxMTk0N1owVzELMAkGA1UEBhMCQ04xCzAJBgNVBAgTAlBOMQswCQYDVQQHEwJD
TjELMAkGA1UEChMCT04xCzAJBgNVBAsTAlVOMRQwEgYDVQQDEwtIZXJvbmcgWWFu
ZzBcMA0GCSqGSIb3DQEBAQUAA0sAMEgCQQCp5hnG7ogBhtlynpOS21cBewKE/B7j
V14qeyslnr26xZUsSVko36ZnhiaO/zbMOoRcKK9vEcgMtcLFuQTWDl3RAgMBAAGj
gbEwga4wHQYDVR0OBBYEFFXI70krXeQDxZgbaCQoR4jUDncEMH8GA1UdIwR4MHaA
FFXI70krXeQDxZgbaCQoR4jUDncEoVukWTBXMQswCQYDVQQGEwJDTjELMAkGA1UE
@djsauble
djsauble / gist:2297d8f89676e63afe38
Created March 17, 2015 21:26
Error building Nexus Pro (master)
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 57.638s
[INFO] Finished at: Tue Mar 17 14:23:06 PDT 2015
[INFO] Final Memory: 109M/496M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:testCompile (default-testCompile) on project nexus-ldap-plugin: Compilation failure: Compilation failure:
[ERROR] /Users/danielsauble/Projects/work/nexus-oss/plugins/security/nexus-ldap-plugin/src/test/java/org/sonatype/nexus/ldap/internal/LdapITSupport.java:[22,8] 1. ERROR in /Users/danielsauble/Projects/work/nexus-oss/plugins/security/nexus-ldap-plugin/src/test/java/org/sonatype/nexus/ldap/internal/LdapITSupport.java (at line 22)
[ERROR] import org.sonatype.sisu.litmus.testsupport.ldap.LdapServer;
@djsauble
djsauble / gist:e4206db87f7bca613f1f
Created April 15, 2015 18:00
Create raw proxy repository exception
2015-04-15 10:54:25,934-0700 ERROR [qtp347063642-310] admin org.sonatype.nexus.repository.manager.RepositoryImpl - Failed to initialize facet: org.sonatype.nexus.repository.raw.internal.RawContentFacetImpl$$EnhancerByGuice$$5ab40d58@2df1ac2d
java.lang.IllegalStateException: Missing: {rawContent} strictContentTypeValidation
at com.google.common.base.Preconditions.checkState(Preconditions.java:173) [com.google.guava:18.0.0]
at org.sonatype.nexus.common.collect.AttributesMap.require(AttributesMap.java:189) [na:na]
at org.sonatype.nexus.common.collect.AttributesMap.require(AttributesMap.java:207) [na:na]
at org.sonatype.nexus.common.collect.AttributesMap.require(AttributesMap.java:216) [na:na]
at org.sonatype.nexus.repository.raw.internal.RawContentFacetImpl.doConfigure(RawContentFacetImpl.java:76) [na:na]
at org.sonatype.nexus.repository.FacetSupport.doInit(FacetSupport.java:138) [na:na]
at org.sonatype.nexus.repository.FacetSupport.init(FacetSupport.java:134) [na:na]
at org.sonatype.nexus.common.stategu
$ mvn clean install -DskipTests -Dskip-obfuscate
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for com.sonatype.insight.brain:insight-brain-functional-performance-test:jar:1.18.0-SNAPSHOT
[WARNING] 'dependencies.dependency.exclusions.exclusion.artifactId' for net.lightbody.bmp:browsermob-proxy:jar with value '*' does not match a valid id pattern. @ line 166, column 23
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]
@djsauble
djsauble / gist:2ad6c23a08673cd8ab2d
Created November 23, 2015 14:54
Firewall errors
jvm 1 | 2015-11-23 06:49:03,603-0800 WARN [qtp22440621-90] admin org.sonatype.sisu.siesta.server.internal.mappers.ObjectNotFoundExceptionMapper - (ID cbfaef6d-55b0-422a-8c46-d8c83f3402e2) Response: [404] ErrorXO{id='cbfaef6d-55b0-422a-8c46-d8c83f3402e2', message='Could not retrieve summary information.'} mapped from org.sonatype.sisu.siesta.common.error.ObjectNotFoundException/Could not retrieve summary information.
jvm 1 | 2015-11-23 06:49:03,603-0800 WARN [qtp22440621-92] admin org.sonatype.sisu.siesta.server.internal.mappers.BadRequestExceptionMapper - (ID e0454093-0a49-4af8-90ea-d9b8088653f6) Response: [400] ErrorXO{id='e0454093-0a49-4af8-90ea-d9b8088653f6', message='Repository not configured for firewall.'} mapped from org.sonatype.sisu.siesta.common.error.BadRequestException/Repository not configured for firewall.
jvm 1 | 2015-11-23 06:50:10,548-0800 WARN [qtp22440621-89] admin org.sonatype.sisu.siesta.server.internal.mappers.BadRequestExceptionMapper - (ID 7b350e63-2604-40d5-b32d-68ab893f92
@djsauble
djsauble / gist:f4c3c5f5b713733d6a5a
Created November 23, 2015 15:03
Errors installing sonatype-dev-nexus-lifecycle-2015.lic
jvm 1 | 2015-11-23 06:58:59,978-0800 INFO [pxpool-1-thread-3] *TASK org.sonatype.nexus.configuration.application.DefaultNexusConfiguration - Applying Nexus Configuration due to changes in [Scheduled Tasks] made by *TASK...
jvm 1 | 2015-11-23 06:58:59,986-0800 INFO [pxpool-1-thread-3] *TASK com.sonatype.nexus.clm.internal.FirewallTransactionRetryTask - Scheduled task (FirewallTransactionRetryTask) started :: Retry firewall transactions for repository Central
jvm 1 | 2015-11-23 06:58:59,990-0800 INFO [pxpool-1-thread-3] *TASK com.sonatype.nexus.clm.internal.FirewallTransactionRetryTask - Scheduled task (FirewallTransactionRetryTask) finished :: Retry firewall transactions for repository Central (started 2015-11-23T06:58:59-08:00, runtime 0:00:00.004)
jvm 1 | [ERROR] Invalid license.
jvm 1 | org.sonatype.licensing.LicensingException: Invalid licensing subject!
jvm 1 | at org.sonatype.licensing.trial.internal.DefaultTrialLicenseManager.itm(Unknown Source)
jvm 1 | at org.sonatype.licensin
@djsauble
djsauble / output.log
Created April 8, 2016 16:43
Invalid POM warning (when pulling artifacts from a Nexus 2 which proxies Nexus 3 which proxies RSO)
labyrinth:nexus-internal danielsauble$ ./rebuild.sh -DskipTests
Apache Maven 3.3.3 (7994120775791599e205a5524ec3e0dfe41d4a06; 2015-04-22T04:57:37-07:00)
Maven home: /Users/danielsauble/.m2/wrapper/dists/apache-maven-3.3.3-bin/3opbjp6rgl6qp7k2a6tljcpvgp/apache-maven-3.3.3
Java version: 1.8.0_51, vendor: Oracle Corporation
Java home: /Library/Java/JavaVirtualMachines/jdk1.8.0_51.jdk/Contents/Home/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "mac os x", version: "10.11.4", arch: "x86_64", family: "mac"
[INFO] Scanning for projects...
Downloading: http://localhost:8082/nexus/content/groups/dev2/org/sonatype/plugins/nexus-staging-maven-plugin/1.6.6/nexus-staging-maven-plugin-1.6.6.pom
Downloaded: http://localhost:8082/nexus/content/groups/dev2/org/sonatype/plugins/nexus-staging-maven-plugin/1.6.6/nexus-staging-maven-plugin-1.6.6.pom (12 KB at 133.8 KB/sec)
@djsauble
djsauble / output.log
Created April 8, 2016 16:57
Missing jar (from a Nexus 2 proxying a Nexus 3 which proxies RSO)
labyrinth:nexus-servlet danielsauble$ mvn clean install -DskipTests
[INFO] Scanning for projects...
[INFO] Inspecting build with total of 1 modules...
[INFO] Installing Nexus Staging features:
[INFO] ... total of 1 executions of maven-deploy-plugin replaced with nexus-staging-maven-plugin
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building org.sonatype.nexus:nexus-servlet 3.1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[WARNING] The POM for bitwalker:UserAgentUtils:jar:1.12 is missing, no dependency information available
/* Add a caret to the active menu item */
.sonatype-primary-nav ul li.hs-menu-depth-1 > a::after {
content: "";
width: 0;
height: 0;
position: absolute;
border-left: 10px solid transparent;
border-right: 10px solid transparent;
border-bottom: 12px solid transparent;
left: 50%;
@djsauble
djsauble / MigrationIT-output.txt
Created June 3, 2016 00:30
Output from failing MigrationIT functional test
17:27:04.182 INFO [main] org.sonatype.nexus.pax.exam.spock.PaxExamSpock - creating PaxExamSpock runner for class org.sonatype.nexus.geb.MigrationIT
17:27:04.207 INFO [main] org.sonatype.nexus.pax.exam.spock.PaxExamSpock - running specification org.sonatype.nexus.geb.MigrationIT
17:27:05.828 INFO [main] org.ops4j.pax.exam.karaf.container.internal.KarafTestContainer - Log file should not be modified by the test framework
17:27:05.841 WARN [main] org.ops4j.pax.exam.karaf.container.internal.KarafTestContainer - you're trying to add an additional value to a config file; you're current value will be replaced.
17:27:05.841 WARN [main] org.ops4j.pax.exam.karaf.container.internal.KarafTestContainer - you're trying to add an additional value to a config file; you're current value will be replaced.
17:27:05.841 WARN [main] org.ops4j.pax.exam.karaf.container.internal.KarafTestContainer - you're trying to add an additional value to a config file; you're current value will be replaced.
17:27:05.841 WARN [main] org.ops4j.pa