Maven Exited Abnormally #56

Closed
jterk opened this Issue Jan 5, 2011 · 35 comments

Comments

Projects
None yet
8 participants

jterk commented Jan 5, 2011

Hi, I'm having some trouble invoking maven from malabar mode.

I've followed the directions in the README to install malabar mode and, superficially anyways, everything seems to be working.

I created a simple Maven project using mvn archetype:generate and chosing maven-archetype-quickstart. I then navigated to App.java (in src/main/java) and invoked C-c C-v C-b to run mvn install. The compilation fails with an 'exited abnormally' error:

Projects.get('/Users/jterk/Projects/simple-maven-project/pom.xml', []).run(['install'], [], [:])
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Building SimpleProject 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-resources-plugin:2.4.3:resources (default-resources) @ SimpleProject ---
[WARNING] The POM for org.apache.maven.shared:maven-filtering:jar:1.0-beta-4 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.403s
[INFO] Finished at: Tue Jan 04 20:50:04 EST 2011
[INFO] Final Memory: 50M/115M
[INFO] ------------------------------------------------------------------------

Compilation exited abnormally at Tue Jan  4 20:50:04

If I invoke Maven from the command line everything works as expected:

> mvn install
[INFO] Scanning for projects...
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building SimpleProject 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-resources-plugin:2.4.3:resources (default-resources) @ SimpleProject ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /Users/jterk/Projects/simple-maven-project/src/main/resources
[INFO] 
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ SimpleProject ---
[INFO] Compiling 1 source file to /Users/jterk/Projects/simple-maven-project/target/classes
[INFO] 
[INFO] --- maven-resources-plugin:2.4.3:testResources (default-testResources) @ SimpleProject ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /Users/jterk/Projects/simple-maven-project/src/test/resources
[INFO] 
[INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) @ SimpleProject ---
[INFO] Compiling 1 source file to /Users/jterk/Projects/simple-maven-project/target/test-classes
[INFO] 
[INFO] --- maven-surefire-plugin:2.5:test (default-test) @ SimpleProject ---
[INFO] Surefire report directory: /Users/jterk/Projects/simple-maven-project/target/surefire-reports

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running com.goterkyourself.AppTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.024 sec

Results :

Tests run: 1, Failures: 0, Errors: 0, Skipped: 0

[INFO] 
[INFO] --- maven-jar-plugin:2.3.1:jar (default-jar) @ SimpleProject ---
[INFO] Building jar: /Users/jterk/Projects/simple-maven-project/target/SimpleProject-1.0-SNAPSHOT.jar
[INFO] 
[INFO] --- maven-install-plugin:2.3.1:install (default-install) @ SimpleProject ---
[INFO] Installing /Users/jterk/Projects/simple-maven-project/target/SimpleProject-1.0-SNAPSHOT.jar to /Users/jterk/.m2/repository/com/goterkyourself/SimpleProject/1.0-SNAPSHOT/SimpleProject-1.0-SNAPSHOT.jar
[INFO] Installing /Users/jterk/Projects/simple-maven-project/pom.xml to /Users/jterk/.m2/repository/com/goterkyourself/SimpleProject/1.0-SNAPSHOT/SimpleProject-1.0-SNAPSHOT.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.738s
[INFO] Finished at: Tue Jan 04 20:55:05 EST 2011
[INFO] Final Memory: 12M/81M
[INFO] ------------------------------------------------------------------------

What do I need to configure to get Maven to work when invoked from malabar-mode?

I am also experiencing this problem. I have tried building with maven version set to 3.0.2 and 3.0.3, but with no luck. I am running on Mac OS X.

Is there a way to get round this problem?

Thanks

Martin

serzh commented Aug 5, 2011

I have this issue too. I run maven 3.0.3.
Thanks

jixu commented Feb 22, 2012

I have encountered this problem, but it seems that malabar-mode are not maintained any more.

Owner

m0smith commented Jan 17, 2014

This is now working. I suspect the maven upgrade that was done a while back fixed this.

m0smith closed this Jan 17, 2014

alf commented Jan 23, 2014

I can still reproduce this issue. Please let me know how I can help to fix it.

I'm running OS X 10.9, GNU Emacs 24.3.1 (x86_64-apple-darwin13.0.2, NS apple-appkit-1265.00) of 2013-11-09, compiled using homebrew.

I moved away my .emacs.d and started a clean emacs, cleared the jars in .m2/.../software-ninja, deleted the .malabar_mode folder and then followed the installation instructions.

I then generated a clean mvm project as described above and tried to build. Got the same result as reported above.

alf commented Jan 23, 2014

@m0smith Not sure if you get a notification on comments to closed issues. Adding your name to make sure you see this.

m0smith reopened this Jan 23, 2014

Owner

m0smith commented Jan 23, 2014

Please capture the output and post it just so I know for sure what I am chasing.

alf commented Jan 23, 2014

My output is pretty much identical to the original bug report. It says building, then it fails. I see no errors or pointers to what's wrong. Is there a way to increase the verbosity or get more output? I'll add my actual output as soon as I get to work tomorrow morning.

alf commented Jan 29, 2014

I generate a fresh project:

mvn archetype:generate -DarchetypeGroupId=org.apache.maven.archetypes -DarchetypeArtifactId=maven-archetype-quickstart -DarchetypeVersion=1.1 -DgroupId=example.com -DartifactId=test -Dversion=1.0-SNAPSHOT -DinteractiveMode=false

Then I open the App.java file in Emacs and press C-c C-v C-c, which gives the following output:

Projects.get('/Users/alf/Projects/tmp/test/pom.xml', []).run(['install'], [], [:])
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Building test 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.016s
[INFO] Finished at: Wed Jan 29 12:47:32 CET 2014
[INFO] Final Memory: 18M/81M
[INFO] ------------------------------------------------------------------------


Compilation exited abnormally at Wed Jan 29 12:47:32
Owner

m0smith commented Jan 29, 2014

There isn't enough information. Please check the various *Malabar * buffers and see if the error is there. If it is, please post it. If not, I will add some debugging so we can see where the error is coming from

Just a minor point.  That output appears to be for the maven install
command, which has key sequence C-c C-v C-b.  If you pressed C-c C-v
C-c it would have run the java compiler on the file.
In any case, something is not working.  When you run 'mvn install'
from the command line from the project root, do you get similar
output?On 29/01/14 21:54, Alf Lervåg wrote:

  I generate a fresh project: 
  mvn archetype:generate -DarchetypeGroupId=org.apache.maven.archetypes -DarchetypeArtifactId=maven-archetype-quickstart -DarchetypeVersion=1.1 -DgroupId=example.com -DartifactId=test -Dversion=1.0-SNAPSHOT -DinteractiveMode=false

  Then I open the App.java file in Emacs and press C-c C-v C-c,
    which gives the following output:
  Projects.get('/Users/alf/Projects/tmp/test/pom.xml', []).run(['install'], [], [:])

[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Building test 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.016s
[INFO] Finished at: Wed Jan 29 12:47:32 CET 2014
[INFO] Final Memory: 18M/81M
[INFO] ------------------------------------------------------------------------

Compilation exited abnormally at Wed Jan 29 12:47:32

  —
    Reply to this email directly or view
      it on GitHub.

alf commented Jan 30, 2014

You are right of course, the command that fails is C-c C-v C-b. C-c C-v C-c succeeds.

There is no extra output in any of the *Malabar... * buffers.

Running mvn install from the command line succeeds.

Owner

m0smith commented Jan 30, 2014

Ok thanks. I will get a version that has better loggin.

Owner

m0smith commented Jan 30, 2014

Try running malabar-project-logging-debug and see if it outputs more information

alf commented Jan 30, 2014

Unfortunately, I find no extra output after running that command and then running the C-cvb key sequence.

Owner

m0smith commented Jan 30, 2014

Ok, a new build is coming

@m0smith m0smith pushed a commit that referenced this issue Jan 30, 2014

Matthew O. Smith gh-56 Added debug logging to be able to identify the maven error d3b8a12
Owner

m0smith commented Jan 30, 2014

I have pushed a new version with better debugging. It has not shown up on melpa yet but when it does:

  • Remove ~/.malabar_mode/classpath
  • Install the latest malabar-mode
  • Before building execute malabar-project-logging-debug
    Then build using C-c C-v C-b
    You should get a lot more information in the compilation buffer. Post the results so I can see where the error is coming from.
    To disable the debugging: malabar-project-logging-info

alf commented Jan 31, 2014

Here you go:

Projects.get('/Users/alf/tmp/test/pom.xml', []).run(['install'], [], [:])
[DEBUG] Using manager EnhancedLocalRepositoryManager with priority 10 for /Users/alf/.m2/repository
[DEBUG] loggingLevel=0 showErrors=true maven=org.apache.maven.DefaultMaven@50881d59
[DEBUG] Delegate org.apache.maven.execution.DefaultMavenExecutionRequest@5b912745
[DEBUG] Using local repository at /Users/alf/.m2/repository
[DEBUG] Using manager EnhancedLocalRepositoryManager with priority 10 for /Users/alf/.m2/repository
[INFO] Scanning for projects...
[DEBUG] Extension realms for project example.com:test:jar:1.0-SNAPSHOT: (none)
[DEBUG] Looking up lifecyle mappings for packaging jar from ClassRealm[plexus.core, parent: null]
[DEBUG] === REACTOR BUILD PLAN ================================================
[DEBUG] Project: example.com:test:jar:1.0-SNAPSHOT
[DEBUG] Tasks:   [install]
[DEBUG] Style:   Regular
[DEBUG] =======================================================================
[INFO] ------------------------------------------------------------------------
[INFO] Building test 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[DEBUG] Lifecycle default -> [validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classes, test, prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, deploy]
[DEBUG] Lifecycle clean -> [pre-clean, clean, post-clean]
[DEBUG] Lifecycle site -> [pre-site, site, post-site, site-deploy]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.022s
[INFO] Finished at: Fri Jan 31 10:30:49 CET 2014
[INFO] Final Memory: 20M/148M
[INFO] ------------------------------------------------------------------------
[ERROR] Execution error
org.apache.maven.plugin.PluginResolutionException: Plugin org.apache.maven.plugins:maven-resources-plugin:2.5 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.5
    at org.apache.maven.plugin.internal.DefaultPluginDependenciesResolver.resolve(DefaultPluginDependenciesResolver.java:129)
    at org.apache.maven.plugin.internal.DefaultMavenPluginManager.getPluginDescriptor(DefaultMavenPluginManager.java:142)
    at org.apache.maven.plugin.internal.DefaultMavenPluginManager.getMojoDescriptor(DefaultMavenPluginManager.java:261)
    at org.apache.maven.plugin.DefaultBuildPluginManager.getMojoDescriptor(DefaultBuildPluginManager.java:185)
    at org.apache.maven.lifecycle.internal.DefaultLifecycleExecutionPlanCalculator.setupMojoExecution(DefaultLifecycleExecutionPlanCalculator.java:152)
    at org.apache.maven.lifecycle.internal.DefaultLifecycleExecutionPlanCalculator.setupMojoExecutions(DefaultLifecycleExecutionPlanCalculator.java:139)
    at org.apache.maven.lifecycle.internal.DefaultLifecycleExecutionPlanCalculator.calculateExecutionPlan(DefaultLifecycleExecutionPlanCalculator.java:116)
    at org.apache.maven.lifecycle.internal.DefaultLifecycleExecutionPlanCalculator.calculateExecutionPlan(DefaultLifecycleExecutionPlanCalculator.java:129)
    at org.apache.maven.lifecycle.internal.BuilderCommon.resolveBuildPlan(BuilderCommon.java:92)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:81)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
    at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
    at org.apache.maven.Maven$execute.call(Unknown Source)
    at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:42)
    at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
    at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)
    at org.grumblesmurf.malabar.RunDescriptor$_run_closure1.doCall(MvnServer.groovy:216)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:601)
    at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)
    at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
    at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1071)
    at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:1110)
    at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:901)
    at groovy.lang.Closure.call(Closure.java:415)
    at groovy.lang.Closure.call(Closure.java:428)
    at org.codehaus.groovy.runtime.DefaultGroovyMethods.with(DefaultGroovyMethods.java:196)
    at org.codehaus.groovy.runtime.dgm$926.invoke(Unknown Source)
    at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoMetaMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:271)
    at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:53)
    at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:42)
    at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
    at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)
    at org.grumblesmurf.malabar.RunDescriptor.run(MvnServer.groovy:204)
    at org.grumblesmurf.malabar.RunDescriptor$run.call(Unknown Source)
    at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:42)
    at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
    at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:112)
    at org.grumblesmurf.malabar.Project.run(Project.groovy:100)
    at org.grumblesmurf.malabar.Project$run.call(Unknown Source)
    at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:42)
    at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
    at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:124)
    at groovysh_evaluate.run(groovysh_evaluate:4)
    at groovysh_evaluate$run.call(Unknown Source)
    at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:42)
    at groovysh_evaluate$run.call(Unknown Source)
    at org.codehaus.groovy.tools.shell.Interpreter.evaluate(Interpreter.groovy:67)
    at org.codehaus.groovy.tools.shell.Interpreter$evaluate.call(Unknown Source)
    at org.grumblesmurf.malabar.Groovysh.execute(Groovysh.groovy:153)
    at org.codehaus.groovy.tools.shell.Shell.leftShift(Shell.groovy:114)
    at org.codehaus.groovy.tools.shell.Shell$leftShift$1.call(Unknown Source)
    at org.codehaus.groovy.tools.shell.ShellRunner.work(ShellRunner.groovy:88)
    at org.codehaus.groovy.tools.shell.InteractiveShellRunner.super$2$work(InteractiveShellRunner.groovy)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:601)
    at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)
    at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
    at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1071)
    at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:1110)
    at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodOnSuperN(ScriptBytecodeAdapter.java:128)
    at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodOnSuper0(ScriptBytecodeAdapter.java:148)
    at org.codehaus.groovy.tools.shell.InteractiveShellRunner.work(InteractiveShellRunner.groovy:100)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:601)
    at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite$PogoCachedMethodSiteNoUnwrapNoCoerce.invoke(PogoMetaMethodSite.java:272)
    at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite.callCurrent(PogoMetaMethodSite.java:52)
    at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:137)
    at org.codehaus.groovy.tools.shell.ShellRunner.run(ShellRunner.groovy:57)
    at org.codehaus.groovy.tools.shell.InteractiveShellRunner.super$2$run(InteractiveShellRunner.groovy)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:601)
    at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)
    at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
    at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1071)
    at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:1110)
    at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodOnSuperN(ScriptBytecodeAdapter.java:128)
    at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodOnSuper0(ScriptBytecodeAdapter.java:148)
    at org.codehaus.groovy.tools.shell.InteractiveShellRunner.run(InteractiveShellRunner.groovy:66)
    at java_lang_Runnable$run.call(Unknown Source)
    at org.grumblesmurf.malabar.Groovysh.run(Groovysh.groovy:418)
    at org.grumblesmurf.malabar.Groovysh.run(Groovysh.groovy:362)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:601)
    at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite$PogoCachedMethodSite.invoke(PogoMetaMethodSite.java:231)
    at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite.call(PogoMetaMethodSite.java:64)
    at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:42)
    at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
    at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:112)
    at org.grumblesmurf.malabar.GroovySocketServer.run(GroovyServer.groovy:119)
    at java.lang.Thread.run(Thread.java:722)
Caused by: org.sonatype.aether.resolution.ArtifactDescriptorException: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.5
    at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.loadPom(DefaultArtifactDescriptorReader.java:296)
    at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.readArtifactDescriptor(DefaultArtifactDescriptorReader.java:186)
    at org.sonatype.aether.impl.internal.DefaultRepositorySystem.readArtifactDescriptor(DefaultRepositorySystem.java:279)
    at org.apache.maven.plugin.internal.DefaultPluginDependenciesResolver.resolve(DefaultPluginDependenciesResolver.java:115)
    ... 103 more
Caused by: org.sonatype.aether.resolution.ArtifactResolutionException: Could not transfer artifact org.apache.maven.plugins:maven-resources-plugin:pom:2.5 from/to central (http://repo.maven.apache.org/maven2): No connector available to access repository central (http://repo.maven.apache.org/maven2) of type default using the available factories 
    at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:538)
    at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:216)
    at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifact(DefaultArtifactResolver.java:193)
    at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.loadPom(DefaultArtifactDescriptorReader.java:281)
    ... 106 more
Caused by: org.sonatype.aether.transfer.ArtifactTransferException: Could not transfer artifact org.apache.maven.plugins:maven-resources-plugin:pom:2.5 from/to central (http://repo.maven.apache.org/maven2): No connector available to access repository central (http://repo.maven.apache.org/maven2) of type default using the available factories 
    at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:468)
    ... 109 more
Caused by: org.sonatype.aether.transfer.NoRepositoryConnectorException: No connector available to access repository central (http://repo.maven.apache.org/maven2) of type default using the available factories 
    at org.sonatype.aether.impl.internal.DefaultRemoteRepositoryManager.getRepositoryConnector(DefaultRemoteRepositoryManager.java:400)
    at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:453)
    ... 109 more


Compilation exited abnormally at Fri Jan 31 10:30:50
> Caused by: org.sonatype.aether.transfer.NoRepositoryConnectorException: No connector available to access repository central (http://repo.maven.apache.org/maven2) of type default using the available factories 

OK, aether. I too have been having a problem with this thing. In my case the problem is that maven can't do it's daily check for newer artifacts from repositories, because it cannot connect to them.  So I get all these maven connection errors in the maven output buffer in emacs:

org.sonatype.aether.resolution.ArtifactResolutionException: Could not transfer artifact org.json:json:jar:sources:20090211 from/to central (http://repo.maven.apache.org/maven2): No connector 
available to access repository central (http://repo.maven.apache.org/maven2) of type default using the available factories

So I run it from the command line and it connects to the repos and downloads what it needs, and then for the rest of the day the builds in emacs don't try to connect and I don't get all those errors, which is distracting. In your case you don't even have enough maven plugins in your local repo to get going with a build.  The versions you require are for the version of maven that malabar uses, which differs from the version you run on the command line.  So malabar maven is after versions of plugins that differ from what the command line maven successfully pulls down.

I have spent a little time investigating this, but have yet to pinpoint the problem and get a solution.  I think that the key to this in in the set of dependencies that malabar.jar chooses.  This is defined in the malabar-jar projects pom.xml I think:

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.build.source.version>1.6</project.build.source.version>
<project.build.target.version>1.6</project.build.target.version>
<maven.version>3.0.4</maven.version>
<maven.compiler.plugin.version>3.1</maven.compiler.plugin.version>
<maven.assembly.plugin.version>2.4</maven.assembly.plugin.version>
<exec.maven.plugin.version>1.2.1</exec.maven.plugin.version>
<maven.release.plugin.version>2.4.2</maven.release.plugin.version>
<maven.project.info.reports.plugin.version>2.6</maven.project.info.reports.plugin.version>
<maven.surefire.report.plugin.version>2.13</maven.surefire.report.plugin.version>
<maven.dependency.plugin.version>2.6</maven.dependency.plugin.version>
<aether.version>1.13.1</aether.version>
<wagon.version>2.2</wagon.version>
<groovy.major.version>1.8</groovy.major.version>
<groovy.version>1.8.8</groovy.version>
<gmaven.version>1.4</gmaven.version>
<jline.version>1.0</jline.version>
<jansi.version>1.9</jansi.version>
<junit.version>4.11</junit.version>
</properties>

The key ones are for maven, aether and wagon; they need to be compatible with one another.  I tried some suggestions that I found from people having similar problems who found a compatible set of versions, but it didn't help.  I haven't had a chance to investigate further at this stage.

Owner

m0smith commented Jan 31, 2014

Thanks for the feedback. I will look into it.

Just out of curiosity, would you both run mvn -version and post the results. I have not addessed the version of maven embedded by malabar-mode and it would be good to know what people are using

On my box I am using:

$ mvn -version
Apache Maven 3.0.5 (r01de14724cdef164cd33c7c8c2fe155faf9602da; 2013-02-19 06:51:28-0700)
Maven home: C:\Users\lpmsmith\opt\apache-maven-3.0.5
Java version: 1.7.0_45, vendor: Oracle Corporation
Java home: C:\Program Files\Java\jdk1.7.0_45\jre
Default locale: en_US, platform encoding: Cp1252
OS name: "windows 7", version: "6.1", arch: "amd64", family: "windows"

m0smith referenced this issue in m0smith/malabar-mode-jar Jan 31, 2014

Closed

Update the embedded maven to something more recent #5

alf commented Jan 31, 2014

mvn -version
Apache Maven 3.1.1 (0728685237757ffbf44136acec0402957f723d9a; 2013-09-17 17:22:22+0200)
Maven home: /opt/boxen/homebrew/Cellar/maven/3.1.1/libexec
Java version: 1.6.0_65, 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.9.1", arch: "x86_64", family: "mac"
~/Projects/kunde/mattilsynet/arkivgrensesnitt $

On 31 Jan 2014, at 17:20, Matthew O. Smith notifications@github.com wrote:

Thanks for the feedback. I will look into it.

Just out of curiosity, would you both run mvn -version and post the results. I have not addessed the version of maven embedded by malabar-mode and it would be good to know what people are using

On my box I am using:

$ mvn -version
Apache Maven 3.0.5 (r01de14724cdef164cd33c7c8c2fe155faf9602da; 2013-02-19 06:51:28-0700)
Maven home: C:\Users\lpmsmith\opt\apache-maven-3.0.5
Java version: 1.7.0_45, vendor: Oracle Corporation
Java home: C:\Program Files\Java\jdk1.7.0_45\jre
Default locale: en_US, platform encoding: Cp1252
OS name: "windows 7", version: "6.1", arch: "amd64", family: "windows"


Reply to this email directly or view it on GitHub.

I'm running 3.0.4, which is the same minor release (3.0) as what malabar is using, which is why the plugins are already there. Likewise for you Mike. For Alf, he is using a newer minor release (3.1), hence the 3.0 artifacts are not in his local repo.

Owner

m0smith commented Feb 1, 2014

I tried building the classpath with version 3.1.1 of maven and then use malabar-mode and it worked fine.

Could you attach the file ~/.malabar_mode/classpath? I'd like to compare it to the one on my machine and see what might be different.

alf commented Feb 1, 2014

The contents is:

/Users/alf/.m2/repository/junit/junit/4.11/junit-4.11.jar:/Users/alf/.m2/repository/asm/asm-tree/3.2/asm-tree-3.2.jar:/Users/alf/.m2/repository/org/fusesource/jansi/jansi/1.9/jansi-1.9.jar:/Users/alf/.m2/repository/org/apache/maven/maven-plugin-api/3.0.4/maven-plugin-api-3.0.4.jar:/Users/alf/.m2/repository/org/apache/maven/maven-model/3.0.4/maven-model-3.0.4.jar:/Users/alf/.m2/repository/org/apache/maven/maven-compat/3.0.4/maven-compat-3.0.4.jar:/Users/alf/.m2/repository/org/apache/maven/maven-aether-provider/3.0.4/maven-aether-provider-3.0.4.jar:/Users/alf/.m2/repository/org/codehaus/plexus/plexus-utils/2.0.6/plexus-utils-2.0.6.jar:/Users/alf/.m2/repository/org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3.jar:/Users/alf/.m2/repository/org/sonatype/aether/aether-impl/1.13.1/aether-impl-1.13.1.jar:/Users/alf/.m2/repository/org/apache/maven/maven-embedder/3.0.4/maven-embedder-3.0.4.jar:/Users/alf/.m2/repository/org/apache/maven/maven-repository-metadata/3.0.4/maven-repository-metadata-3.0.4.jar:/Users/alf/.m2/repository/org/apache/maven/wagon/wagon-provider-api/2.2/wagon-provider-api-2.2.jar:/Users/alf/.m2/repository/com/software-ninja/malabar/1.5.10/malabar-1.5.10.jar:/Users/alf/.m2/repository/org/sonatype/aether/aether-api/1.13.1/aether-api-1.13.1.jar:/Users/alf/.m2/repository/org/sonatype/sisu/sisu-inject-plexus/2.3.0/sisu-inject-plexus-2.3.0.jar:/Users/alf/.m2/repository/org/apache/maven/maven-settings/3.0.4/maven-settings-3.0.4.jar:/Users/alf/.m2/repository/org/sonatype/sisu/sisu-guice/3.1.0/sisu-guice-3.1.0-no_aop.jar:/Users/alf/.m2/repository/asm/asm/3.2/asm-3.2.jar:/Users/alf/.m2/repository/jline/jline/1.0/jline-1.0.jar:/Users/alf/.m2/repository/org/sonatype/plexus/plexus-sec-dispatcher/1.3/plexus-sec-dispatcher-1.3.jar:/Users/alf/.m2/repository/org/sonatype/sisu/sisu-inject-bean/2.3.0/sisu-inject-bean-2.3.0.jar:/Users/alf/.m2/repository/org/codehaus/plexus/plexus-classworlds/2.4/plexus-classworlds-2.4.jar:/Users/alf/.m2/repository/org/sonatype/aether/aether-util/1.13.1/aether-util-1.13.1.jar:/Users/alf/.m2/repository/org/apache/maven/maven-core/3.0.4/maven-core-3.0.4.jar:/Users/alf/.m2/repository/org/apache/maven/maven-settings-builder/3.0.4/maven-settings-builder-3.0.4.jar:/Users/alf/.m2/repository/org/sonatype/plexus/plexus-cipher/1.7/plexus-cipher-1.7.jar:/Users/alf/.m2/repository/org/codehaus/groovy/groovy/1.8.8/groovy-1.8.8.jar:/Users/alf/.m2/repository/org/codehaus/plexus/plexus-component-annotations/1.5.5/plexus-component-annotations-1.5.5.jar:/Users/alf/.m2/repository/antlr/antlr/2.7.7/antlr-2.7.7.jar:/Users/alf/.m2/repository/org/apache/maven/maven-model-builder/3.0.4/maven-model-builder-3.0.4.jar:/Users/alf/.m2/repository/org/sonatype/aether/aether-spi/1.13.1/aether-spi-1.13.1.jar:/Users/alf/.m2/repository/asm/asm-commons/3.2/asm-commons-3.2.jar:/Users/alf/.m2/repository/asm/asm-util/3.2/asm-util-3.2.jar:/Users/alf/.m2/repository/org/sonatype/sisu/sisu-guava/0.9.9/sisu-guava-0.9.9.jar:/Users/alf/.m2/repository/commons-cli/commons-cli/1.2/commons-cli-1.2.jar:/Users/alf/.m2/repository/org/apache/maven/maven-artifact/3.0.4/maven-artifact-3.0.4.jar:/Users/alf/.m2/repository/asm/asm-analysis/3.2/asm-analysis-3.2.jar:/Users/alf/.m2/repository/org/codehaus/plexus/plexus-interpolation/1.14/plexus-interpolation-1.14.jar
Owner

m0smith commented Feb 3, 2014

I was able to recreate the problem by deleting ~/.m2/repository and installing maven 3.1.1 and then generate the classpath in ~/.malabar_mode/classpath. After adding the missing dependecies I then get a runtime error. See https://gist.github.com/m0smith/8791890.

java.lang.NoClassDefFoundError: org/apache/maven/model/InputSource
java.lang.NoClassDefFoundError: org/apache/maven/model/merge/ModelMerger

@m0smith m0smith pushed a commit that referenced this issue Feb 3, 2014

Matthew O. Smith gh-56 Added some missing dependecies for using maven 3.1.1 but they d…
…idn't really help.
5cf25b9

@m0smith m0smith pushed a commit that referenced this issue Feb 7, 2014

Matthew O. Smith gh-56 Created a classpath building pom for maven 3.1.1 94d153e
Owner

m0smith commented Feb 7, 2014

Try using https://github.com/m0smith/malabar-mode/blob/develop/src/main/pom/classpath-3.1.1.pom

like

 rm ~/.malabar_mode/classpath
 mvn-3.1.1 -f src/main/pom/classpath-3.1.1.pom dependency:build-classpath

alf commented Feb 7, 2014

Deleted ~/.malabar_mode/classpath, ran the classpath-3.1.1.pom successfully, still get an error.

rm ~/.malabar_mode/classpath; mvn -f classpath-3.1.1.pom dependency:build-classpath
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for com.software-ninja:malabar-classpath:jar:1.6.M8
[WARNING] 'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: org.apache.maven:maven-embedder:jar -> version 3.1.1 vs 3.0.4 @ line 32, column 17
[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]
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building malabar-classpath 1.6.M8
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-dependency-plugin:2.7:build-classpath (default-cli) @ malabar-classpath ---
[INFO] Wrote classpath file '/Users/alf/.malabar_mode/classpath'.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.023s
[INFO] Finished at: Fri Feb 07 17:44:49 CET 2014
[INFO] Final Memory: 13M/126M
[INFO] ------------------------------------------------------------------------

Tried to restart emacs after having generated new classpath file but that didn't change anything.

Projects.get('/Users/alf/tmp/test/pom.xml', []).run(['install'], [], [:])
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Building test 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.021s
[INFO] Finished at: Fri Feb 07 17:42:51 CET 2014
[INFO] Final Memory: 21M/129M
[INFO] ------------------------------------------------------------------------
[ERROR] Execution error
org.apache.maven.plugin.PluginResolutionException: Plugin org.apache.maven.plugins:maven-resources-plugin:2.5 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.5
    at org.apache.maven.plugin.internal.DefaultPluginDependenciesResolver.resolve(DefaultPluginDependenciesResolver.java:129)
    at org.apache.maven.plugin.internal.DefaultMavenPluginManager.getPluginDescriptor(DefaultMavenPluginManager.java:142)
    at org.apache.maven.plugin.internal.DefaultMavenPluginManager.getMojoDescriptor(DefaultMavenPluginManager.java:261)
    at org.apache.maven.plugin.DefaultBuildPluginManager.getMojoDescriptor(DefaultBuildPluginManager.java:185)
    at org.apache.maven.lifecycle.internal.DefaultLifecycleExecutionPlanCalculator.setupMojoExecution(DefaultLifecycleExecutionPlanCalculator.java:152)
    at org.apache.maven.lifecycle.internal.DefaultLifecycleExecutionPlanCalculator.setupMojoExecutions(DefaultLifecycleExecutionPlanCalculator.java:139)
    at org.apache.maven.lifecycle.internal.DefaultLifecycleExecutionPlanCalculator.calculateExecutionPlan(DefaultLifecycleExecutionPlanCalculator.java:116)
    at org.apache.maven.lifecycle.internal.DefaultLifecycleExecutionPlanCalculator.calculateExecutionPlan(DefaultLifecycleExecutionPlanCalculator.java:129)
    at org.apache.maven.lifecycle.internal.BuilderCommon.resolveBuildPlan(BuilderCommon.java:92)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:81)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
    at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
    at org.apache.maven.Maven$execute.call(Unknown Source)
    at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:42)
    at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
    at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)
    at org.grumblesmurf.malabar.RunDescriptor$_run_closure1.doCall(MvnServer.groovy:216)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:601)
    at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)
    at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
    at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1071)
    at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:1110)
    at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:901)
    at groovy.lang.Closure.call(Closure.java:415)
    at groovy.lang.Closure.call(Closure.java:428)
    at org.codehaus.groovy.runtime.DefaultGroovyMethods.with(DefaultGroovyMethods.java:196)
    at org.codehaus.groovy.runtime.dgm$926.invoke(Unknown Source)
    at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoMetaMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:271)
    at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:53)
    at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:42)
    at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
    at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)
    at org.grumblesmurf.malabar.RunDescriptor.run(MvnServer.groovy:204)
    at org.grumblesmurf.malabar.RunDescriptor$run.call(Unknown Source)
    at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:42)
    at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
    at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:112)
    at org.grumblesmurf.malabar.Project.run(Project.groovy:100)
    at org.grumblesmurf.malabar.Project$run.call(Unknown Source)
    at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:42)
    at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
    at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:124)
    at groovysh_evaluate.run(groovysh_evaluate:4)
    at groovysh_evaluate$run.call(Unknown Source)
    at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:42)
    at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
    at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:112)
    at org.codehaus.groovy.tools.shell.Interpreter.evaluate(Interpreter.groovy:67)
    at org.codehaus.groovy.tools.shell.Interpreter$evaluate.call(Unknown Source)
    at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:42)
    at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
    at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)
    at org.grumblesmurf.malabar.Groovysh.execute(Groovysh.groovy:153)
    at org.codehaus.groovy.tools.shell.Shell.leftShift(Shell.groovy:114)
    at org.codehaus.groovy.tools.shell.Shell$leftShift$1.call(Unknown Source)
    at org.codehaus.groovy.tools.shell.ShellRunner.work(ShellRunner.groovy:88)
    at org.codehaus.groovy.tools.shell.InteractiveShellRunner.super$2$work(InteractiveShellRunner.groovy)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:601)
    at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)
    at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
    at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1071)
    at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:1110)
    at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodOnSuperN(ScriptBytecodeAdapter.java:128)
    at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodOnSuper0(ScriptBytecodeAdapter.java:148)
    at org.codehaus.groovy.tools.shell.InteractiveShellRunner.work(InteractiveShellRunner.groovy:100)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:601)
    at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite$PogoCachedMethodSiteNoUnwrapNoCoerce.invoke(PogoMetaMethodSite.java:272)
    at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite.callCurrent(PogoMetaMethodSite.java:52)
    at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:137)
    at org.codehaus.groovy.tools.shell.ShellRunner.run(ShellRunner.groovy:57)
    at org.codehaus.groovy.tools.shell.InteractiveShellRunner.super$2$run(InteractiveShellRunner.groovy)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:601)
    at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)
    at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
    at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1071)
    at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:1110)
    at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodOnSuperN(ScriptBytecodeAdapter.java:128)
    at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodOnSuper0(ScriptBytecodeAdapter.java:148)
    at org.codehaus.groovy.tools.shell.InteractiveShellRunner.run(InteractiveShellRunner.groovy:66)
    at java_lang_Runnable$run.call(Unknown Source)
    at org.grumblesmurf.malabar.Groovysh.run(Groovysh.groovy:418)
    at org.grumblesmurf.malabar.Groovysh.run(Groovysh.groovy:362)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:601)
    at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite$PogoCachedMethodSite.invoke(PogoMetaMethodSite.java:231)
    at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite.call(PogoMetaMethodSite.java:64)
    at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:42)
    at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
    at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:112)
    at org.grumblesmurf.malabar.GroovySocketServer.run(GroovyServer.groovy:119)
    at java.lang.Thread.run(Thread.java:722)
Caused by: org.sonatype.aether.resolution.ArtifactDescriptorException: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.5
    at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.loadPom(DefaultArtifactDescriptorReader.java:296)
    at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.readArtifactDescriptor(DefaultArtifactDescriptorReader.java:186)
    at org.sonatype.aether.impl.internal.DefaultRepositorySystem.readArtifactDescriptor(DefaultRepositorySystem.java:279)
    at org.apache.maven.plugin.internal.DefaultPluginDependenciesResolver.resolve(DefaultPluginDependenciesResolver.java:115)
    ... 107 more
Caused by: org.sonatype.aether.resolution.ArtifactResolutionException: Could not transfer artifact org.apache.maven.plugins:maven-resources-plugin:pom:2.5 from/to central (http://repo.maven.apache.org/maven2): No connector available to access repository central (http://repo.maven.apache.org/maven2) of type default using the available factories 
    at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:538)
    at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:216)
    at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifact(DefaultArtifactResolver.java:193)
    at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.loadPom(DefaultArtifactDescriptorReader.java:281)
    ... 110 more
Caused by: org.sonatype.aether.transfer.ArtifactTransferException: Could not transfer artifact org.apache.maven.plugins:maven-resources-plugin:pom:2.5 from/to central (http://repo.maven.apache.org/maven2): No connector available to access repository central (http://repo.maven.apache.org/maven2) of type default using the available factories 
    at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:468)
    ... 113 more
Caused by: org.sonatype.aether.transfer.NoRepositoryConnectorException: No connector available to access repository central (http://repo.maven.apache.org/maven2) of type default using the available factories 
    at org.sonatype.aether.impl.internal.DefaultRemoteRepositoryManager.getRepositoryConnector(DefaultRemoteRepositoryManager.java:400)
    at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:453)
    ... 113 more


Compilation exited abnormally at Fri Feb  7 17:42:51
Owner

m0smith commented Feb 7, 2014

Can you attach the generated classpath file again?

alf commented Feb 7, 2014

/Users/alf/.m2/repository/junit/junit/4.11/junit-4.11.jar:/Users/alf/.m2/repository/asm/asm-tree/3.2/asm-tree-3.2.jar:/Users/alf/.m2/repository/org/fusesource/jansi/jansi/1.9/jansi-1.9.jar:/Users/alf/.m2/repository/org/apache/maven/maven-plugin-api/3.0.4/maven-plugin-api-3.0.4.jar:/Users/alf/.m2/repository/org/apache/maven/maven-compat/3.0.4/maven-compat-3.0.4.jar:/Users/alf/.m2/repository/org/apache/maven/maven-model/3.0.4/maven-model-3.0.4.jar:/Users/alf/.m2/repository/org/apache/maven/maven-aether-provider/3.0.4/maven-aether-provider-3.0.4.jar:/Users/alf/.m2/repository/org/codehaus/plexus/plexus-utils/2.0.6/plexus-utils-2.0.6.jar:/Users/alf/.m2/repository/commons-lang/commons-lang/2.6/commons-lang-2.6.jar:/Users/alf/.m2/repository/org/eclipse/aether/aether-connector-wagon/0.9.0.M2/aether-connector-wagon-0.9.0.M2.jar:/Users/alf/.m2/repository/org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3.jar:/Users/alf/.m2/repository/org/sonatype/aether/aether-impl/1.13.1/aether-impl-1.13.1.jar:/Users/alf/.m2/repository/org/apache/maven/maven-embedder/3.0.4/maven-embedder-3.0.4.jar:/Users/alf/.m2/repository/org/apache/maven/maven-repository-metadata/3.0.4/maven-repository-metadata-3.0.4.jar:/Users/alf/.m2/repository/org/sonatype/aether/aether-api/1.13.1/aether-api-1.13.1.jar:/Users/alf/.m2/repository/com/software-ninja/malabar/1.5.10/malabar-1.5.10.jar:/Users/alf/.m2/repository/org/apache/maven/wagon/wagon-provider-api/2.2/wagon-provider-api-2.2.jar:/Users/alf/.m2/repository/org/eclipse/aether/aether-util/0.9.0.M2/aether-util-0.9.0.M2.jar:/Users/alf/.m2/repository/org/sonatype/sisu/sisu-inject-plexus/2.3.0/sisu-inject-plexus-2.3.0.jar:/Users/alf/.m2/repository/org/apache/maven/maven-settings/3.0.4/maven-settings-3.0.4.jar:/Users/alf/.m2/repository/org/sonatype/sisu/sisu-guice/3.1.0/sisu-guice-3.1.0-no_aop.jar:/Users/alf/.m2/repository/asm/asm/3.2/asm-3.2.jar:/Users/alf/.m2/repository/jline/jline/1.0/jline-1.0.jar:/Users/alf/.m2/repository/org/apache/maven/wagon/wagon-http-shared/2.5/wagon-http-shared-2.5.jar:/Users/alf/.m2/repository/org/eclipse/aether/aether-spi/0.9.0.M2/aether-spi-0.9.0.M2.jar:/Users/alf/.m2/repository/org/sonatype/plexus/plexus-sec-dispatcher/1.3/plexus-sec-dispatcher-1.3.jar:/Users/alf/.m2/repository/org/sonatype/sisu/sisu-inject-bean/2.3.0/sisu-inject-bean-2.3.0.jar:/Users/alf/.m2/repository/org/codehaus/plexus/plexus-classworlds/2.4/plexus-classworlds-2.4.jar:/Users/alf/.m2/repository/commons-io/commons-io/2.2/commons-io-2.2.jar:/Users/alf/.m2/repository/org/sonatype/aether/aether-util/1.13.1/aether-util-1.13.1.jar:/Users/alf/.m2/repository/org/apache/maven/maven-core/3.0.4/maven-core-3.0.4.jar:/Users/alf/.m2/repository/org/jsoup/jsoup/1.7.2/jsoup-1.7.2.jar:/Users/alf/.m2/repository/org/apache/maven/maven-settings-builder/3.0.4/maven-settings-builder-3.0.4.jar:/Users/alf/.m2/repository/org/sonatype/plexus/plexus-cipher/1.7/plexus-cipher-1.7.jar:/Users/alf/.m2/repository/org/codehaus/plexus/plexus-component-annotations/1.5.5/plexus-component-annotations-1.5.5.jar:/Users/alf/.m2/repository/org/codehaus/groovy/groovy/1.8.8/groovy-1.8.8.jar:/Users/alf/.m2/repository/org/apache/maven/wagon/wagon-http-lightweight/2.5/wagon-http-lightweight-2.5.jar:/Users/alf/.m2/repository/org/apache/maven/maven-model-builder/3.0.4/maven-model-builder-3.0.4.jar:/Users/alf/.m2/repository/org/sonatype/aether/aether-spi/1.13.1/aether-spi-1.13.1.jar:/Users/alf/.m2/repository/antlr/antlr/2.7.7/antlr-2.7.7.jar:/Users/alf/.m2/repository/asm/asm-commons/3.2/asm-commons-3.2.jar:/Users/alf/.m2/repository/asm/asm-util/3.2/asm-util-3.2.jar:/Users/alf/.m2/repository/org/eclipse/aether/aether-api/0.9.0.M2/aether-api-0.9.0.M2.jar:/Users/alf/.m2/repository/org/sonatype/sisu/sisu-guava/0.9.9/sisu-guava-0.9.9.jar:/Users/alf/.m2/repository/commons-cli/commons-cli/1.2/commons-cli-1.2.jar:/Users/alf/.m2/repository/org/apache/maven/maven-artifact/3.0.4/maven-artifact-3.0.4.jar:/Users/alf/.m2/repository/asm/asm-analysis/3.2/asm-analysis-3.2.jar:/Users/alf/.m2/repository/org/codehaus/plexus/plexus-interpolation/1.14/plexus-interpolation-1.14.jar
Owner

m0smith commented Feb 7, 2014

Deleting the repo and starting from scratch reproduces your error.

I have decided go with a separate build for 3.1.1. I have gotten most of the dependencies resolved except there is a breaking change in the way logging is handled. Fortunately, others have run into this issue. jenkinsci/maven-plugin@a461ce3
Look for EmbedderLoggingImpl to see how they handled it.

alf commented Feb 7, 2014

Thanks for taking the time to fix this.

Owner

m0smith commented Mar 4, 2014

This is going to require a change on malabar-mode-jar via issue m0smith/malabar-mode-jar#5

Any update on this issue? I just discovered malabar-mode the other day and installed from melpa. I've got maven 3.2.3 and java 1.8.0_25 but am seeing an error stack much like what alf described above. It seems I can get compilation to work so long as I've already built my project using maven from a shell, but package and install both fail.

@m0smith m0smith modified the milestone: 2.0, Release 1.7 Dec 5, 2014

Owner

m0smith commented Jan 4, 2015

Should be fixed in 2.0

m0smith closed this Jan 4, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment