Error building hadoop 1.0.1 - missing pom.xml - maven

I followed the instructions given here to download and build hadoop 1.0.1 from this repository. I have installed JDK, Maven, cmake, autoconf etc. When I run th efollowing command from the hadoop top level directory
mvn -e package -Pdist -Pdoc -Psrc -Dtar -DskipTests
mvn reports an error saying that no pom.xml is found. There is no pom.xml file in the folder or any subfolders.

As far as I investigate the Hadoop Common tags, only version 0.23.x and 2.0.x is a Maven project. The rest is an Ant and/or Ivy project. Please note If there is no pom.xml it is not a Maven project.
If you would like to build the version 1.0.1, please use Apache Ant or Apache Ivy instead.

Related

How to build terracotta release version without "SNAPSHOT" title?

I checkout release/4.3.9 branch of dso repo from https://github.com/Terracotta-OSS. I try build terracotta 4.3.9 version. I run 'mvn clean install -P enterprise,kit' from terracotta-kit directory, but I get all libs with 'SNAPSHOT' title. Like this:
terracotta-kit-4.3.9-SNAPSHOT.tar.gz
terracotta-toolkit-runtime-4.3.9-SNAPSHOT.jar
ehcache-2.10.9-SNAPSHOT.jar
Also 'SNAPSHOT' exist in MANIFEST.MF files:
Bundle-Version: 2.10.9.SNAPSHOT
Release 4.3.9 is finished now. Why it is building with 'SNAPSHOT' title and how I can remove this?

Maven install excluding specific modules

I am installing this project with several modules. The goal is to install all modules EXCEPT the nd4j-cuda module. If I run this:
mvn clean install -pl ':nd4j-cuda-8.0'
then maven attempts to install the module, no errors are thrown detecting it. However, since I actually do NOT want to install it, I tried
mvn clean install -pl '!:nd4j-cuda-8.0'
but I get the error message
Could not find the selected project in the reactor: !:nd4j-cuda-8.0
What am I doing wrong here?
I try with groupId:
mvn clean -pl '!org.nd4j:nd4j-cuda-8.0'
also
mvn clean -pl '!:nd4j-cuda-8.0'
give teh same result.
My maven version is: 3.3.3
With maven version 3.0.5 I have the same error as you, so please use newer version of maven.

Maven RPM Packaging After *.jar creation

I researched everywhere, but could not find answer. My problem is that I would like to create my *.jar file with all its dependencies using the usual mvn install scheme. But once the *.jar is created, I like to package it using Mojo RPM plugin.
The problem is that Mojo RPM plugin is executed during mvn install lifecycle. However the *.jar is not created until after the install phase is complete. So when the rpm plugin runs, it will not have any *.jar to install.
How can we build, install the jar and then package it into an rpm using Mojo RPM plugin?

Gradle not working after fresh new install on debian linux

I just installed gradle on debian using the sudo apt-get install gradle command. When i try to run gralde afterwards it throws the following stack trace :
org.gradle.api.internal.classpath.UnknownModuleException: Cannot
locate JAR for module 'ant' in distribution directory 'null'.
at org.gradle.api.internal.classpath.DefaultModuleRegistry.findExternalJar(DefaultModuleRegistry.java:242)
at org.gradle.api.internal.classpath.DefaultModuleRegistry.getExternalModule(DefaultModuleRegistry.java:101)
at org.gradle.api.internal.DefaultClassPathProvider.findClassPath(DefaultClassPathProvider.java:46)
at org.gradle.api.internal.DefaultClassPathRegistry.getClassPath(DefaultClassPathRegistry.java:34)
at org.gradle.launcher.bootstrap.ProcessBootstrap.runNoExit(ProcessBootstrap.java:43)
at org.gradle.launcher.bootstrap.ProcessBootstrap.run(ProcessBootstrap.java:32)
at org.gradle.launcher.GradleMain.main(GradleMain.java:26)
Gradle by default gets installed into
/usr/share/gradle
I have all the jars gradle requires in my jdk, so is there any way to tell gradle to search for the libraries there and start to work ?
Try to set your GRADLE_HOME
export GRADLE_HOME=/usr/share/gradle
Is there a lib under that directory? It should have the ant jar.

How to install java library with its source code and javadoc to local repository by using maven

I have generated binary jar, source code jar and javadoc jar, but the "mvn install" only install the binary java, is there any easy way to also install source code jar and javadoc jar ? Thanks
The simplest way to achieve it is by using the performRelease flag
mvn -DperformRelease=true clean install
It will add sources and javadocs to the installed artifact

Resources