execCommand==null! when building intellij idea plugin - intellij-idea

I'm getting the following error when trying to build 'runIde' profile in the gradle
Running from the tutorial here http://www.jetbrains.org/intellij/sdk/docs/tutorials/build_system/prerequisites.html
08:18:04.614 [ERROR]
[org.gradle.internal.buildevents.BuildExceptionReporter]
08:18:04.614 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] FAILURE: Build failed with an exception.
08:18:04.614 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]
08:18:04.614 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] * What went wrong:
08:18:04.614 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Execution failed for task ':runIde'.
08:18:04.614 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > execCommand == null!
08:18:04.614 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]
08:18:04.614 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] * Try:
08:18:04.614 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Run with --stacktrace option to get the stack trace.
08:18:04.614 [ERROR] [org.gradle.internal.buildevents.BuildResultLogger]
08:18:04.614 [ERROR] [org.gradle.internal.buildevents.BuildResultLogger] BUILD FAILED in 26s
08:18:04.614 [LIFECYCLE] [org.gradle.internal.buildevents.BuildResultLogger] 8 actionable tasks: 2 executed, 6 up-to-date
08:18:04.614 [DEBUG] [org.gradle.internal.work.DefaultWorkerLeaseService] Worker lease root.1 completed (0 worker(s) in use)
08:18:04.614 [DEBUG] [org.gradle.internal.resources.AbstractTrackedResourceLock] Daemon worker: released lock on root.1
08:18:04.614 [DEBUG] [org.gradle.internal.progress.DefaultBuildOperationExecutor] Completing Build operation 'Run build'
08:18:04.614 [DEBUG] [org.gradle.launcher.daemon.server.SynchronizedDispatchConnection] thread 19: dispatching class org.gradle.launcher.daemon.protocol.BuildEvent
08:18:04.614 [DEBUG] [org.gradle.cache.internal.LockOnDemandCrossProcessCacheAccess] Releasing file lock for file content cache (C:\Users\saisr\IdeaProjects\mvn-refresher\.gradle\4.0\fileContent)
08:18:04.614 [DEBUG] [org.gradle.cache.internal.btree.BTreePersistentIndexedCache] Closing cache annotation-processors.bin (C:\Users\saisr\IdeaProjects\mvn-refresher\.gradle\4.0\fileContent\annotation-processors.bin)
08:18:04.614 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on file content cache (C:\Users\saisr\IdeaProjects\mvn-refresher\.gradle\4.0\fileContent).
08:18:04.630 [DEBUG] [org.gradle.cache.internal.LockOnDemandCrossProcessCacheAccess] Releasing file lock for task history cache (C:\Users\saisr\IdeaProjects\mvn-refresher\.gradle\4.0\taskHistory)
08:18:04.630 [DEBUG] [org.gradle.cache.internal.btree.BTreePersistentIndexedCache] Closing cache taskHistory.bin (C:\Users\saisr\IdeaProjects\mvn-refresher\.gradle\4.0\taskHistory\taskHistory.bin)
08:18:04.630 [DEBUG] [org.gradle.cache.internal.btree.BTreePersistentIndexedCache] Closing cache fileSnapshots.bin (C:\Users\saisr\IdeaProjects\mvn-refresher\.gradle\4.0\taskHistory\fileSnapshots.bin)
08:18:04.630 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on task history cache (C:\Users\saisr\IdeaProjects\mvn-refresher\.gradle\4.0\taskHistory).
08:18:04.646 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.resolveengine.store.CachedStoreFactory] Resolution result cache closed. Cache reads: 2, disk reads: 1 (avg: 0.004 secs, total: 0.004 secs)
08:18:04.646 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.resolveengine.store.CachedStoreFactory] Resolution result cache closed. Cache reads: 0, disk reads: 0 (avg: 0.0 secs, total: 0.0 secs)
08:18:04.661 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.resolveengine.store.ResolutionResultsStoreFactory] Deleted 4 resolution results binary files in 0.014 secs
08:18:04.661 [DEBUG] [org.gradle.cache.internal.LockOnDemandCrossProcessCacheAccess] Releasing file lock for Plugin Resolution Cache (C:\Users\saisr\.gradle\caches\4.0\plugin-resolution)
08:18:04.661 [DEBUG] [org.gradle.cache.internal.btree.BTreePersistentIndexedCache] Closing cache plugin-use-metadata.bin (C:\Users\saisr\.gradle\caches\4.0\plugin-resolution\plugin-use-metadata.bin)
08:18:04.661 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on Plugin Resolution Cache (C:\Users\saisr\.gradle\caches\4.0\plugin-resolution).
08:18:04.661 [DEBUG] [org.gradle.cache.internal.LockOnDemandCrossProcessCacheAccess] Releasing file lock for Artifact transforms cache (C:\Users\saisr\.gradle\caches\transforms-1)
08:18:04.661 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on Artifact transforms cache (C:\Users\saisr\.gradle\caches\transforms-1).
08:18:04.661 [DEBUG] [org.gradle.workers.internal.WorkerDaemonFactory] Stopping 0 worker daemon(s).
08:18:04.661 [INFO] [org.gradle.workers.internal.WorkerDaemonFactory] Stopped 0 worker daemon(s).
08:18:04.661 [DEBUG] [org.gradle.cache.internal.LockOnDemandCrossProcessCacheAccess] Releasing file lock for file hash cache (C:\Users\saisr\IdeaProjects\mvn-refresher\.gradle\4.0\fileHashes)
08:18:04.661 [DEBUG] [org.gradle.cache.internal.btree.BTreePersistentIndexedCache] Closing cache fileHashes.bin (C:\Users\saisr\IdeaProjects\mvn-refresher\.gradle\4.0\fileHashes\fileHashes.bin)
08:18:04.661 [DEBUG] [org.gradle.cache.internal.btree.BTreePersistentIndexedCache] Closing cache resourceHashesCache.bin (C:\Users\saisr\IdeaProjects\mvn-refresher\.gradle\4.0\fileHashes\resourceHashesCache.bin)
08:18:04.661 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on file hash cache (C:\Users\saisr\IdeaProjects\mvn-refresher\.gradle\4.0\fileHashes).
08:18:04.677 [DEBUG] [org.gradle.deployment.internal.DefaultDeploymentRegistry] Stopping 0 deployment handles
08:18:04.677 [DEBUG] [org.gradle.deployment.internal.DefaultDeploymentRegistry] Stopped deployment handles
08:18:04.677 [DEBUG] [org.gradle.cache.internal.DefaultCacheAccess] Cache Generated Gradle JARs cache (C:\Users\saisr\.gradle\caches\4.0\generated-gradle-jars) was closed 0 times.
08:18:04.677 [DEBUG] [org.gradle.cache.internal.LockOnDemandCrossProcessCacheAccess] Releasing file lock for artifact cache (C:\Users\saisr\.gradle\caches\modules-2)
08:18:04.677 [DEBUG] [org.gradle.cache.internal.btree.BTreePersistentIndexedCache] Closing cache artifact-at-repository.bin (C:\Users\saisr\.gradle\caches\modules-2\metadata-2.23\artifact-at-repository.bin)
08:18:04.677 [DEBUG] [org.gradle.cache.internal.btree.BTreePersistentIndexedCache] Closing cache module-metadata.bin (C:\Users\saisr\.gradle\caches\modules-2\metadata-2.23\module-metadata.bin)
08:18:04.677 [DEBUG] [org.gradle.cache.internal.btree.BTreePersistentIndexedCache] Closing cache module-artifacts.bin (C:\Users\saisr\.gradle\caches\modules-2\metadata-2.23\module-artifacts.bin)
08:18:04.677 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on artifact cache (C:\Users\saisr\.gradle\caches\modules-2).
08:18:04.677 [DEBUG] [org.gradle.launcher.daemon.server.exec.ExecuteBuild] The daemon has finished executing the build.
Cause: execCommand == null!
8:18:04 AM: Task execution finished 'runIde --debug'.

I guess it is a bug of gradle-intellij-plugin, see this issue.I upgrade the version of org.jetbrains.intellij from 0.3.0 to 0.3.4 in build.gradle and solve the problem.

Related

Not a valid command: idea-shell (similar: shell, oldshell)

I have trouble refreshing my SBT project in Intellij. And I am not the only one.
This is the sbt-console:
/Library/Java/JavaVirtualMachines/jdk1.8.0_151.jdk/Contents/Home/bin/java -agentlib:jdwp=transport=dt_socket,address=localhost:51917,suspend=n,server=y -Xdebug -server -Xmx1028M -Dfile.encoding=UTF-8 -Didea.runid=2017.2 -Didea.managed=true -jar "/Users/pascal.mengelt/Library/Application Support/IntelliJIdea2018.1/Scala/launcher/sbt-launch.jar" idea-shell
Listening for transport dt_socket at address: 51917
[info] Loading settings from idea.sbt ...
[info] Loading global plugins from /Users/user/.sbt/1.0/plugins
[info] Loading settings from plugins.sbt ...
[info] Loading project definition from /Users/pascal.mengelt/GitHub/scala/scala-adapters-wizard/project
[info] Loading settings from build.sbt ...
[info] Set current project to wizardDemo (in build file:/Users/pascal.mengelt/GitHub/scala/scala-adapters-wizard/)
[error] Not a valid command: idea-shell (similar: shell, oldshell)
[error] Not a valid project ID: idea-shell
[error] Expected ':'
[error] Not a valid key: idea-shell (similar: daemonShell)
[error] idea-shell
[error] ^
[INFO] [04/13/2018 13:13:19.377] [Thread-2] [CoordinatedShutdown(akka://sbt-web)] Starting coordinated shutdown from JVM shutdown hook
I found the Intellij issue for that (with workaround):
SCL-12430 Not a valid key: idea-shell
Yes ,delete the ~/.sbt/{0.13|1.0}/plugins/target
Here the command provided by Mateusz Kubuszok:
rm -rf ~/.sbt/{0.13,1.0}/plugins/target

Apache Usergrid Build error on buildling Usergrid Launcher

Hi I am trying to do a fresh build of Apache Usergrid but have been running into a build error when it reaches the Usergrid Launcher. The following is the log that gets displayed when I run: mvn -X clean install -DskipTests=true
Am I correct that it seems to be pointing to Apple Java Extensions to be the cause of the problem? If so how do I go about fixing the issue?
[DEBUG] junit:junit:jar:4.11:test
[DEBUG] org.hamcrest:hamcrest-core:jar:1.3:test
[DEBUG] org.springframework:spring-test:jar:3.1.2.RELEASE:test
[DEBUG] org.slf4j:jcl-over-slf4j:jar:1.6.1:compile
[DEBUG] org.slf4j:jul-to-slf4j:jar:1.6.1:compile
[DEBUG] log4j:log4j:jar:1.2.16:compile
[DEBUG] com.apple:AppleJavaExtensions:jar:1.5.4:compile
[DEBUG] org.slf4j:slf4j-api:jar:1.6.1:compile
[DEBUG] Using connector WagonRepositoryConnector with priority 0.0 for file://D:\incubator-usergrid-master\incubator-usergrid-master\stack\launcher/../m/repository
Downloading: file://D:\incubator-usergrid-master\incubator-usergrid-master\stack\launcher/../m2/repository/com/apple/AppleJavaExtensions/1.5.4/AppleJavaExtensions-1.5.4.jar
[DEBUG] Writing tracking file C:\Users\Alex\.m2\repository\com\apple\AppleJavaExtensions\1.5.4\AppleJavaExtensions-1.5.4.jar.lastUpdated
[DEBUG] Using connector WagonRepositoryConnector with priority 0.0 for https://repo.maven.apache.org/maven2
Downloading: https://repo.maven.apache.org/maven2/com/apple/AppleJavaExtensions/1.5.4/AppleJavaExtensions-1.5.4.jar
[DEBUG] Writing tracking file C:\Users\Alex\.m2\repository\com\apple\AppleJavaExtensions\1.5.4\AppleJavaExtensions-1.5.4.jar.lastUpdated
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Usergrid Parent .................................... SUCCESS [01:29 min]
[INFO] Usergrid Java SDK (old) ............................ SUCCESS [ 8.208 s]
[INFO] Usergrid Build Tools ............................... SUCCESS [ 0.955 s]
[INFO] Usergrid Config .................................... SUCCESS [ 1.616 s]
[INFO] Usergrid Test Utils ................................ SUCCESS [ 9.847 s]
[INFO] Usergrid Core ...................................... SUCCESS [ 31.411 s]
[INFO] Usergrid Services .................................. SUCCESS [ 27.583 s]
[INFO] Usergrid MongoDB Emulator .......................... SUCCESS [ 10.643 s]
[INFO] Usergrid REST ...................................... SUCCESS [01:02 min]
[INFO] Usergrid Tools ..................................... SUCCESS [13:34 min]
[INFO] Usergrid Websocket ................................. SUCCESS [ 27.734 s]
[INFO] Usergrid Launcher .................................. FAILURE [ 21.943 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 18:27 min
[INFO] Finished at: 2014-08-28T00:05:29-06:00
[INFO] Final Memory: 58M/178M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project usergrid-launcher: Could not resolve dependencies for project org.apache.usergrid:usergrid-launcher:jar:1.0.0:
Could not find artifact com.apple:AppleJavaExtensions:jar:1.5.4 in local-dependencies (file://D:\incubator-usergrid-master\incubator-usergrid-master\stack\launcher/../m2/repository) -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal on project usergrid-launcher: Could not resolve dependencies
for project org.apache.usergrid:usergrid-launcher:jar:1.0.0: Could not find artifact com.apple:AppleJavaExtensions:jar:1.5.4 in
local-dependencies (file://D:\incubator-usergrid-master\incubator-usergrid-master\stack\launcher/../m2/repository)
at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:220)
at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.resolveProjectDependencies(LifecycleDependencyResolver.java:127)
at org.apache.maven.lifecycle.internal.MojoExecutor.ensureDependenciesAreResolved(MojoExecutor.java:257)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:200)
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:116)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:120)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:347)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:154)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:582)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:214)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:158)
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:606)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
Caused by: org.apache.maven.project.DependencyResolutionException: Could not resolve dependencies for
project org.apache.usergrid:usergrid-launcher:jar:1.0.0: Could not find artifact
com.apple:AppleJavaExtensions:jar:1.5.4 in local-dependencies
(file://D:\incubator-usergrid-master\incubator-usergrid-master\stack\launcher/../m2/repository)
at org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultProjectDependenciesResolver.java:198)
at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDpendencyResolver.java:195)
... 22 more
Caused by: org.eclipse.aether.resolution.DependencyResolutionException: Could not find artifact
com.apple:AppleJavaExtensions:jar:1.5.4 in local-dependencies (file://D:\incubator-usergrid-master\incubator-usergrid-master\stack\launcher/../m2/repository)
at org.eclipse.aether.internal.impl.DefaultRepositorySystem.resolveDependencies(DefaultRepositorySystem.java:384)
at org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultProjectDependenciesResolver.java:192)
... 23 more
Caused by: org.eclipse.aether.resolution.ArtifactResolutionException: Could not find artifact
com.apple:AppleJavaExtensions:jar:1.5.4 in local-dependencies (file://D:\incubator-usergrid-master\incubator-usergrid-master\stack\launcher/../m2/repository)
at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:459)
at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:262)
at org.eclipse.aether.internal.impl.DefaultRepositorySystem.resolveDependencies(DefaultRepositorySystem.java:367)
... 24 more
Caused by: org.eclipse.aether.transfer.ArtifactNotFoundException: Could not find artifact
com.apple:AppleJavaExtensions:jar:1.5.4 in local-dependencies (file://D:\incubator-usergrid-master\incubator-usergrid-master\stack\launcher/../m2/repository)
at org.eclipse.aether.connector.wagon.WagonRepositoryConnector$6.wrap(WagonRepositoryConnector.java:1012)
at org.eclipse.aether.connector.wagon.WagonRepositoryConnector$6.wrap(WagonRepositoryConnector.java:1004)
at org.eclipse.aether.connector.wagon.WagonRepositoryConnector$GetTask.run(WagonRepositoryConnector.java:725)
at org.eclipse.aether.util.concurrency.RunnableErrorForwarder$1.run(RunnableErrorForwarder.java:67)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
[ERROR]
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <goals> -rf :usergrid-launcher D:\incubator-usergrid-master\incubator-usergrid-master\stack>
Any help would be greatly appreciated. Thanks.
Clearly its missing in a repo somewhere, for now get the jar from
https://code.google.com/r/ahduros-ooo-maven/source/browse/repository/com/apple/applejavaextensions/1.5.4/
and install it locally with
mvn install:install-file -Dfile=<path-to-file> -DpomFile=<path-to-pomfile>
You also have to either hack the jar or the pom.xml for launcher around a bit. I did the latter:
<dependency>
<groupId>com.apple</groupId>
<artifactId>applejavaextensions</artifactId>
<version>1.5.4</version>
</dependency>

Maven install/compile Failure

I am getting below exception , When i compile/install through maven in command prompt / eclipse.
[INFO] --- maven-resources-plugin:2.5:resources (default-resources) # dashboard ---
May 22, 2013 3:55:50 PM org.sonatype.guice.bean.reflect.Logs$JULSink warnWARNING: Error injecting: org.apache.maven.plugin.resources.ResourcesMojo java.lang.NoClassDefFoundError: org/apache/maven/shared/filtering/MavenFiltering
Exception
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:2413)
at java.lang.Class.getDeclaredConstructors(Class.java:1855)
at com.google.inject.spi.InjectionPoint.forConstructorOf(InjectionPoint.
java:245)
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4.050s
[INFO] Finished at: Wed May 22 15:55:50 MDT 2013
[INFO] Final Memory: 9M/111M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:2.5:resources (default-resources) on project dashboard: Execution default-resources of goal org.apache.maven.plugins:maven-resources-plugin:2.5:resources failed: A required class was missing while executing org.apache.maven.plugins:maven-resources-plugin:2.5:resources: org/apache/maven/shared/filtering/MavenFilteringException
I have tried by changing the repository location and also deleting the existing plugins in the repository directory.
Try if another task locks the maven-filtering jar file (.m2/repository/org/apache/maven/shared/maven-filtering/1.xx/maven-filtering-1.xx.jar). In my case Eclipse had locked that file somehow. Kill that task and maven should be ok.

Mongodb-Hadoop Adaptor

For getting started with the mongodb-hadoop adaptor i am referring to the manual
The current hadoop version running on my system is 0.20.2.
So i edited the build.sbt file to
hadoopRelease in ThisBuild := "0.20.2".
But when i try the next command of "sbt package", i get the following error.
[error] Hadoop Release '%s' is an invalid/unsupported release. Valid entries are in 0.20.2
[error] Use 'last' for the full log.
The full log is
[info] Loading project definition from E:\softwares\mine\mongo-hadoop\project
[debug] Running task... Cancelable: false, check cycles: false
[debug]
[debug] Initial source changes:
[debug] removed:Set()
[debug] added: Set()
[debug] modified: Set()
[debug] Removed products: Set()
[debug] Modified external sources: Set()
[debug] Modified binary dependencies: Set()
[debug] Initial directly invalidated sources: Set()
[debug]
[debug] Sources indirectly invalidated by:
[debug] product: Set()
[debug] binary dep: Set()
[debug] external source: Set()
[debug] Initially invalidated: Set()
[debug] Copy resource mappings:
[debug]
java.lang.RuntimeException: Hadoop Release '%s' is an invalid/unsupported release. Valid entries are in 0.20.2
at scala.sys.package$.error(package.scala:27)
at MongoHadoopBuild$$anonfun$streamingSettings$6$$anonfun$apply$8.apply(MongoHadoopBuild.scala:152)
at MongoHadoopBuild$$anonfun$streamingSettings$6$$anonfun$apply$8.apply(MongoHadoopBuild.scala:152)
at scala.collection.MapLike$class.getOrElse(MapLike.scala:122)
at scala.collection.immutable.HashMap.getOrElse(HashMap.scala:38)
at MongoHadoopBuild$$anonfun$streamingSettings$6.apply(MongoHadoopBuild.scala:152)
at MongoHadoopBuild$$anonfun$streamingSettings$6.apply(MongoHadoopBuild.scala:151)
at scala.Function1$$anonfun$compose$1.apply(Function1.scala:49)
at scala.Function1$$anonfun$compose$1.apply(Function1.scala:49)
at sbt.EvaluateSettings$$anonfun$sbt$EvaluateSettings$$single$1.apply(INode.scala:159)
at sbt.EvaluateSettings$$anonfun$sbt$EvaluateSettings$$single$1.apply(INode.scala:159)
at sbt.EvaluateSettings$MixedNode.evaluate0(INode.scala:177)
at sbt.EvaluateSettings$INode.evaluate(INode.scala:132)
at sbt.EvaluateSettings$$anonfun$sbt$EvaluateSettings$$submitEvaluate$1.apply$mcV$sp(INode.scala:64)
at sbt.EvaluateSettings.sbt$EvaluateSettings$$run0(INode.scala:73)
at sbt.EvaluateSettings$$anon$3.run(INode.scala:69)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:722)
[error] Hadoop Release '%s' is an invalid/unsupported release. Valid entries are in 0.20.2
Try to replace
hadoopRelease in ThisBuild := "0.20.2".
with
hadoopRelease in ThisBuild := "0.20".
For me it worked when I made 1.0.4 to 1.0.
Though I have to admit I did not check if the resutling jar worked.
EDIT: Jar did not work. Complained of some missing classes.

Maven release:perform problem

I have a problem when i'm trying to run the Maven task: mvn -X release:perform
[INFO] [INFO] ------------------------------------------------------------------------
[INFO] [INFO] Building Maven Default Project
[INFO] [INFO] task-segment: [deploy]
[INFO] [INFO] ------------------------------------------------------------------------
[INFO] [DEBUG] Retrieving parent-POM: org.apache.maven.plugins:maven-plugins:pom:12 for project: null:maven-resources-plugin:maven-plugin:2.3 from the repository.
[INFO] [DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent:pom:9 for project: org.apache.maven.plugins:maven-plugins:pom:12 from the repository.
[INFO] [DEBUG] Retrieving parent-POM: org.apache:apache:pom:4 for project: org.apache.maven:maven-parent:pom:9 from the repository.
[INFO] [DEBUG] Retrieving parent-POM: org.apache.maven.plugins:maven-plugins:pom:8 for project: null:maven-compiler-plugin:maven-plugin:2.0.2 from the repository.
[INFO] [DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent:pom:5 for project: org.apache.maven.plugins:maven-plugins:pom:8 from the repository.
[INFO] [DEBUG] Retrieving parent-POM: org.apache:apache:pom:3 for project: org.apache.maven:maven-parent:pom:5 from the repository.
[INFO] [DEBUG] Retrieving parent-POM: org.apache.maven.surefire:surefire:pom:2.4.3 for project: org.apache.maven.plugins:maven-surefire-plugin:maven-plugin:null from the repository.
[INFO] [DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent:pom:7 for project: org.apache.maven.surefire:surefire:pom:2.4.3 from the repository.
[INFO] [DEBUG] Adding managed dependencies for org.apache.maven.plugins:maven-surefire-plugin
[INFO] [DEBUG] org.apache.maven.surefire:surefire-api:jar:2.4.3
[INFO] [DEBUG] org.apache.maven.surefire:surefire-booter:jar:2.4.3
[INFO] [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.5.1
[INFO] [DEBUG] Retrieving parent-POM: org.apache.maven.plugins:maven-plugins:pom:10 for project: null:maven-jar-plugin:maven-plugin:2.2 from the repository.
[INFO] [DEBUG] Retrieving parent-POM: org.apache.maven.plugins:maven-plugins:pom:13 for project: null:maven-install-plugin:maven-plugin:2.3 from the repository.
[INFO] [DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent:pom:11 for project: org.apache.maven.plugins:maven-plugins:pom:13 from the repository.
[INFO] [DEBUG] Retrieving parent-POM: org.apache:apache:pom:5 for project: org.apache.maven:maven-parent:pom:11 from the repository.
[INFO] [DEBUG] Retrieving parent-POM: org.apache.maven.plugins:maven-plugins:pom:11 for project: null:maven-deploy-plugin:maven-plugin:2.4 from the repository.
[INFO] [DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent:pom:8 for project: org.apache.maven.plugins:maven-plugins:pom:11 from the repository.
[INFO] [INFO] ------------------------------------------------------------------------
[INFO] [ERROR] BUILD ERROR
[INFO] [INFO] ------------------------------------------------------------------------
[INFO] [INFO] Cannot execute mojo: resources. It requires a project with an existing pom.xml, but the build is not using one.
[INFO] [INFO] ------------------------------------------------------------------------
Based on the error message
Cannot execute mojo: resources. It requires a project with an existing pom.xml,
but the build is not using one
it looks like you don't have a pom.xml in the folder you are trying to start mvn release:prepare in....BTw. Have you executed mvn release:prepare before ?
Have you executed mvn release:prepare before ?