Skip to content

Instantly share code, notes, and snippets.

View rgladwell's full-sized avatar

Ricardo Gladwell rgladwell

View GitHub Profile
@rgladwell
rgladwell / gist:995012
Created May 27, 2011 10:32
Error installing m2e 0.13.0 on Eclipse 3.6 Helios
An error occurred while collecting items to be installed
session context was:(profile=epp.package.java, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=).
No repository found containing: osgi.bundle,ch.qos.logback.classic,0.9.27.v20110224-1110
No repository found containing: osgi.bundle,ch.qos.logback.core,0.9.27.v20110224-1110
No repository found containing: osgi.bundle,ch.qos.logback.slf4j,0.9.27.v20110224-1110
No repository found containing: osgi.bundle,com.ning.async-http-client,1.6.3.201105260005
No repository found containing: osgi.bundle,org.eclipse.m2e.archetype.common,0.13.0.201105260005
No repository found containing: osgi.bundle,org.eclipse.m2e.core,0.13.0.201105260005
No repository found containing: osgi.bundle,org.eclipse.m2e.core.ui,0.13.0.201105260005
No repository found containing: osgi.bundle,org.eclipse.m2e.discovery,0.13.0.201105260005
@rgladwell
rgladwell / gist:995057
Created May 27, 2011 11:16
Cannot install m2e from clean Eclipse install
Cannot complete the install because one or more required items could not be found.
Software being installed: M2E - Maven Integration for Eclipse Update Site 0.13.0.201105260005 (org.eclipse.m2e.site.feature.group 0.13.0.201105260005)
Missing requirement: Maven Integration Tests Plug-in 0.13.0.201105260005 (org.eclipse.m2e.integration.tests.common 0.13.0.201105260005) requires 'bundle org.hamcrest 0.0.0' but it could not be found
Cannot satisfy dependency:
From: M2E - Extensions Development Support (Incubation, Optional) 0.13.0.201105260005 (org.eclipse.m2e.sdk.feature.feature.group 0.13.0.201105260005)
To: org.eclipse.m2e.integration.tests.common [0.13.0.201105260005]
Cannot satisfy dependency:
From: M2E - Maven Integration for Eclipse Update Site 0.13.0.201105260005 (org.eclipse.m2e.site.feature.group 0.13.0.201105260005)
To: org.eclipse.m2e.sdk.feature.feature.group [0.13.0.201105260005]
@rgladwell
rgladwell / maven-android-plugin-samples-install-with-remove-jar-goal
Created May 27, 2011 12:06
Logs for "mvn clean install" on maven-android-plugin-samples excluding scala and native
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] Android SDK 1.5 ApiDemos
[INFO] Android SDK 1.5 ApiDemos - App
[INFO] Android SDK 1.5 ApiDemos - Instrumentation Test
[INFO] HelloFlashlight
[INFO] MorseFlash Parent
[INFO] MorseFlash - Library
@rgladwell
rgladwell / me.gladwell.eclipse.m2e.android.test.log
Created August 9, 2011 16:27
JUnit Plug-in Test failing for m2e-android
!SESSION 2011-08-09 15:43:52.365 -----------------------------------------------
eclipse.buildId=I20110613-1736
java.version=1.6.0_26
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_GB
Framework arguments: -version 3 -port 37696 -testLoaderClass org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestLoader -loaderpluginname org.eclipse.jdt.junit.runtime -testNameFile /tmp/testNames1503546741025358379.txt -application org.eclipse.pde.junit.runtime.uitestapplication -product org.eclipse.platform.ide -testpluginname me.gladwell.eclipse.m2e.android.test
Command-line arguments: -os linux -ws gtk -arch x86 -consoleLog -version 3 -port 37696 -testLoaderClass org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestLoader -loaderpluginname org.eclipse.jdt.junit.runtime -testNameFile /tmp/testNames1503546741025358379.txt -application org.eclipse.pde.junit.runtime.uitestapplication -product org.eclipse.platform.ide -data /home/ricardo/Projects/../junit-workspace -dev file:/home
@rgladwell
rgladwell / gist:1550732
Created January 2, 2012 13:45
Stack trace of m2e-android issue-60 bug
junit.framework.AssertionFailedError: Unexpected error markers Type=org.eclipse.m2e.core.maven2Problem.lifecycleMapping:Message=Plugin execution not covered by lifecycle configuration: com.jayway.maven.plugins.android.generation2:android-maven-plugin:3.0.0:proguard (execution: default-proguard, phase: process-classes):LineNumber=49 expected:<0> but was:<1>
at junit.framework.Assert.fail(Assert.java:47)
at junit.framework.Assert.failNotEquals(Assert.java:283)
at junit.framework.Assert.assertEquals(Assert.java:64)
at junit.framework.Assert.assertEquals(Assert.java:195)
at org.eclipse.m2e.tests.common.WorkspaceHelpers.assertNoErrors(WorkspaceHelpers.java:190)
at org.eclipse.m2e.tests.common.AbstractMavenProjectTestCase.assertNoErrors(AbstractMavenProjectTestCase.java:449)
at me.gladwell.eclipse.m2e.android.test.ApplicationAndroidMavenPluginTest.testConfigure(ApplicationAndroidMavenPluginTest.java:55)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.i
@rgladwell
rgladwell / gist:1738301
Created February 4, 2012 14:58
Fixed build errors for 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.testtech1</groupId>
<artifactId>testtech1</artifactId>
<version>0.0.1-SNAPSHOT</version>
<packaging>apk</packaging>
<name>testtech1</name>
!ENTRY org.eclipse.m2e.core 4 -1 2014-04-16 11:24:15.083
!MESSAGE Unable to create project from archetype [de.akquinet.android.archetypes:android-quickstart:1.0.8 -> http://rgladwell.github.io/m2e-android]
!STACK 0
org.apache.maven.archetype.exception.UnknownArchetype: The desired archetype does not exist (de.akquinet.android.archetypes:android-quickstart:1.0.8)
at org.apache.maven.archetype.generator.DefaultArchetypeGenerator.generateArchetype(DefaultArchetypeGenerator.java:112)
at org.apache.maven.archetype.generator.DefaultArchetypeGenerator.generateArchetype(DefaultArchetypeGenerator.java:286)
at org.apache.maven.archetype.DefaultArchetype.generateProjectFromArchetype(DefaultArchetype.java:69)
at org.eclipse.m2e.core.internal.project.ProjectConfigurationManager.createArchetypeProjects0(ProjectConfigurationManager.java:761)
at org.eclipse.m2e.core.internal.project.ProjectConfigurationManager$4.call(ProjectConfigurationManager.java:710)
at org.eclipse.m2e.core.internal.project.ProjectConfigurationMana
@rgladwell
rgladwell / gist:11348044
Created April 27, 2014 15:14
Stack trace for exception on saving modified launch configuration to disk.
org.eclipse.core.internal.resources.ResourceException: The resource tree is locked for modifications.
at org.eclipse.core.internal.resources.WorkManager.checkIn(WorkManager.java:116)
at org.eclipse.core.internal.resources.Workspace.prepareOperation(Workspace.java:2283)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2340)
at org.eclipse.debug.internal.core.LaunchConfigurationWorkingCopy.doSave(LaunchConfigurationWorkingCopy.java:213)
at org.eclipse.debug.internal.core.LaunchConfigurationWorkingCopy.doSave(LaunchConfigurationWorkingCopy.java:170)
at me.gladwell.eclipse.m2e.android.AndroidMavenLaunchConfigurationListener.updateLaunchConfiguration(AndroidMavenLaunchConfigurationListener.java:58)
at me.gladwell.eclipse.m2e.android.AndroidMavenLaunchConfigurationListener.launchConfigurationAdded(AndroidMavenLaunchConfigurationListener.java:38)
at org.eclipse.debug.internal.core.LaunchManager$ConfigurationNotifier.run(LaunchManager.java:222)
at org.eclipse.core.runtime.SafeRunner.run(Sa
@rgladwell
rgladwell / gist:11349027
Created April 27, 2014 15:53
Stacktrace for mockwebserver running in instrumentation test
java.net.SocketException: socket failed: EACCES (Permission denied)
at libcore.io.IoBridge.socket(IoBridge.java:583)
at java.net.PlainSocketImpl.create(PlainSocketImpl.java:201)
at java.net.PlainServerSocketImpl.create(PlainServerSocketImpl.java:38)
at java.net.ServerSocket.<init>(ServerSocket.java:98)
at java.net.ServerSocket.<init>(ServerSocket.java:69)
at com.squareup.okhttp.mockwebserver.MockWebServer.play(MockWebServer.java:245)
at com.squareup.okhttp.mockwebserver.MockWebServer.play(MockWebServer.java:232)
at com.foo.bar.android.test.HelloAndroidActivityTest.testActivity(HelloAndroidActivityTest.java:17)
at java.lang.reflect.Method.invokeNative(Native Method)
@rgladwell
rgladwell / main.cpp
Created May 23, 2014 09:01
html2perl
/////////////////////////////////////////////////////////////////////
//
// $Id: main.cpp,v 1.9 2000/11/10 21:01:09 ricardo Exp $
//
// Filename: : main.cpp
// Date: : Sat Oct 21 16:52:01 BST 2000
// Copyright: : (C) 2000 by Ricardo Gladwell
// Email : ricgladwell@netscapeonline.co.uk
//
/////////////////////////////////////////////////////////////////////