GWT Material: Unexpected text in element: "? ?" - gwt-material-design

Copying code from gwt-material's github demo (gwt-material-demo) you can receive this strange error in compile-time:
[ERROR] 12477 [main] INFO org.jboss.errai.enterprise.rebind.NonGwtEventQualifierSerializerGenerator - Successfully loaded org.jboss.errai.cdi.EventQualifierSerializerImpl
[INFO] Computing all possible rebind results for '[my_packages].Binder'
[INFO] Rebinding [my_packages].Binder
[INFO] Invoking generator com.google.gwt.uibinder.rebind.UiBinderGenerator
[INFO] [ERROR] Unexpected text in element: "? ?": <m:MaterialRow> (:21)
This is due to some strange unvisible characters as shown in this picture:
Removing them, everything is okay.
Bye
Nicola

Related

Hawkbit build with multiple users throw error

I am trying to build a hawkBit instance with multiple Users. But everytime it throws an error like this:
[ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 4.897 s <<< FAILURE! - in org.eclipse.hawkbit.app.CorsTest
[ERROR] validateCorsRequest Time elapsed: 0.028 s <<< ERROR!
java.lang.IllegalStateException: Unable to create SecurityContext using #org.springframework.security.test.context.support.WithUserDetails(setupBefore=TEST_METHOD, userDetailsServiceBeanName=, value=admin)
Caused by: org.springframework.security.core.userdetails.UsernameNotFoundException: No such user
[INFO]
[INFO] Results:
[INFO]
[ERROR] Errors:
[ERROR] CorsTest.validateCorsRequest » IllegalState Unable to create SecurityContext u...
[INFO]
[ERROR] Tests run: 4, Failures: 0, Errors: 1, Skipped: 0
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for hawkBit :: Parent 0.3.0-SNAPSHOT:
...
[INFO] hawkBit :: Runtime ................................. SUCCESS [ 0.038 s]
[INFO] hawkBit :: Runtime :: Update Server ................ FAILURE [ 25.548 s]
[INFO] hawkBit :: Test Report ............................. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 12:38 min
[INFO] Finished at: 2022-09-14T08:43:00+02:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.2:test (default-test) on project hawkbit-update-server: There are test failures.
[ERROR]
...
My application.properties look like this:
# User Security
spring.security.user.name=admin
spring.security.user.password={bcrypt}$2a$12$ycF.o9IdsOlvy/3ML1qFgunkPuQ9P/xl38mO2EJ2uukFwqqLtoQjS
spring.main.allow-bean-definition-overriding=true
# Http Encoding
server.servlet.encoding.charset=UTF-8
server.servlet.encoding.enabled=true
server.servlet.encoding.force=true
# DDI authentication configuration
hawkbit.server.ddi.security.authentication.anonymous.enabled=false
hawkbit.server.ddi.security.authentication.targettoken.enabled=true
hawkbit.server.ddi.security.authentication.gatewaytoken.enabled=false
# Optional events
hawkbit.server.repository.publish-target-poll-event=false
# Disable DMF
hawkbit.dmf.rabbitmq.enabled=false
# Define own users instead of default "admin" user:
hawkbit.server.im.users[0].username=hawkbit
hawkbit.server.im.users[0].password={bcrypt}$2a$12$uPxtF4ae46PikuLCtBuGaOffoQ.exaKFWh0TEeh47YH9kYP.z.03y
hawkbit.server.im.users[0].firstname=Eclipse
hawkbit.server.im.users[0].lastname=HawkBit
hawkbit.server.im.users[0].permissions=ALL
spring.profiles.active=mysql
# SSL
server.port=8443
hawkbit.artifact.url.protocols.download-http.protocol=https
hawkbit.artifact.url.protocols.download-http.port=8443
security.require-ssl=true
server.use-forward-headers=true
server.ssl.key-store=hb-cert.jks
server.ssl.key-password=hb-cert
server.ssl.key-store-password=hb-cert
Even if I try to run it without the
spring.security.user.name=admin
spring.security.user.password={bcrypt}$2a$12$ycF.o9IdsOlvy/3ML1qFgunkPuQ9P/xl38mO2EJ2uukFwqqLtoQjS
it throws this error.
The bcryps hashes are all ok. The hash for admin is admin and forhawkbit is isAwesome!.
I tried one or multiple users with changing the 0 to 1,2,... but it is always the same.
Do you have any Ideas?

Failure to operate liquibase checksum - server time - with Jhipster project

I want to operate basic liquibase operations with maven in a Jhipster project. I'm using nvm 10.16.1 and Jhipster 6.2.0. I get a message error.
I checked the if the precognized line for server time error was in my app-dev and yes it is.
url: jdbc:mysql://localhost:3306/project?useUnicode=true&characterEncoding=utf8&useSSL=false&useLegacyDatetimeCode=false&serverTimezone=UTC
Here is the message error:
INFO] Starting Liquibase at lun., 12 août 2019 10:54:40 CEST (version 3.6.3 built at 2019-01-29 11:34:48)
[INFO] Settings
----------------------------
[INFO] driver: com.mysql.cj.jdbc.Driver
[INFO] url: jdbc:mysql://localhost:3306/project
[INFO] username: root
[INFO] password: *****
[INFO] use empty password: false
[INFO] properties file: null
[INFO] properties file will override? false
[INFO] prompt on non-local database? true
[INFO] clear checksums? false
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4.394 s
[INFO] Finished at: 2019-08-12T10:54:41+02:00
[INFO] Final Memory: 31M/353M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.liquibase:liquibase-maven- plugin:3.6.3:clearCheckSums (default-cli) on project project: Error setting up or running Liquibase: liquibase.exception.DatabaseException: java.sql.SQLException: The server time zone value 'Paris, Madrid (heure d��t�)' is unrecognized or represents more than one time zone. You must configure either the server or JDBC driver (via the serverTimezone configuration property) to use a more specifc time zone value if you want to utilize time zone support. -> [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
TRY 2 : put the url in pom xml
<groupId>org.liquibase</groupId>
<artifactId>liquibase-maven-plugin</artifactId>
<version>${liquibase.version}</version>
<configuration>
<changeLogFile>${project.basedir}/src/main/resources/config/liquibase/master.xml</changeLogFile>
<diffChangeLogFile>${project.basedir}/src/main/resources/config/liquibase/changelog/${maven.build.timestamp}_changelog.xml</diffChangeLogFile>
<driver>com.mysql.cj.jdbc.Driver</driver>
<url>jdbc:mysql://localhost:3306/project?useUnicode=true&characterEncoding=utf8&useSSL=false&useLegacyDatetimeCode=false&serverTimezone=UTC</url>
<defaultSchemaName>project</defaultSchemaName>
<username>root</username>
<password>*******</password>
<referenceUrl>hibernate:spring:fr.project.domain?dialect=org.hibernate.dialect.MySQL5InnoDBDialect&hibernate.physical_naming_strategy=org.springframework.boot.orm.jpa.hibernate.SpringPhysicalNamingStrategy&hibernate.implicit_naming_strategy=org.springframework.boot.orm.jpa.hibernate.SpringImplicitNamingStrategy</referenceUrl>
<verbose>true</verbose>
<logging>debug</logging>
<contexts>!test</contexts>
</configuration>
The new error is:
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[FATAL] Non-parseable POM
C:\Users\clari\Documents\project\pom.xml: entity reference name can not
contain character =' (position: START_TAG seen
...mysql://localhost:3306/project?useUnicode=true&characterEncoding=...
#561:101) # line 561, column 101
#
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR] The project
(C:\Users\clari\Documents\project\pom.xml) has 1 error
[ERROR] Non-parseable POM
C:\Users\clari\Documents\project\pom.xml: entity reference name can not contain character =' (position: START_TAG seen ...mysql://localhost:3306/project?useUnicode=true&characterEncoding=... #561:101) # line 561, column 101 -> [Help 2]
[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/ProjectBuildingException
[ERROR] [Help 2]
http://cwiki.apache.org/confluence/display/MAVEN/ModelParseException
Process finished with exit code 1
Could you please help me?
Thanks :)
You trace shows that you use liquibase-maven-plugin to execute clearCheckSums goal, the JDBC URL in application-dev.yml is read only by your java application not by maven liquibase plugin.
You must configure it also in pom.xml in the url property of liquibase-maven-plugin.
Warning, the & characters in the <url> should be encodes as XML entity &.
<url>jdbc:mysql://localhost:3306/project?useUnicode=true&characterEncoding=utf8&useSSL=false&useLegacyDatetimeCode=false&serverTimezone=UTC</url>

Can't build production package

NPM version (npm --v): 5.4.2
Gulp version (gulp -v): CLI#1.4.0, Local#3.9.1
JHipster version: 4.6.1
Node version: 6.11.3
I'm unable to build a production package. Running the application completes without issues and the same goes for building a package with 'dev' profile.
For some reason when I run ".\mvnw -Pprod package" on the project's root directory I get this error:
[INFO] [17:15:22] Starting 'inject:vendor'...
[INFO] [17:15:22] Starting 'ngconstant:prod'...
[INFO] [17:15:22] Starting 'copy:languages'...
[ERROR] events.js:160
[ERROR] throw er; // Unhandled 'error' event
[ERROR] ^
[ERROR]
[ERROR] Error: File not found with singular glob: D:\GitHub\Agora\AgoraWeb\src\main\webapp\.htaccess
[ERROR] at Glob.<anonymous> (D:\GitHub\Agora\AgoraWeb\node_modules\glob-stream\index.js:41:11)
[ERROR] at Glob.g (events.js:292:16)
[ERROR] at emitOne (events.js:96:13)
[ERROR] at Glob.emit (events.js:188:7)
[ERROR] at Glob._finish (D:\GitHub\Agora\AgoraWeb\node_modules\glob-stream\node_modules\glob\glob.js:172:8)
[ERROR] at done (D:\GitHub\Agora\AgoraWeb\node_modules\glob-stream\node_modules\glob\glob.js:159:12)
[ERROR] at Glob._processSimple2 (D:\GitHub\Agora\AgoraWeb\node_modules\glob-stream\node_modules\glob\glob.js:652:12)
[ERROR] at D:\GitHub\Agora\AgoraWeb\node_modules\glob-stream\node_modules\glob\glob.js:640:10
[ERROR] at Glob._stat2 (D:\GitHub\Agora\AgoraWeb\node_modules\glob-stream\node_modules\glob\glob.js:736:12)
[ERROR] at lstatcb_ (D:\GitHub\Agora\AgoraWeb\node_modules\glob-stream\node_modules\glob\glob.js:728:12)
[ERROR] at RES (D:\GitHub\Agora\AgoraWeb\node_modules\inflight\inflight.js:31:16)
[ERROR] at f (D:\GitHub\Agora\AgoraWeb\node_modules\once\once.js:25:25)
[ERROR] at FSReqWrap.oncomplete (fs.js:123:15)
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 25.257 s
[INFO] Finished at: 2017-10-02T17:15:22+02:00
[INFO] Final Memory: 38M/467M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.4:gulp (gulp build) on project agora: Failed to run task: 'gulp build --no-notification' failed. org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1) -> [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
I understand what it's telling me, I'm missing the .htaccess file but I never needed it before. I recently moved the project from my main drive to the backup drive and since then I can't generate a production package.
If I create an empty ".htaccess" where gulp needs it I get this other error:
[INFO] [17:21:43] Finished 'inject:app' after 2.94 s
[INFO] [17:21:43] Starting 'inject:troubleshoot'...
[INFO] [17:21:43] 'inject:troubleshoot' errored after 1.01 ms
[INFO] [17:21:43] Error: Invalid glob argument:
[INFO] at Gulp.src (D:\GitHub\Agora\AgoraWeb\node_modules\vinyl-fs\lib\src\index.js:32:11)
[INFO] at Gulp.troubleshoot (D:\GitHub\Agora\AgoraWeb\gulp\inject.js:61:27)
[INFO] at module.exports (D:\GitHub\Agora\AgoraWeb\node_modules\orchestrator\lib\runTask.js:34:7)
[INFO] at Gulp.Orchestrator._runTask (D:\GitHub\Agora\AgoraWeb\node_modules\orchestrator\index.js:273:3)
[INFO] at Gulp.Orchestrator._runStep (D:\GitHub\Agora\AgoraWeb\node_modules\orchestrator\index.js:214:10)
[INFO] at Gulp.Orchestrator.start (D:\GitHub\Agora\AgoraWeb\node_modules\orchestrator\index.js:134:8)
[INFO] at runNextSet (D:\GitHub\Agora\AgoraWeb\node_modules\run-sequence\index.js:123:15)
[INFO] at Gulp.onTaskEnd (D:\GitHub\Agora\AgoraWeb\node_modules\run-sequence\index.js:101:4)
[INFO] at emitOne (events.js:101:20)
[INFO] at Gulp.emit (events.js:188:7)
[INFO] at Gulp.Orchestrator._emitTaskDone (D:\GitHub\Agora\AgoraWeb\node_modules\orchestrator\index.js:264:8)
[INFO] at D:\GitHub\Agora\AgoraWeb\node_modules\orchestrator\index.js:275:23
[INFO] at finish (D:\GitHub\Agora\AgoraWeb\node_modules\orchestrator\lib\runTask.js:21:8)
[INFO] at D:\GitHub\Agora\AgoraWeb\node_modules\orchestrator\lib\runTask.js:52:4
[INFO] at f (D:\GitHub\Agora\AgoraWeb\node_modules\orchestrator\node_modules\once\once.js:17:25)
[INFO] at DestroyableTransform.onend (D:\GitHub\Agora\AgoraWeb\node_modules\orchestrator\node_modules\end-of-stream\index.js:31:18)
[INFO] [17:21:43] 'build' errored after 3.98 s
[INFO] [17:21:43] Error in plugin 'run-sequence(inject:troubleshoot)'
[INFO] Message:
[INFO] Invalid glob argument:
[INFO] Stack:
[INFO] Error: Invalid glob argument:
[INFO] at Gulp.src (D:\GitHub\Agora\AgoraWeb\node_modules\vinyl-fs\lib\src\index.js:32:11)
[INFO] at Gulp.troubleshoot (D:\GitHub\Agora\AgoraWeb\gulp\inject.js:61:27)
[INFO] at module.exports (D:\GitHub\Agora\AgoraWeb\node_modules\orchestrator\lib\runTask.js:34:7)
[INFO] at Gulp.Orchestrator._runTask (D:\GitHub\Agora\AgoraWeb\node_modules\orchestrator\index.js:273:3)
[INFO] at Gulp.Orchestrator._runStep (D:\GitHub\Agora\AgoraWeb\node_modules\orchestrator\index.js:214:10)
[INFO] at Gulp.Orchestrator.start (D:\GitHub\Agora\AgoraWeb\node_modules\orchestrator\index.js:134:8)
[INFO] at runNextSet (D:\GitHub\Agora\AgoraWeb\node_modules\run-sequence\index.js:123:15)
[INFO] at Gulp.onTaskEnd (D:\GitHub\Agora\AgoraWeb\node_modules\run-sequence\index.js:101:4)
[INFO] at emitOne (events.js:101:20)
[INFO] at Gulp.emit (events.js:188:7)
[INFO] at Gulp.Orchestrator._emitTaskDone (D:\GitHub\Agora\AgoraWeb\node_modules\orchestrator\index.js:264:8)
[INFO] at D:\GitHub\Agora\AgoraWeb\node_modules\orchestrator\index.js:275:23
[INFO] at finish (D:\GitHub\Agora\AgoraWeb\node_modules\orchestrator\lib\runTask.js:21:8)
[INFO] at D:\GitHub\Agora\AgoraWeb\node_modules\orchestrator\lib\runTask.js:52:4
[INFO] at f (D:\GitHub\Agora\AgoraWeb\node_modules\orchestrator\node_modules\once\once.js:17:25)
[INFO] at DestroyableTransform.onend (D:\GitHub\Agora\AgoraWeb\node_modules\orchestrator\node_modules\end-of-stream\index.js:31:18)
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 17.220 s
[INFO] Finished at: 2017-10-02T17:21:43+02:00
[INFO] Final Memory: 36M/367M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.4:gulp (gulp build) on project agora: Failed to run task: 'gulp build --no-notification' failed. org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1) -> [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
(Sorry for the long logs)
I have tried many things, including the full deletion of the repo and cloning it again. I've also tried clearing NPM's cache as advised in this answer. At this point I don't know what else to try.
Thanks !!
I have solved this problem. Gaël Marziou put me in the right track to investigate conflicting versions of node or gulp.
After testing various versions of node, both local and global I tried disabling gulp tasks one by one, none of them helped me really even though the error messages did change. So I tried messing with gulp versions, and that was the answer.
I solved my problem by changing the following line in my package.json:
"gulp": "^3.9.1",
to this:
"gulp": "3.9.1",
And now everything builds perfectly.
Thank you very much :)

mvn install on mahout didn't work (linux)

So recently I tried to install mahout on my Ubuntu. At first, I installed Hadoop and Maven, which posed some problems but still were solved. The problem is when I tried to install mahout, there was an error. Actually, there was something that I was quite confused. To work with Hadoop, I generated ssh key with a new user(hduser). Then I continued installing maven on hduser, which means that Maven is only installed on hduser.
The following command was typed after I signed in with $su - hduser.
hadoop(if it is required):
$ hadoop version
Hadoop 2.7.3
Subversion https://git-wip-us.apache.org/repos/asf/hadoop.git -r baa91f7c6bc9cb92be5982de4719c1c8af91ccff
Compiled by root on 2016-08-18T01:41Z
Compiled with protoc 2.5.0
From source with checksum 2e4ce5f957ea4db193bce3734ff29ff4
This command was run using /usr/local/hadoop/share/hadoop/common/hadoop-common-2.7.3.jar
maven:
$ mvn -version
Apache Maven 3.5.0 (ff8f5e7444045639af65f6095c62210b5713f426; 2017-04-04T03:39:06+08:00)
Maven home: /usr/local/apache-maven-3.5.0
Java version: 1.8.0_131, vendor: Oracle Corporation
Java home: /usr/lib/jvm/java-8-oracle/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "4.10.0-24-generic", arch: "amd64", family: "unix"
Then... This is where an error occurred. Error stack trace turned on.
hduser#wilson0901-HP-15-Notebook-PC:/usr/local/mahout-0.13.0$ mvn install -e
[INFO] Error stacktraces are turned on.
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for org.apache.mahout:mahout-math:jar:0.13.0
[WARNING] The expression ${version} is deprecated. Please use ${project.version} instead.
[WARNING] The expression ${version} is deprecated. Please use ${project.version} instead.
[WARNING]
[WARNING] Some problems were encountered while building the effective model for org.apache.mahout:mahout-hdfs:jar:0.13.0
[WARNING] The expression ${version} is deprecated. Please use ${project.version} instead.
[WARNING] The expression ${version} is deprecated. Please use ${project.version} instead.
[WARNING]
[WARNING] Some problems were encountered while building the effective model for org.apache.mahout:mahout-mr:jar:0.13.0
[WARNING] The expression ${version} is deprecated. Please use ${project.version} instead.
[WARNING] The expression ${version} is deprecated. Please use ${project.version} instead.
[WARNING]
[WARNING] Some problems were encountered while building the effective model for org.apache.mahout:mahout-math-scala_2.10:jar:0.13.0
[WARNING] 'artifactId' contains an expression but should be a constant. # org.apache.mahout:mahout-math-scala_${scala.compat.version}:[unknown-version], /usr/local/mahout-0.13.0/math-scala/pom.xml, line 30, column 15
[WARNING] The expression ${version} is deprecated. Please use ${project.version} instead.
[WARNING] The expression ${version} is deprecated. Please use ${project.version} instead.
[WARNING]
[WARNING] Some problems were encountered while building the effective model for org.apache.mahout:mahout-spark_2.10:jar:0.13.0
[WARNING] 'artifactId' contains an expression but should be a constant. # org.apache.mahout:mahout-spark_${scala.compat.version}:[unknown-version], /usr/local/mahout-0.13.0/spark/pom.xml, line 30, column 15
[WARNING] The expression ${version} is deprecated. Please use ${project.version} instead.
[WARNING] The expression ${version} is deprecated. Please use ${project.version} instead.
[WARNING] The expression ${version} is deprecated. Please use ${project.version} instead.
[WARNING] The expression ${version} is deprecated. Please use ${project.version} instead.
[WARNING]
[WARNING] Some problems were encountered while building the effective model for org.apache.mahout:mahout-h2o_2.10:jar:0.13.0
[WARNING] 'artifactId' contains an expression but should be a constant. # org.apache.mahout:mahout-h2o_${scala.compat.version}:[unknown-version], /usr/local/mahout-0.13.0/h2o/pom.xml, line 30, column 15
[WARNING] The expression ${version} is deprecated. Please use ${project.version} instead.
[WARNING] The expression ${version} is deprecated. Please use ${project.version} instead.
[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]
[WARNING] The project org.apache.mahout:mahout-buildtools:jar:0.13.0 uses prerequisites which is only intended for maven-plugin projects but not for non maven-plugin projects. For such purposes you should use the maven-enforcer-plugin. See https://maven.apache.org/enforcer/enforcer-rules/requireMavenVersion.html
[WARNING] The project org.apache.mahout:mahout:pom:0.13.0 uses prerequisites which is only intended for maven-plugin projects but not for non maven-plugin projects. For such purposes you should use the maven-enforcer-plugin. See https://maven.apache.org/enforcer/enforcer-rules/requireMavenVersion.html
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] Mahout Build Tools
[INFO] Apache Mahout
[INFO] Mahout Math
[INFO] Mahout HDFS
[INFO] Mahout Map-Reduce
[INFO] Mahout Integration
[INFO] Mahout Examples
[INFO] Mahout Math Scala bindings
[INFO] Mahout Spark bindings
[INFO] Mahout Release Package
[INFO] Mahout H2O backend
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Mahout Build Tools 0.13.0
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-enforcer-plugin:1.4:enforce (enforce-versions) # mahout-buildtools ---
[INFO]
[INFO] --- maven-remote-resources-plugin:1.5:process (default) # mahout-buildtools ---
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Mahout Build Tools ................................. FAILURE [ 2.350 s]
[INFO] Apache Mahout ...................................... SKIPPED
[INFO] Mahout Math ........................................ SKIPPED
[INFO] Mahout HDFS ........................................ SKIPPED
[INFO] Mahout Map-Reduce .................................. SKIPPED
[INFO] Mahout Integration ................................. SKIPPED
[INFO] Mahout Examples .................................... SKIPPED
[INFO] Mahout Math Scala bindings ......................... SKIPPED
[INFO] Mahout Spark bindings .............................. SKIPPED
[INFO] Mahout Release Package ............................. SKIPPED
[INFO] Mahout H2O backend ................................. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.177 s
[INFO] Finished at: 2017-06-25T17:51:28+08:00
[INFO] Final Memory: 14M/155M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-remote-resources-plugin:1.5:process (default) on project mahout-buildtools: Error finding remote resources manifests: /usr/local/mahout-0.13.0/buildtools/target/maven-shared-archive-resources/META-INF/NOTICE (No such file or directory) -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-remote-resources-plugin:1.5:process (default) on project mahout-buildtools: Error finding remote resources manifests
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:213)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:154)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:146)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:117)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:81)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:309)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:194)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:107)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:993)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:345)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:191)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
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.plugin.MojoExecutionException: Error finding remote resources manifests
at org.apache.maven.plugin.resources.remote.ProcessRemoteResourcesMojo.processResourceBundles(ProcessRemoteResourcesMojo.java:1238)
at org.apache.maven.plugin.resources.remote.ProcessRemoteResourcesMojo.execute(ProcessRemoteResourcesMojo.java:520)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
... 20 more
Caused by: java.io.FileNotFoundException: /usr/local/mahout-0.13.0/buildtools/target/maven-shared-archive-resources/META-INF/NOTICE (No such file or directory)
at java.io.FileOutputStream.open0(Native Method)
at java.io.FileOutputStream.open(FileOutputStream.java:270)
at java.io.FileOutputStream.<init>(FileOutputStream.java:213)
at java.io.FileOutputStream.<init>(FileOutputStream.java:162)
at java.io.FileWriter.<init>(FileWriter.java:90)
at org.apache.maven.plugin.resources.remote.ProcessRemoteResourcesMojo.processResourceBundles(ProcessRemoteResourcesMojo.java:1146)
... 23 more
[ERROR]
[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
I have installed mahout-0.13.0 on my root user (wilson0901) then changed user to hduser. Is this causing the problem? I really have no idea. I have tried $mvn eclipse: eclipse too but generated another error:
$ mvn eclipse: eclipse
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for org.apache.mahout:mahout-math:jar:0.13.0
[WARNING] The expression ${version} is deprecated. Please use ${project.version} instead.
[WARNING] The expression ${version} is deprecated. Please use ${project.version} instead.
[WARNING]
[WARNING] Some problems were encountered while building the effective model for org.apache.mahout:mahout-hdfs:jar:0.13.0
[WARNING] The expression ${version} is deprecated. Please use ${project.version} instead.
[WARNING] The expression ${version} is deprecated. Please use ${project.version} instead.
[WARNING]
[WARNING] Some problems were encountered while building the effective model for org.apache.mahout:mahout-mr:jar:0.13.0
[WARNING] The expression ${version} is deprecated. Please use ${project.version} instead.
[WARNING] The expression ${version} is deprecated. Please use ${project.version} instead.
[WARNING]
[WARNING] Some problems were encountered while building the effective model for org.apache.mahout:mahout-math-scala_2.10:jar:0.13.0
[WARNING] 'artifactId' contains an expression but should be a constant. # org.apache.mahout:mahout-math-scala_${scala.compat.version}:[unknown-version], /usr/local/mahout-0.13.0/math-scala/pom.xml, line 30, column 15
[WARNING] The expression ${version} is deprecated. Please use ${project.version} instead.
[WARNING] The expression ${version} is deprecated. Please use ${project.version} instead.
[WARNING]
[WARNING] Some problems were encountered while building the effective model for org.apache.mahout:mahout-spark_2.10:jar:0.13.0
[WARNING] 'artifactId' contains an expression but should be a constant. # org.apache.mahout:mahout-spark_${scala.compat.version}:[unknown-version], /usr/local/mahout-0.13.0/spark/pom.xml, line 30, column 15
[WARNING] The expression ${version} is deprecated. Please use ${project.version} instead.
[WARNING] The expression ${version} is deprecated. Please use ${project.version} instead.
[WARNING] The expression ${version} is deprecated. Please use ${project.version} instead.
[WARNING] The expression ${version} is deprecated. Please use ${project.version} instead.
[WARNING]
[WARNING] Some problems were encountered while building the effective model for org.apache.mahout:mahout-h2o_2.10:jar:0.13.0
[WARNING] 'artifactId' contains an expression but should be a constant. # org.apache.mahout:mahout-h2o_${scala.compat.version}:[unknown-version], /usr/local/mahout-0.13.0/h2o/pom.xml, line 30, column 15
[WARNING] The expression ${version} is deprecated. Please use ${project.version} instead.
[WARNING] The expression ${version} is deprecated. Please use ${project.version} instead.
[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]
[WARNING] The project org.apache.mahout:mahout-buildtools:jar:0.13.0 uses prerequisites which is only intended for maven-plugin projects but not for non maven-plugin projects. For such purposes you should use the maven-enforcer-plugin. See https://maven.apache.org/enforcer/enforcer-rules/requireMavenVersion.html
[WARNING] The project org.apache.mahout:mahout:pom:0.13.0 uses prerequisites which is only intended for maven-plugin projects but not for non maven-plugin projects. For such purposes you should use the maven-enforcer-plugin. See https://maven.apache.org/enforcer/enforcer-rules/requireMavenVersion.html
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] Mahout Build Tools
[INFO] Apache Mahout
[INFO] Mahout Math
[INFO] Mahout HDFS
[INFO] Mahout Map-Reduce
[INFO] Mahout Integration
[INFO] Mahout Examples
[INFO] Mahout Math Scala bindings
[INFO] Mahout Spark bindings
[INFO] Mahout Release Package
[INFO] Mahout H2O backend
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Mahout Build Tools ................................. SKIPPED
[INFO] Apache Mahout ...................................... SKIPPED
[INFO] Mahout Math ........................................ SKIPPED
[INFO] Mahout HDFS ........................................ SKIPPED
[INFO] Mahout Map-Reduce .................................. SKIPPED
[INFO] Mahout Integration ................................. SKIPPED
[INFO] Mahout Examples .................................... SKIPPED
[INFO] Mahout Math Scala bindings ......................... SKIPPED
[INFO] Mahout Spark bindings .............................. SKIPPED
[INFO] Mahout Release Package ............................. SKIPPED
[INFO] Mahout H2O backend ................................. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.216 s
[INFO] Finished at: 2017-06-25T18:04:05+08:00
[INFO] Final Memory: 19M/159M
[INFO] ------------------------------------------------------------------------
[ERROR] Could not find goal '' in plugin org.apache.maven.plugins:maven-eclipse-plugin:2.9 among available goals help, make-artifacts, configure-workspace, install-plugins, remove-cache, eclipse, rad-clean, to-maven, myeclipse-clean, add-maven-repo, rad, clean, myeclipse -> [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/MojoNotFoundException
EDIT: I downloaded mahout using this link "apache-mahout-distribution-0.13.0-src.tar.gz". Was it wrong?
Ok I had to admit it was quite a silly 'mistake'. I didn't change the owner of the mahout directory to hduser.
sudo chown -Rhduser:/usr/local/mahout-0.13.0.
I figured this out after lots of frustration. Even so, yet another problem posed: When I try $ mvn clean install, it seemed to work but then stopped eventually, saying connection timed out. I was using maven3.3.9 at this moment. Arh, yet another problen after solving one.

Why does version appear twice in the artefact name when publishing?

When using the sbt-native-packager to publish artefacts, the version appears twice in the artefact name.
project/plugins.sbt
addSbtPlugin("com.typesafe.sbt" % "sbt-native-packager" % "0.7.1")
build.sbt
import com.typesafe.sbt.SbtNativePackager._
import NativePackagerKeys._
packageArchetype.java_server
name := "name"
version := "version"
publishTo := Some("fake" at "http://oss.sonatype.org/nexus/content/repositories/fake")
deploymentSettings
SBT session
> universal:normalizedName
[info] name
> universal:version
[info] version
> universal:name
[info] name-version
> universal:publishLocal
[info] Wrote /Users/synesso/projects/z/target/scala-2.10/name_2.10-version.pom
a name-version
a name-version/lib
a name-version/lib/name.name-version.jar
a name-version/lib/org.scala-lang.scala-library-2.10.3.jar
[info] published name-version to /Users/synesso/.ivy2/local/name/name-version
/version/zips/name-version.zip
[info] published name-version to /Users/synesso/.ivy2/local/name/name-version
/version/tgzs/name-version.tgz
[success] Total time: 1 s, completed 10/06/2014 4:37:16 PM
> universal:publish
[info] Wrote /Users/synesso/projects/z/target/scala-2.10/name_2.10-version.pom
a name-version
a name-version/lib
a name-version/lib/name.name-version.jar
a name-version/lib/org.scala-lang.scala-library-2.10.3.jar
[trace] Stack trace suppressed: run last universal:publish for the full output.
[error] (universal:publish) java.io.IOException: PUT operation to URL
http://oss.sonatype.org/nexus/content/repositories/fake/name/
name-version/version/name-version-version.zip failed with status code 301:
Moved Permanently
[error] Total time: 9 s, completed 10/06/2014 4:38:20 PM
When publishing locally the artefact name is OK, but publishing remotely gives an artefact name with "version" in it twice. (name-version-version.zip) Why? How do I ensure it appears only once?
This is a bug with the plugin. https://github.com/sbt/sbt-native-packager/issues/270, fixed in 0.8.0-M1

Resources