== TestMain.java
public class TestMain {
public static void main(String[] args) {
for (String arg : args) {
System.out.println(arg);
}
}
}
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] |
"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) |
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. |
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(); |
== TestMain.java
public class TestMain {
public static void main(String[] args) {
for (String arg : args) {
System.out.println(arg);
}
}
}
"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 |
// TODO this looks like a total hack! Is there a better way to get repository base url? | |
private String getRepoUrl( Request request, Repository repository ) | |
{ | |
String repoUrl = getContextRoot( request ).toString(); | |
if ( !repoUrl.endsWith( "/" ) ) | |
{ | |
repoUrl = repoUrl + "/"; | |
} |
Apache Maven 3.0.3 (r1075438; 2011-02-28 12:31:09-0500) | |
Maven home: /opt/apache-maven-3.0.3 | |
Java version: 1.6.0_26, vendor: Apple Inc. | |
Java home: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home | |
Default locale: en_US, platform encoding: MacRoman | |
OS name: "mac os x", version: "10.6.8", arch: "x86_64", family: "mac" | |
[INFO] Error stacktraces are turned on. | |
[DEBUG] Reading global settings from /opt/apache-maven-3.0.3/conf/settings.xml | |
[DEBUG] Reading user settings from /Users/igor/.m2/settings.xml | |
[DEBUG] Using local repository at /Users/igor/.m2/repository |
package org.eclipse.m2e.core.internal.embedder; | |
import java.util.ArrayList; | |
import java.util.List; | |
import java.util.Properties; | |
import org.apache.maven.model.Resource; | |
import org.apache.maven.project.MavenProject; | |
DEBUG] All known ContainerDescritporHandler components: [plexus, file-aggregator] | |
[DEBUG] No dependency sets specified. | |
[DEBUG] Cannot find ArtifactResolver with hint: project-cache-aware | |
org.codehaus.plexus.component.repository.exception.ComponentLookupException: java.util.NoSuchElementException | |
role: org.apache.maven.artifact.resolver.ArtifactResolver | |
roleHint: project-cache-aware | |
at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:247) | |
at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:223) | |
at org.apache.maven.shared.repository.DefaultRepositoryAssembler.contextualize(DefaultRepositoryAssembler.java:721) | |
at org.codehaus.plexus.PlexusLifecycleManager.contextualize(PlexusLifecycleManager.java:267) |