I've been trying to use Maven with the Surefire plugin to run some JUnit unit tests.
Following the instructions provided by Maven and the Surefire folks here: http://maven.apache.org/surefire/maven-surefire-plugin/examples/single-test.html
My command for maven is as follows:
mvn clean -Dtest-group=regression -Dtest=TestClass#testMethod test
TestGroup is pulled from an #IfProfileValue statement and has always worked:
#IfProfileValue(name = "test-group", values = {"regression"})
However after I run the command, despite being sure that testClass has a method named testMethod(which would run if I didn't add the #testMethod to the command) my output is as follows:
~/REPOS/app: mvn clean -Dtest-group=regression -Dtest=TestClass#testmethod test
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for com.app:GuiAuto:jar:0.0.1-SNAPSHOT
[WARNING] 'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: org.twitter4j:twitter4j-core:jar -> version 2.2.4 vs [3.0,) # line 127, column 21
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. # line 147, column 12
[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 GuiAuto 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) # GuiAuto ---
[INFO] Deleting /Users/llaskin/REPOS/app/target
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) # GuiAuto ---
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] Copying 92 resources
[INFO]
[INFO] --- maven-compiler-plugin:2.5.1:compile (default-compile) # GuiAuto ---
[INFO] Compiling 762 source files to /Users/llaskin/REPOS/app/target/classes
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) # GuiAuto ---
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] Copying 3 resources
[INFO]
[INFO] --- maven-compiler-plugin:2.5.1:testCompile (default-testCompile) # GuiAuto ---
[INFO] Compiling 762 source files to /Users/llaskin/REPOS/app/target/test-classes
[INFO]
[INFO] --- maven-surefire-plugin:2.17:test (default-test) # GuiAuto ---
[INFO] Surefire report directory: /Users/llaskin/REPOS/app/target/surefire-reports
[INFO] parallel='classes', perCoreThreadCount=false, threadCount=5, useUnlimitedThreads=false, threadCountSuites=0, threadCountClasses=0, threadCountMethods=0, parallelOptimized=true
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Results :
Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 11.379s
[INFO] Finished at: Mon Nov 17 12:27:59 CST 2014
[INFO] Final Memory: 27M/571M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.17:test (default-test) on project GuiAuto: No tests were executed! (Set -DfailIfNoTests=false to ignore this error.) -> [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/MojoFailureException
Maybe this is because of the bug SUREFIRE-1028 in Surefire 2.16 and 2.17. This bug is fixed in Surefire 2.18.
Can you please upgrade and tell us whether your problem is fixed with Surefire 2.18 or not.
Related
I just installed Eclipse IDE 2022-03 and Gluon Plugin 2.8.2. Latest Eclipse IDE does not work with Gluon 2.8.2.
Anyway!
I created a FXML project and then I run the project with mvn gluonfx:run as the manual says. mvn javafx:run is working
But then I got this error.
[INFO] Scanning for projects...
[INFO]
[INFO] -------------------< com.gluonapplication:test-fxml >-------------------
[INFO] Building Test FXML 1.0-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] >>> gluonfx-maven-plugin:1.0.8:run (default-cli) > process-classes # test-fxml >>>
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) # test-fxml ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 6 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.8.1:compile (default-compile) # test-fxml ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] <<< gluonfx-maven-plugin:1.0.8:run (default-cli) < process-classes # test-fxml <<<
[INFO]
[INFO]
[INFO] --- gluonfx-maven-plugin:1.0.8:run (default-cli) # test-fxml ---
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.174 s
[INFO] Finished at: 2022-09-23T11:13:29+02:00
[INFO] ------------------------------------------------------------------------
[WARNING] The requested profile "pom.xml" could not be activated because it does not exist.
[ERROR] Failed to execute goal com.gluonhq:gluonfx-maven-plugin:1.0.8:run (default-cli) on project test-fxml: Execution default-cli of goal com.gluonhq:gluonfx-maven-plugin:1.0.8:run failed: ${maven.home} is not specified as a directory: 'C:\Users\dmn\eclipse-workspace\Test FXML\EMBEDDED'. -> [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/PluginExecutionException
As you can see, this is the problem. Maven for Gluon JavaFX is not specified. Why and how can I specifiy it?
[ERROR] Failed to execute goal com.gluonhq:gluonfx-maven-plugin:1.0.8:run (default-cli) on project test-fxml: Execution default-cli of goal com.gluonhq:gluonfx-maven-plugin:1.0.8:run failed: ${maven.home} is not specified as a directory: 'C:\Users\dmn\eclipse-workspace\Test FXML\EMBEDDED'. -> [Help 1]
when I use the command mvn clean quarkus: dev, I get the following response from the terminal in intellij:
E:\api-hard-lot>mvn clean quarkus:dev
[INFO] Scanning for projects...
[INFO]
[INFO] ---------------------< org.acme:code-with-quarkus >---------------------
[INFO] Building code-with-quarkus 1.0.0-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) # code-with-quarkus ---
[INFO] Deleting E:\api-hard-lot\target
[INFO]
[INFO] --- quarkus-maven-plugin:1.13.2.Final:dev (default-cli) # code-with-quarkus ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 31 source files to E:\api-hard-lot\target\classes
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.052 s
[INFO] Finished at: 2021-04-25T12:02:55-03:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal io.quarkus:quarkus-maven-plugin:1.13.2.Final:dev (default-cli) on project code-with-quarkus: Fatal error
compiling: invalid target release: 11 -> [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
'cmd' is not recognized as an internal command
or external, an operable program or a batch file.
Your project was created using JDK 11 and thus mandates JDK 11 while you are trying to build it with a JDK inferior to 11.
Either update your JDK (recommended) or adjust your project to be JDK 8 compatible (replace occurrences of 11 with 1.8 in your pom file).
thanks guys thats exactly my solution i alter to jdk 8 and
in pom
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
and
in code-with-quarkus
When I try to start the application from Tomcat Web Application Manager it shows this error...
FAIL - Application at context path [/surveyreporting] could not be started
FAIL - Encountered exception [org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/surveyreporting]]]
And When I make war file using Mavin this is what happen....
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building springboottest 1.0
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- lombok-maven-plugin:1.16.8.0:delombok (default) # surveyreporting ---
[WARNING] Skipping Delombok; no source to process.
[INFO]
[INFO] --- maven-resources-plugin:3.0.1:resources (default-resources) # surveyreporting ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO] Copying 1393 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.7.0:compile (default-compile) # surveyreporting ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 143 source files to /var/www/html/new/surveyreporting/target/classes
[WARNING] /var/www/html/new/surveyreporting/src/main/java/com/piccibhai/Controller/HomeController.java:[18,47] com.sun.org.apache.xerces.internal.util.URI is internal proprietary API and may be removed in a future release
[WARNING] /var/www/html/new/surveyreporting/src/main/java/com/piccibhai/Controller/HomeController.java:[18,47] com.sun.org.apache.xerces.internal.util.URI is internal proprietary API and may be removed in a future release
[WARNING] /var/www/html/new/surveyreporting/src/main/java/com/piccibhai/Controller/HomeController.java:[18,47] com.sun.org.apache.xerces.internal.util.URI is internal proprietary API and may be removed in a future release
[WARNING] /var/www/html/new/surveyreporting/src/main/java/com/piccibhai/Controller/HomeController.java:[18,47] com.sun.org.apache.xerces.internal.util.URI is internal proprietary API and may be removed in a future release
[WARNING] /var/www/html/new/surveyreporting/src/main/java/com/piccibhai/Controller/HomeController.java:[348,9] com.sun.org.apache.xerces.internal.util.URI is internal proprietary API and may be removed in a future release
[WARNING] /var/www/html/new/surveyreporting/src/main/java/com/piccibhai/Controller/HomeController.java:[350,23] com.sun.org.apache.xerces.internal.util.URI is internal proprietary API and may be removed in a future release
[WARNING] /var/www/html/new/surveyreporting/src/main/java/com/piccibhai/Controller/HomeController.java:[351,18] com.sun.org.apache.xerces.internal.util.URI is internal proprietary API and may be removed in a future release
[INFO] /var/www/html/new/surveyreporting/src/main/java/com/piccibhai/Controller/Data/Download/PPRDownloadRequest.java: Some input files use unchecked or unsafe operations.
[INFO] /var/www/html/new/surveyreporting/src/main/java/com/piccibhai/Controller/Data/Download/PPRDownloadRequest.java: Recompile with -Xlint:unchecked for details.
[INFO]
[INFO] --- maven-resources-plugin:3.0.1:testResources (default-testResources) # surveyreporting ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /var/www/html/new/surveyreporting/src/test/resources
[INFO]
[INFO] --- maven-compiler-plugin:3.7.0:testCompile (default-testCompile) # surveyreporting ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-surefire-plugin:2.21.0:test (default-test) # surveyreporting ---
[INFO] No tests to run.
[INFO]
[INFO] --- maven-war-plugin:3.1.0:war (default-war) # surveyreporting ---
[INFO] Packaging webapp
[INFO] Assembling webapp [surveyreporting] in [/var/www/html/new/surveyreporting/target/surveyreporting-1.0]
[INFO] Processing war project
[INFO] Webapp assembled in [2378 msecs]
[INFO] Building war: /var/www/html/new/surveyreporting/target/surveyreporting-1.0.war
[INFO]
[INFO] --- spring-boot-maven-plugin:2.0.3.RELEASE:repackage (default) # surveyreporting ---
[INFO]
[INFO] --- maven-install-plugin:2.5.2:install (default-install) # surveyreporting ---
[INFO] Installing /var/www/html/new/surveyreporting/target/surveyreporting-1.0.war to /home/tapumandal/.m2/repository/com/piccibhai/surveyreporting/1.0/surveyreporting-1.0.war
[INFO] Installing /var/www/html/new/surveyreporting/pom.xml to /home/tapumandal/.m2/repository/com/piccibhai/surveyreporting/1.0/surveyreporting-1.0.pom
[INFO]
[INFO] --- maven-deploy-plugin:2.8.2:deploy (default-deploy) # surveyreporting ---
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 40.825 s
[INFO] Finished at: 2019-03-05T14:27:44+06:00
[INFO] Final Memory: 51M/757M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.8.2:deploy (default-deploy) on project surveyreporting: Failed to deploy artifacts/metadata: Cannot access scp://localhost/surveyreporting with type default using the available connector factories: BasicRepositoryConnectorFactory: Cannot access scp://localhost/surveyreporting using the registered transporter factories: WagonTransporterFactory: java.util.NoSuchElementException
[ERROR] role: org.apache.maven.wagon.Wagon
[ERROR] roleHint: scp
[ERROR] -> [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
Process finished with exit code 1
By the way the application runs on my computer(local) fine.
Server Information
Tomcat Version : Apache Tomcat/8.5.34
JVM Version : 1.8.0_191-b12
My Computer(local)
java version "1.8.0_181"
the error info
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.8.2:deploy (default-deploy) on project surveyreporting: Failed to deploy artifacts/metadata: Cannot access scp://localhost/surveyreporting with type default using the available connector factories: BasicRepositoryConnectorFactory: Cannot access scp://localhost/surveyreporting using the registered transporter factories: WagonTransporterFactory: java.util.NoSuchElementException
so,u need update scp url address
I am trying to set up Giraph with Hadoop 2.7.1
Try as I might, it doesn't seem to work.
I have tried following the below links,
http://giraph.apache.org/build.html
https://blog.cloudera.com/blog/2014/02/how-to-write-and-run-giraph-jobs-on-hadoop/
http://lab.hypotheses.org/1207
What happens when I try to build using mvn -Phadoop_yarn -Dhadoop.version=2.7.1 -DskipTests package
hadoopuser:/usr/local/giraph$ mvn -Phadoop_yarn -Dhadoop.version=2.7.1 -DskipTests package
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] Apache Giraph Parent
[INFO] Apache Giraph Core
[INFO] Apache Giraph Examples
[INFO] Apache Giraph Distribution
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Apache Giraph Parent 1.1.0
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- mavanagaiata:0.5.0:branch (git-commit) # giraph-parent ---
[INFO]
[INFO] --- mavanagaiata:0.5.0:commit (git-commit) # giraph-parent ---
[INFO]
[INFO] --- maven-enforcer-plugin:1.2:enforce (default) # giraph-parent ---
[INFO] Skipping Rule Enforcement.
[INFO]
[INFO] --- maven-dependency-versions-check-plugin:2.0.2:check (default) # giraph-parent ---
[INFO]
[INFO] --- maven-remote-resources-plugin:1.4:process (default) # giraph-parent ---
[INFO]
[INFO] --- maven-dependency-plugin:2.8:analyze-only (default) # giraph-parent ---
[INFO] Skipping plugin execution
[INFO]
[INFO] --- maven-dependency-plugin:2.8:analyze-duplicate (default) # giraph-parent ---
[INFO] Skipping plugin execution
[INFO]
[INFO] --- maven-dependency-plugin:2.8:analyze-dep-mgt (default) # giraph-parent ---
[INFO] Skipping plugin execution
[INFO]
[INFO] --- maven-duplicate-finder-plugin:1.0.4:check (default) # giraph-parent ---
[INFO]
[INFO] --- maven-site-plugin:3.3:attach-descriptor (attach-descriptor) # giraph-parent ---
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Apache Giraph Core 1.1.0
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- mavanagaiata:0.5.0:branch (git-commit) # giraph-core ---
[INFO]
[INFO] --- mavanagaiata:0.5.0:commit (git-commit) # giraph-core ---
[INFO]
[INFO] --- maven-enforcer-plugin:1.2:enforce (default) # giraph-core ---
[INFO] Skipping Rule Enforcement.
[INFO]
[INFO] --- maven-dependency-versions-check-plugin:2.0.2:check (default) # giraph-core ---
[INFO]
[INFO] --- munge-maven-plugin:1.0:munge (munge) # giraph-core ---
[INFO]
[INFO] --- maven-remote-resources-plugin:1.4:process (default) # giraph-core ---
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) # giraph-core ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 2 resources
[INFO] Copying 3 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.0:compile (default-compile) # giraph-core ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 711 source files to /usr/local/giraph/giraph-core/target/munged/classes
[INFO] -------------------------------------------------------------
[WARNING] COMPILATION WARNING :
[INFO] -------------------------------------------------------------
[WARNING] /usr/local/giraph/giraph-core/target/munged/main/org/apache/giraph/utils/UnsafeByteArrayOutputStream.java:[42,29] sun.misc.Unsafe is internal proprietary API and may be removed in a future release
[WARNING] /usr/local/giraph/giraph-core/target/munged/main/org/apache/giraph/utils/UnsafeByteArrayOutputStream.java:[44,25] sun.misc.Unsafe is internal proprietary API and may be removed in a future release
[WARNING] /usr/local/giraph/giraph-core/target/munged/main/org/apache/giraph/utils/UnsafeByteArrayOutputStream.java:[57,32] sun.misc.Unsafe is internal proprietary API and may be removed in a future release
[WARNING] /usr/local/giraph/giraph-core/target/munged/main/org/apache/giraph/utils/UnsafeArrayReads.java:[39,32] sun.misc.Unsafe is internal proprietary API and may be removed in a future release
[WARNING] /usr/local/giraph/giraph-core/target/munged/main/org/apache/giraph/utils/UnsafeArrayReads.java:[42,29] sun.misc.Unsafe is internal proprietary API and may be removed in a future release
[WARNING] /usr/local/giraph/giraph-core/target/munged/main/org/apache/giraph/utils/UnsafeArrayReads.java:[44,25] sun.misc.Unsafe is internal proprietary API and may be removed in a future release
[WARNING] /usr/local/giraph/giraph-core/target/munged/main/org/apache/giraph/utils/DistributedCacheUtils.java: Some input files use or override a deprecated API.
[WARNING] /usr/local/giraph/giraph-core/target/munged/main/org/apache/giraph/utils/DistributedCacheUtils.java: Recompile with -Xlint:deprecation for details.
[WARNING] /usr/local/giraph/giraph-core/target/munged/main/org/apache/giraph/utils/TestGraph.java: Some input files use unchecked or unsafe operations.
[WARNING] /usr/local/giraph/giraph-core/target/munged/main/org/apache/giraph/utils/TestGraph.java: Recompile with -Xlint:unchecked for details.
[INFO] 10 warnings
[INFO] -------------------------------------------------------------
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] /usr/local/giraph/giraph-core/target/munged/main/org/apache/giraph/comm/netty/SaslNettyClient.java:[84,68] cannot find symbol
symbol: variable SASL_PROPS
location: class org.apache.hadoop.security.SaslRpcServer
[ERROR] /usr/local/giraph/giraph-core/target/munged/main/org/apache/giraph/comm/netty/SaslNettyServer.java:[105,62] cannot find symbol
symbol: variable SASL_PROPS
location: class org.apache.hadoop.security.SaslRpcServer
[INFO] 2 errors
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Apache Giraph Parent ............................... SUCCESS [ 4.374 s]
[INFO] Apache Giraph Core ................................. FAILURE [ 8.469 s]
[INFO] Apache Giraph Examples ............................. SKIPPED
[INFO] Apache Giraph Distribution ......................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 13.136 s
[INFO] Finished at: 2015-11-16T10:19:07+05:30
[INFO] Final Memory: 45M/335M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.0:compile (default-compile) on project giraph-core: Compilation failure: Compilation failure:
[ERROR] /usr/local/giraph/giraph-core/target/munged/main/org/apache/giraph/comm/netty/SaslNettyClient.java:[84,68] cannot find symbol
[ERROR] symbol: variable SASL_PROPS
[ERROR] location: class org.apache.hadoop.security.SaslRpcServer
[ERROR] /usr/local/giraph/giraph-core/target/munged/main/org/apache/giraph/comm/netty/SaslNettyServer.java:[105,62] cannot find symbol
[ERROR] symbol: variable SASL_PROPS
[ERROR] location: class org.apache.hadoop.security.SaslRpcServer
[ERROR] -> [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/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <goals> -rf :giraph-cor
What happens when I try to build using, mvn -Phadoop_yarn -Dhadoop.version=2.7.1 -DskipTests install
hadoopuser:/usr/local/giraph$ mvn -Phadoop_yarn -Dhadoop.version=2.7.1 -DskipTests install
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] Apache Giraph Parent
[INFO] Apache Giraph Core
[INFO] Apache Giraph Examples
[INFO] Apache Giraph Distribution
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Apache Giraph Parent 1.1.0
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- mavanagaiata:0.5.0:branch (git-commit) # giraph-parent ---
[INFO]
[INFO] --- mavanagaiata:0.5.0:commit (git-commit) # giraph-parent ---
[INFO]
[INFO] --- maven-enforcer-plugin:1.2:enforce (default) # giraph-parent ---
[INFO] Skipping Rule Enforcement.
[INFO]
[INFO] --- maven-dependency-versions-check-plugin:2.0.2:check (default) # giraph-parent ---
[INFO]
[INFO] --- maven-remote-resources-plugin:1.4:process (default) # giraph-parent ---
[INFO]
[INFO] --- maven-dependency-plugin:2.8:analyze-only (default) # giraph-parent ---
[INFO] Skipping plugin execution
[INFO]
[INFO] --- maven-dependency-plugin:2.8:analyze-duplicate (default) # giraph-parent ---
[INFO] Skipping plugin execution
[INFO]
[INFO] --- maven-dependency-plugin:2.8:analyze-dep-mgt (default) # giraph-parent ---
[INFO] Skipping plugin execution
[INFO]
[INFO] --- maven-duplicate-finder-plugin:1.0.4:check (default) # giraph-parent ---
[INFO]
[INFO] --- maven-site-plugin:3.3:attach-descriptor (attach-descriptor) # giraph-parent ---
[INFO]
[INFO] --- maven-install-plugin:2.3.1:install (default-install) # giraph-parent ---
[INFO] Installing /usr/local/giraph/pom.xml to /home/hadoopuser/.m2/repository/org/apache/giraph/giraph-parent/1.1.0/giraph-parent-1.1.0.pom
[INFO] Installing /usr/local/giraph/target/giraph-parent-1.1.0-site.xml to /home/hadoopuser/.m2/repository/org/apache/giraph/giraph-parent/1.1.0/giraph-parent-1.1.0-site.xml
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Apache Giraph Core 1.1.0
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- mavanagaiata:0.5.0:branch (git-commit) # giraph-core ---
[INFO]
[INFO] --- mavanagaiata:0.5.0:commit (git-commit) # giraph-core ---
[INFO]
[INFO] --- maven-enforcer-plugin:1.2:enforce (default) # giraph-core ---
[INFO] Skipping Rule Enforcement.
[INFO]
[INFO] --- maven-dependency-versions-check-plugin:2.0.2:check (default) # giraph-core ---
[INFO]
[INFO] --- munge-maven-plugin:1.0:munge (munge) # giraph-core ---
[INFO]
[INFO] --- maven-remote-resources-plugin:1.4:process (default) # giraph-core ---
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) # giraph-core ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 2 resources
[INFO] Copying 3 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.0:compile (default-compile) # giraph-core ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 711 source files to /usr/local/giraph/giraph-core/target/munged/classes
[INFO] -------------------------------------------------------------
[WARNING] COMPILATION WARNING :
[INFO] -------------------------------------------------------------
[WARNING] /usr/local/giraph/giraph-core/target/munged/main/org/apache/giraph/utils/UnsafeByteArrayOutputStream.java:[42,29] sun.misc.Unsafe is internal proprietary API and may be removed in a future release
[WARNING] /usr/local/giraph/giraph-core/target/munged/main/org/apache/giraph/utils/UnsafeByteArrayOutputStream.java:[44,25] sun.misc.Unsafe is internal proprietary API and may be removed in a future release
[WARNING] /usr/local/giraph/giraph-core/target/munged/main/org/apache/giraph/utils/UnsafeByteArrayOutputStream.java:[57,32] sun.misc.Unsafe is internal proprietary API and may be removed in a future release
[WARNING] /usr/local/giraph/giraph-core/target/munged/main/org/apache/giraph/utils/UnsafeArrayReads.java:[39,32] sun.misc.Unsafe is internal proprietary API and may be removed in a future release
[WARNING] /usr/local/giraph/giraph-core/target/munged/main/org/apache/giraph/utils/UnsafeArrayReads.java:[42,29] sun.misc.Unsafe is internal proprietary API and may be removed in a future release
[WARNING] /usr/local/giraph/giraph-core/target/munged/main/org/apache/giraph/utils/UnsafeArrayReads.java:[44,25] sun.misc.Unsafe is internal proprietary API and may be removed in a future release
[WARNING] /usr/local/giraph/giraph-core/target/munged/main/org/apache/giraph/utils/DistributedCacheUtils.java: Some input files use or override a deprecated API.
[WARNING] /usr/local/giraph/giraph-core/target/munged/main/org/apache/giraph/utils/DistributedCacheUtils.java: Recompile with -Xlint:deprecation for details.
[WARNING] /usr/local/giraph/giraph-core/target/munged/main/org/apache/giraph/utils/TestGraph.java: Some input files use unchecked or unsafe operations.
[WARNING] /usr/local/giraph/giraph-core/target/munged/main/org/apache/giraph/utils/TestGraph.java: Recompile with -Xlint:unchecked for details.
[INFO] 10 warnings
[INFO] -------------------------------------------------------------
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] /usr/local/giraph/giraph-core/target/munged/main/org/apache/giraph/comm/netty/SaslNettyClient.java:[84,68] cannot find symbol
symbol: variable SASL_PROPS
location: class org.apache.hadoop.security.SaslRpcServer
[ERROR] /usr/local/giraph/giraph-core/target/munged/main/org/apache/giraph/comm/netty/SaslNettyServer.java:[105,62] cannot find symbol
symbol: variable SASL_PROPS
location: class org.apache.hadoop.security.SaslRpcServer
[INFO] 2 errors
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Apache Giraph Parent ............................... SUCCESS [ 4.360 s]
[INFO] Apache Giraph Core ................................. FAILURE [ 7.473 s]
[INFO] Apache Giraph Examples ............................. SKIPPED
[INFO] Apache Giraph Distribution ......................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 12.122 s
[INFO] Finished at: 2015-11-16T10:26:04+05:30
[INFO] Final Memory: 46M/374M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.0:compile (default-compile) on project giraph-core: Compilation failure: Compilation failure:
[ERROR] /usr/local/giraph/giraph-core/target/munged/main/org/apache/giraph/comm/netty/SaslNettyClient.java:[84,68] cannot find symbol
[ERROR] symbol: variable SASL_PROPS
[ERROR] location: class org.apache.hadoop.security.SaslRpcServer
[ERROR] /usr/local/giraph/giraph-core/target/munged/main/org/apache/giraph/comm/netty/SaslNettyServer.java:[105,62] cannot find symbol
[ERROR] symbol: variable SASL_PROPS
[ERROR] location: class org.apache.hadoop.security.SaslRpcServer
[ERROR] -> [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/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <goals> -rf :giraph-core
---
Version information follows,
Hadoop:
hadoopuser:~$ hadoop version
Hadoop 2.7.1
Subversion https://git-wip-us.apache.org/repos/asf/hadoop.git -r 15ecc87ccf4a0228f35af08fc56de536e6ce657a
Compiled by jenkins on 2015-06-29T06:04Z
Compiled with protoc 2.5.0
From source with checksum fc0a1a23fc1868e4d5ee7fa2b28a58a
This command was run using /usr/local/hadoop/share/hadoop/common/hadoop-common-2.7.1.jar
Giraph is version 1.1.0 downloaded from here : http://archive.apache.org/dist/giraph/giraph-1.1.0/giraph-dist-1.1.0-src.tar.bz2
Java
hadoopuser:~$ java -version
java version "1.8.0_05"
Java(TM) SE Runtime Environment (build 1.8.0_05-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.5-b02, mixed mode)
Maven
hadoopuser:~$ mvn -version
Apache Maven 3.3.3 (7994120775791599e205a5524ec3e0dfe41d4a06; 2015-04-22T17:27:37+05:30)
Maven home: /opt/apache-maven-3.3.3
Java version: 1.8.0_05, vendor: Oracle Corporation
Java home: /usr/lib/jvm/jdk1.8.0/jre
Default locale: en_IN, platform encoding: UTF-8
OS name: "linux", version: "3.13.0-68-generic", arch: "amd64", family: "unix"
Edit:
As was suggested by Steve Kaeser in his answer I changed my pom.xlm and changed part is shown below.
<properties>
<hadoop.version>SET_HADOOP_VERSION_USING_MVN_DASH_D_OPTION</hadoop.version>
<munge.symbols>PURE_YARN</munge.symbols>
<!-- TODO: add these checks eventually -->
<project.enforcer.skip>true</project.enforcer.skip>
<giraph.maven.dependency.plugin.skip>true</giraph.maven.dependency.plugin.skip>
<giraph.maven.duplicate.finder.skip>true</giraph.maven.duplicate.finder.skip>
</properties>
After doing this when I run mvn -Phadoop_yarn -Dhadoop.version=2.7.1 -DskipTests install I get a lot of output and it fails. Parts of the output are shown below,
[INFO]
[INFO] --- apache-rat-plugin:0.8:check (default) # giraph-core ---
[INFO] Exclude: CODE_CONVENTIONS
[INFO] Exclude: **/target/**
[INFO] Exclude: /_bsp/**
[INFO] Exclude: .checkstyle
[INFO] Exclude: .reviewboardrc
[INFO] Exclude: .git/**
[INFO] Exclude: .gitignore
[INFO] Exclude: .arcconfig
[INFO] Exclude: *.patch
[INFO] Exclude: .idea/**
[INFO] Exclude: **/*.iml
[INFO] Exclude: **/*.ipr
[INFO] Exclude: **/test/resources/**
[INFO] Exclude: giraph-gora/conf/*
[INFO] Exclude: giraph-rexster/giraph-kibble/src/main/resources/META-INF/services/com.tinkerpop.rexster.extension.RexsterExtension
[INFO] Exclude: src/site/resources/images/*.svg
[INFO]
[INFO] >>> findbugs-maven-plugin:2.5.1:check (default) > :findbugs # giraph-core >>>
[INFO]
[INFO] --- findbugs-maven-plugin:2.5.1:findbugs (findbugs) # giraph-core ---
[INFO] Fork Value is true
[java] The following errors occurred during analysis:
[java] Nov 17, 2015 3:16:36 PM edu.umd.cs.findbugs.TextUIBugReporter reportAnalysisError
[java] SEVERE: Error scanning java/util/Comparator for referenced classes
[java] java.lang.ArrayIndexOutOfBoundsException: 51966
[java] at org.objectweb.asm.ClassReader.readUTF8(Unknown Source)
[java] at org.objectweb.asm.ClassReader.readClass(Unknown Source)
.
.
.
.
.
.
.
.
[INFO] Reactor Summary:
[INFO]
[INFO] Apache Giraph Parent ............................... SUCCESS [ 4.140 s]
[INFO] Apache Giraph Core ................................. FAILURE [ 37.541 s]
[INFO] Apache Giraph Examples ............................. SKIPPED
[INFO] Apache Giraph Distribution ......................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 41.972 s
[INFO] Finished at: 2015-11-17T15:16:37+05:30
[INFO] Final Memory: 68M/537M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.mojo:findbugs-maven-plugin:2.5.1:findbugs (findbugs) on project giraph-core: Execution findbugs of goal org.codehaus.mojo:findbugs-maven-plugin:2.5.1:findbugs failed: Java returned: 1 -> [Help 1]
[ERROR]
I ran into this issue today. Finally I needed two patches to fix it:
Open pom.xml in base directory and replace <munge.symbols>PURE_YARN,STATIC_SASL_SYMBOL</munge.symbols> with: <munge.symbols>PURE_YARN</munge.symbols>
Apply patch found here: GIRAPH-1110.02.patch
Build using the clean flag of maven: mvn -Phadoop_yarn -Dhadoop.version=2.7.3 clean package -DskipTests
I just ran into this issue earlier today and found a reply in the mailing list that suggests removing STATIC_SASL_SYMBOL from munge.symbols in the hadoop_yarn profile.
I was able to build that profile after making that change.
Here is the link to the mailing list archive: http://mail-archives.apache.org/mod_mbox/giraph-user/201501.mbox/%3C54B17196.4040107#hiro-tan.org%3E
i was macking one of the oficial guides of spring: http://spring.io/guides/gs/maven/
But when y reach the part where i have to compile with maven this is what happens:
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building gs-maven-initial 0.1.0
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) # gs-maven-i
nitial ---
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources,
i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory c:\Java\WorkSpace\maven_beginer\src\m
ain\resources
[INFO]
[INFO] --- maven-compiler-plugin:2.5.1:compile (default-compile) # gs-maven-init
ial ---
[WARNING] File encoding has not been set, using platform encoding Cp1252, i.e. b
uild is platform dependent!
[INFO] Compiling 2 source files to c:\Java\WorkSpace\maven_beginer\target\classe
s
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.692s
[INFO] Finished at: Wed Nov 06 23:51:21 ART 2013
[INFO] Final Memory: 9M/102M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.
5.1:compile (default-compile) on project gs-maven-initial: Fatal error compiling
: tools.jar not found: C:\Java\jdk\..\lib\tools.jar -> [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
Goto Windows -> Preferences
Java -> Installed JREs
Change JRE to JDK
You can resolve this issue by
Add JAVA_HOME to System variable
or Copy you java folder to c:\ from c:\program files or c:\program files (x86)
or Missing tools.jar in local repository breaks m2eclipse