Skip to content

Instantly share code, notes, and snippets.

@ifedorenko
ifedorenko / gist:20caf49c715317e6a47c
Created September 2, 2015 18:58
less able programmer
"In software development, questions about the less able programmer really come down to trying to substitute a process for intelligence, aptitude, and experience. Apparently, a lot of people think that if we force people to create enough UML diagrams (or whatever), have enough reviews, and otherwise follow a detailed process, that eventually they will figure out what they are doing and code it correctly. There is no evidence that such approaches have worked in the past, and I see no reason to believe they will work in the future."
http://www.developerdotstar.com/mag/articles/reeves_design_main.html

== TestMain.java

public class TestMain {
  public static void main(String[] args) {
    for (String arg : args) {
      System.out.println(arg);
    }
  }
}
package io.takari.maven.testing.executor.junit;
import java.io.ByteArrayOutputStream;
import java.io.InputStream;
import java.net.URL;
public class NexusTest {
public static void main(String[] args) throws Exception {
URL resource = new URL("https://repository.takari.io/content/groups/public/org/apache/maven/apache-maven/3.2.6-SNAPSHOT/maven-metadata.xml");
ByteArrayOutputStream buf = new ByteArrayOutputStream();
osgi.dev {-dev}
if set to the empty string, dev mode is simply turned on. This property may also be set to a comma-separated class path entries which are added to the class path of each plug-in or a URL to a Java properties file containing custom classpath additions for a set of plug-ins. For each plug-in requiring a customized dev time classpath the file will contain an entry of the form
<plug-in id>=<comma separated list of classpath entries to add>
where plug-in id "*" matches any plug-in not otherwise mentioned.
@ifedorenko
ifedorenko / gist:62b9f7e2c0f740a29caa
Created June 25, 2014 13:50
unexpected m2e auth popup
"Worker-2" #29 prio=5 os_prio=31 tid=0x0000000102372800 nid=0x12563 in Object.wait() [0x00000001273c0000]
java.lang.Thread.State: TIMED_WAITING (on object monitor)
at java.lang.Object.wait(Native Method)
at org.eclipse.ui.internal.Semaphore.acquire(Semaphore.java:43)
- locked <0x000000078363a1c8> (a org.eclipse.ui.internal.Semaphore)
at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:175)
at org.eclipse.swt.widgets.Display.syncExec(Display.java:4721)
at org.eclipse.ui.internal.net.auth.UserValidationDialog.getAuthentication(UserValidationDialog.java:55)
at org.eclipse.ui.internal.net.auth.NetAuthenticator.getPasswordAuthentication(NetAuthenticator.java:41)
at java.net.Authenticator.requestPasswordAuthentication(Authenticator.java:317)
mpb:incrementalbuild-messages-test igor$ mvn clean compile -e
[INFO] Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO]
[INFO] Using the builder org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder with a thread count of 1
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building incrementalbuild-messages-test 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
# Maven Development Tools
Maven Development Tools is a collection of m2e extensions that enables
end-to-end debugging of Maven Plugins, Maven Core and their dependencies from
m2e development workspace, without the need to install artifacts to the local
Maven repository.
For Maven Plugin developers this provides ability to run and debug plugin
directly from Eclipse workspace. Changes to plugin sources, pom.xml
dependencies, etc, are picked up during next Run/Debug as Maven Build or
May 21, 2013 8:01:08 AM com.sun.jersey.api.client.ClientResponse getEntity
SEVERE: A message body reader for Java class com.sonatype.nexus.staging.api.dto.StagingProfileRepositoryDTO, and Java type class com.sonatype.nexus.staging.api.dto.StagingProfileRepositoryDTO, and MIME media type text/html was not found
May 21, 2013 8:01:08 AM com.sun.jersey.api.client.ClientResponse getEntity
SEVERE: The registered message body readers compatible with the MIME media type are:
*/* ->
com.sun.jersey.core.impl.provider.entity.FormProvider
com.sun.jersey.core.impl.provider.entity.StringProvider
com.sun.jersey.core.impl.provider.entity.ByteArrayProvider
com.sun.jersey.core.impl.provider.entity.FileProvider
com.sun.jersey.core.impl.provider.entity.InputStreamProvider
/Library/Java/JavaVirtualMachines/jdk1.7.0_15.jdk/Contents/Home/bin/java
-Dm2eclipse.workspace.state=/workspaces/tesla-dev/.metadata/.plugins/org.eclipse.m2e.core/workspacestate.properties
-Dmaven.home=WORKSPACE
-Dclassworlds.conf=/workspaces/tesla-dev/.metadata/.plugins/org.eclipse.m2e.launching/launches/m2conf4204869846360210877.tmp
-Dmaven.bootclasspath=/Users/igor/.m2/repository/org/codehaus/plexus/plexus-classworlds/2.4.2/plexus-classworlds-2.4.2.jar
-Dverifier.forkMode=embedded
-Dtychodev-maven.home=WORKSPACE
-Dtychodev-maven.ext.class.path=/workspaces/m2e-dev/m2e-core/org.eclipse.m2e.launching/org.eclipse.m2e.cliresolver30.jar
-Dtychodev-cp=/workspaces/tesla-dev/maven-integration-testing/core-it-suite/target/test-classes:/workspaces/tesla-dev/maven-integration-testing/core-it-suite/target/classes:/Users/igor/.m2/repository/junit/junit/4.8.2/junit-4.8.2.jar:/Users/igor/.m2/repository/org/codehaus/plexus/plexus-utils/1.5.8/plexus-utils-1.5.8.jar:/workspaces/tesla-dev/maven-integration-testing/core-it-sup
diff --git a/pom.xml b/pom.xml
index 1040cb4..a74a8c7 100644
--- a/pom.xml
+++ b/pom.xml
@@ -10,9 +10,9 @@
<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>
<parent>
- <groupId>io.tesla</groupId>
- <artifactId>tesla</artifactId>