Skip to content

Instantly share code, notes, and snippets.

View mosabua's full-sized avatar

Manfred Moser mosabua

View GitHub Profile
@mosabua
mosabua / gist:c6ea8511dd27b411ff11
Created May 22, 2015 19:25
Nexus 3 dev version Maven site deployment log
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building simple-project 1.0.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ simple-project ---
[INFO] Deleting /Volumes/mac-data/dev/github/sonatype/nexus-book-examples/maven/simple-project/target
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ simple-project ---
@mosabua
mosabua / init.gradle
Last active January 21, 2020 04:15
init.gradle file for proxying all repositories with Sonatype Nexus
/**
* init.gradle file for development using Nexus as proxy repository
*
* @author Manfred Moser <[email protected]
*/
apply plugin:NexusRepositoryPlugin
class NexusRepositoryPlugin implements Plugin<Gradle> {
[INFO]
[INFO] --- android-maven-plugin:3.7.1-SNAPSHOT:ndk-build (default) @ mixed-java-native-with-apklib-dependency ---
[INFO] Creating native output directory /Volumes/mac-data/dev/github/jayway/maven-android-plugin-samples/native/mixed-java-native-with-apklib-dependency/obj/local/armeabi
Downloading: http://localhost:8081/nexus/content/groups/public/com/jayway/maven/plugins/android/generation2/samples/native-apklib/1.0.0-SNAPSHOT/native-apklib-1.0.0-SNAPSHOT.har
[ERROR] Error during build: Error while resolving header archive file for: native-apklib
org.apache.maven.plugin.MojoExecutionException: Error while resolving header archive file for: native-apklib
at com.jayway.maven.plugins.android.phase05compile.MakefileHelper.createMakefileFromArtifacts(MakefileHelper.java:226)
at com.jayway.maven.plugins.android.phase05compile.NdkBuildMojo.execute(NdkBuildMojo.java:392)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:106)
at org.apache.maven.lifecycle.intern
@mosabua
mosabua / gist:6616904
Created September 18, 2013 22:57
Simplistic startup script for Sonatype CLM Server
#!/bin/sh
SONATYPE_CLM_SERVER_HOME=/opt/tools/sonatype-clm-server
VERSION=1.6.0-02
JAVA_OPTIONS="-Xmx1024m -XX:MaxPermSize=128m"
do_start()
{
cd $SONATYPE_CLM_SERVER_HOME
java -jar $JAVA_OPTIONS sonatype-clm-server-$VERSION.jar server config.yml > /dev/null 2>&1 &
@mosabua
mosabua / gist:6068386
Created July 24, 2013 06:12
Stack trace from running Android Maven Plugin Samples with Maven 3.1
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.jayway.maven.plugins.android.generation2:android-maven-plugin:3.6.1-SNAPSHOT:apk (default-apk) on project instrumentationtests: Error while processing transient dependencies: org.eclipse.aether.internal.impl.ObjectPool cannot be cast to org.eclipse.aether.internal.impl.ObjectPool -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal com.jayway.maven.plugins.android.generation2:android-maven-plugin:3.6.1-SNAPSHOT:apk (default-apk) on project instrumentationtests: Error while processing transient dependencies
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:216)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84
@mosabua
mosabua / gist:4196200
Created December 3, 2012 16:44
NEXUS-5396 found with progressive-company-super-pom
[INFO] [INFO] Installing
/Volumes/mac-data/dev/github/simpligility/progressive-company-super-pom/target/checkout/target/progressive-company-super-pom-0.0.6.pom.asc
to /Users/manfred/.m2/repository/com/simpligility/maven/progressive-company-super-pom/0.0.6/progressive-company-super-pom-0.0.6.pom.asc
[INFO] [INFO]
[INFO] [INFO] --- nexus-staging-maven-plugin:1.2:deploy
(injected-nexus-deploy) @ progressive-company-super-pom ---
[INFO] [INFO] Performing local staging (local
stagingDirectory="/Volumes/mac-data/dev/github/simpligility/progressive-company-super-pom/target/checkout/target/nexus-staging")...
[INFO] [INFO] Using server credentials with ID="ossrh-releases" from
Maven settings.
@mosabua
mosabua / gist:4048052
Created November 9, 2012 20:32
Creating a new Nexus Plugin with the Archetype
No repo hooked in, empty local repository, Maven 3.0.4
mvn archetype:generate -Dfilter=nexus-plugin-archetype
[INFO] Scanning for projects...
Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-clean-plugin/2.4.1/maven-clean-plugin-2.4.1.pom
Downloaded: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-clean-plugin/2.4.1/maven-clean-plugin-2.4.1.pom (5 KB at 11.6 KB/sec)
Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-plugins/18/maven-plugins-18.pom
Downloaded: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-plugins/18/maven-plugins-18.pom (13 KB at 127.0 KB/sec)
Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/maven-parent/16/maven-parent-16.pom
@mosabua
mosabua / gist:1316903
Created October 26, 2011 16:28
ExpandableListFragment
package android.support.v4.app;
import android.os.Bundle;
import android.os.Handler;
import android.view.ContextMenu;
import android.view.ContextMenu.ContextMenuInfo;
import android.view.Gravity;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnCreateContextMenuListener;
@mosabua
mosabua / gist:1259514
Created October 3, 2011 16:26
Roboguice 1.2-SNAPSHOT Example Project POM
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.twitli.test</groupId>
<artifactId>robofragmenttest</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>apk</packaging>
<dependencies>
<dependency>
@mosabua
mosabua / gist:1045663
Created June 24, 2011 20:51 — forked from botchagalupe/gist:1045259
Jenkins in two primatives
include_recipe "apt"

apt_repository "jenkins" do
  uri "http://pkg.jenkins-ci.org/debian"
  components ["binary/"]
  key "http://pkg.jenkins-ci.org/debian/jenkins-ci.org.key"
  action :add
end

package "jenkins" do