I'm trying to build Apache Hadoop 2.5.0 on Windows 7 x64 but I keep running into an unknown error - windows

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-javadoc-plugin:2.8
.1:jar (module-javadocs) on project hadoop-maven-plugins: MavenReportException:
Error while creating archive:
[ERROR] Exit code: 1 - C:\hsc\hadoop-maven-plugins\src\main\java\org\apache\hado
op\maven\plugin\util\Exec.java:45: error: unknown tag: String
[ERROR] * #param command List<String> containing command and all arguments
[ERROR] ^
[ERROR] C:\hsc\hadoop-maven-plugins\src\main\java\org\apache\hadoop\maven\plugin
\util\Exec.java:46: error: unknown tag: String
[ERROR] * #param output List<String> in/out parameter to receive command output
[ERROR] ^
[ERROR] C:\hsc\hadoop-maven-plugins\src\main\java\org\apache\hadoop\maven\plugin
\util\FileSetUtils.java:50: error: unknown tag: File
[ERROR] * #return List<File> containing every element of the FileSet as a File
[ERROR] ^
[ERROR]
[ERROR] Command line was: C:\Progra~1\Java\jdk1.8.0_20\jre\..\bin\javadoc.exe #o
ptions #packages
[ERROR]
[ERROR] Refer to the generated Javadoc files in 'C:\hsc\hadoop-maven-plugins\tar
get' dir.
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
ch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionE
xception
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <goals> -rf :hadoop-maven-plugins
Prior to this, I've run into the usual error where it asks for file read/write access. I've given it all the permissions through chmod as well as manually changing the permission settings in the file properties on windows.
The wiki link sends me to a page that basically says its a problem with the plugin. Unfortunately, there isn't anything there that would indicate how to fix the problem.
I'm on Windows 7x64, trying to build hadoop 2.5.0 using src and using latest version of maven 3.2.3 and jdk 1.8.0_20

I had a similar issue while building the source. Instead of using the following command for compiling:
mvn package -Pdist,native -DskipTests=true -Dtar
I used:
mvn package -Pdist,native -Dmaven.javadoc.skip=true -DskipTests -Dtar
Do try this!

You can also add below property in parent POM to resolve this issue -
<properties>
<additionalparam>-Xdoclint:none</additionalparam>
</properties>

Related

Jenkins throws an exception: build step 'invoke top-level maven targets' marked build as failure

Jenkins throws the following error:
[WARNING] The requested profile "singleflow" could not be activated because it does not exist.
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project factor-esb-autotest: Fatal error compiling: invalid target release: 10 -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[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/MojoExecutionException
build step 'invoke top-level maven targets' marked build as failure
My POM https://pastebin.com/xeb5Mpcb
At first I thought that the error was due to the fact that in the jenkins global settings the version does not match the plugin (3.8.1), I set it to "Install from Apach" 3.8.1 but it still does not work. What could be the reason ?
Maven in global setting
There must be a configuration for maven-compiler-plugin (<release>10</release>) or a property like <maven.compiler.release>10</maven.compiler.release>
The commented upgrade of JUnit is unrelated to the problem.
Apart from that such information that you have update pom should be part of the question up-front

How to solve the dependencies of building ignite 2.8 source code?

I am trying to build ignite 2.8 in windows 10, my java version is 1.8, and maven 3.8.5.
I build source code with the command below:
mvn clean install -P all-java,all-scala,licenses -DskipTests -D maven.javadoc.skip=true.
It failed and showed that:
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project ignite-jta: Could not resolve dependencies for project org.apache.ignite:ignite-jta:jar:2.8.0: Failed to collect dependencies at org.ow2.jotm:jotm-core:jar:2.2.3 -> org.ow2.carol:carol:jar:3.0.8 -> org.jacorb:jacorb:jar:2.2.3-jonas-patch-20071018: Failed to read artifact descriptor for org.jacorb:jacorb:jar:2.2.3-jonas-patch-20071018: Could not transfer artifact org.jacorb:jacorb:pom:2.2.3-jonas-patch-20071018 from/to maven-default-http-blocker (http://0.0.0.0/): Blocked mirror for repositories: [apache.snapshots (http://repository.apache.org/snapshots, default, snapshots), ow2-snapshot (http://repository.ow2.org/nexus/content/repositories/snapshots, default, snapshots), ow2 (http://maven.ow2.org/maven2, default, releases)] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[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 <args> -rf :ignite-jta
I have checked that the jar file of org.jacorb:jacorb:pom:2.2.3-jonas-patch-20071018 is no longer maintained in maven central and i cannot find its backup anywhere. I am not sure how to deal with that.

Command execution failed on project org.wso2.carbon.apimgt.publisher.feature

Hi I got the below error while doing maven build for Carbon API management wso2 repo. I ran npm install already
[ERROR] Failed to execute goal
org.codehaus.mojo:exec-maven-plugin:1.5.0:exec (npm install
(initialize)) on project org.wso2.carbon.apimgt.publisher.feature:
Command execution failed.: Cannot run program "C:\Program
Files\nodejs\npm" (in directory
"C:\projects\carbon-api\carbon-apimgt\features\apimgt\org.wso2.carbon.apimgt.publisher.feature\src\main\resources\publisher-new"):
CreateProcess error=193, %1 is not a valid Win32 application -> [Help
1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run
Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to
enable full debug logging. [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/MojoExecutionException
[ERROR] [ERROR] After correcting the problems, you can resume the
build with the command [ERROR] mvn -rf
:org.wso2.carbon.apimgt.publisher.feature
I ran node related commands separately and removed node commands from appropriate pom.xml. Now the build is success

sonar report failed while compiling build

The bamboo build is failed while compiling the sonar report even We added dependencies packages in pom.xml file. Might be this issue related to dependencies?
Bamboo goal command
-U clean test -Dtest.profile=integration
Bamboo error log
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.19.1:test (default-test) on project auth-server-admin-webapp: There are test failures.
[ERROR] Please refer to /datafiles/itdept/bamboo/xml-data/build-dir/ASA-ASA-IT/target/surefire-reports for the individual test results.
[ERROR] -> [Help 1]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[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/MojoFailureException

Error Install CAS SERVER 4.0

when i build the folder cas 4.o from maven showme the follow error:
Failed to execute goal
com.mycila.maven-license-plugin:maven-license-plu gin:1.9.0:check
(default) on project cas-server-uber-webapp: Resource D:\Documen
ts\CAS_HOME/src/licensing/header.txt not found in file system,
classpath or URL: unknown protocol: d -> [Help 1] [ERROR] [ERROR] To
see the full stack trace of the errors, re-run Maven with the -e swit
ch. [ERROR] Re-run Maven using the -X switch to enable full debug
logging. [ERROR] [ERROR] For more information about the errors and
possible solutions, please rea d the following articles: [ERROR] [Help
1]
http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
the solution that i found was open the pom.xml i find:
${cs.dir}/src/licensing/header.txt
You can replace whit:
${licenseHeader}
And rebuild whit comand: mvn clean install
mvn package install worked for me!!

Resources