When i try to create new application i receive this message
yarn install v1.5.1
info No lockfile found.
[1/5] Validating package.json...
[2/5] Resolving packages...
warning Resolution field "source-map#0.6.1" is incompatible with
requested version "source-map#^0.5.6"
I am sorry, i was not precise enough in stating my problem.
So, as i said i receive this message while creating new application.
After the process of creating new application is over i execute this command
./mvnw package -Pprod dockerfile:build
And then this is what i see:
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------
------
[INFO] Building Jhipster Test Project 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------
------
[INFO]
[INFO] --- maven-resources-plugin:3.0.1:copy-resources (default-
resources) # jhipster-test-project ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 3 resources
[INFO] Copying 15 resources
[INFO]
[INFO] --- maven-resources-plugin:3.0.1:resources (default-resources) #
jhipster-test-project ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 3 resources
[INFO] Copying 15 resources
[INFO]
[INFO] --- maven-enforcer-plugin:3.0.0-M1:enforce (enforce-versions) #
jhipster-test-project ---
[INFO]
[INFO] --- maven-resources-plugin:3.0.1:copy-resources (docker-resources)
# jhipster-test-project ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 2 resources
[INFO]
[INFO] --- jacoco-maven-plugin:0.7.9:prepare-agent (pre-unit-tests) #
jhipster-test-project ---
[INFO] argLine set to -javaagent:/home/igor/.m2/repository/org/jacoco/org.jacoco.agent/0.7.9/org.jacoco.agent-0.7.9-runtime.jar=destfile=/home/igor/JHipsterProjects/jhipster-test-project/target/test-results/coverage/jacoco/jacoco.exec -Djava.security.egd=file:/dev/./urandom -Xmx256m
[INFO]
[INFO] --- git-commit-id-plugin:2.2.4:revision (default) # jhipster-test-project ---
[INFO]
[INFO] --- spring-boot-maven-plugin:1.5.9.RELEASE:build-info (default) # jhipster-test-project ---
[INFO]
[INFO] --- frontend-maven-plugin:1.6:install-node-and-yarn (install node and yarn) # jhipster-test-project ---
[INFO] Installing node version v8.9.4
[INFO] Unpacking /home/igor/.m2/repository/com/github/eirslett/node/8.9.4/node-8.9.4-linux-x64.tar.gz into /home/igor/JHipsterProjects/jhipster-test-project/node/tmp
[INFO] Copying node binary from /home/igor/JHipsterProjects/jhipster-test-project/node/tmp/node-v8.9.4-linux-x64/bin/node to /home/igor/JHipsterProjects/jhipster-test-project/node/node
[INFO] Installed node locally.
[INFO] Installing Yarn version v1.3.2
[INFO] Unpacking /home/igor/.m2/repository/com/github/eirslett/yarn/1.3.2/yarn-1.3.2.tar.gz into /home/igor/JHipsterProjects/jhipster-test-project/node/yarn
[INFO] Installed Yarn locally.
[INFO]
[INFO] --- frontend-maven-plugin:1.6:yarn (yarn install) # jhipster-test-project ---
[INFO] Running 'yarn install --force' in /home/igor/JHipsterProjects/jhipster-test-project
[INFO] yarn install v1.3.2
[INFO] [1/5] Validating package.json...
[INFO] [2/5] Resolving packages...
[ERROR] warning Resolution field "source-map#0.6.1" is incompatible with requested version "source-map#^0.5.6"
[ERROR] warning Resolution field "source-map#0.6.1" is incompatible with requested version "source-map#^0.5.6"
[ERROR] warning Resolution field "source-map#0.6.1" is incompatible with requested version "source-map#^0.5.6"
[ERROR] warning Resolution field "source-map#0.6.1" is incompatible with requested version "source-map#0.5.x"
[ERROR] warning Resolution field "source-map#0.6.1" is incompatible with requested version "source-map#^0.5.3"
[ERROR] warning Resolution field "source-map#0.6.1" is incompatible with requested version "source-map#^0.5.6"
[ERROR] warning Resolution field "source-map#0.6.1" is incompatible with requested version "source-map#0.1.x"
[ERROR] warning Resolution field "source-map#0.6.1" is incompatible with requested version "source-map#^0.5.3"
[ERROR] warning Resolution field "source-map#0.6.1" is incompatible with requested version "source-map#^0.5.6"
[ERROR] warning Resolution field "source-map#0.6.1" is incompatible with requested version "source-map#^0.5.6"
[ERROR] warning Resolution field "source-map#0.6.1" is incompatible with requested version "source-map#~0.4.1"
[ERROR] warning Resolution field "source-map#0.6.1" is incompatible with requested version "source-map#0.5.x"
[ERROR] warning Resolution field "source-map#0.6.1" is incompatible with requested version "source-map#^0.5.7"
[ERROR] warning Resolution field "source-map#0.6.1" is incompatible with requested version "source-map#~0.5.1"
[ERROR] warning Resolution field "source-map#0.6.1" is incompatible with requested version "source-map#^0.4.2"
[ERROR] warning Resolution field "source-map#0.6.1" is incompatible with requested version "source-map#^0.5.3"
[ERROR] warning Resolution field "source-map#0.6.1" is incompatible with requested version "source-map#^0.5.6"
[ERROR] warning Resolution field "source-map#0.6.1" is incompatible with requested version "source-map#^0.5.6"
[ERROR] warning Resolution field "source-map#0.6.1" is incompatible with requested version "source-map#^0.5.6"
[ERROR] warning Resolution field "source-map#0.6.1" is incompatible with requested version "source-map#^0.5.6"
[ERROR] warning Resolution field "source-map#0.6.1" is incompatible with requested version "source-map#~0.5.0"
[ERROR] warning Resolution field "source-map#0.6.1" is incompatible with requested version "source-map#^0.5.3"
[ERROR] warning Resolution field "source-map#0.6.1" is incompatible with requested version "source-map#^0.5.1"
[ERROR] warning Resolution field "source-map#0.6.1" is incompatible with requested version "source-map#~0.2.0"
[ERROR] warning Resolution field "source-map#0.6.1" is incompatible with requested version "source-map#^0.4.4"
[ERROR] warning Resolution field "source-map#0.6.1" is incompatible with requested version "source-map#^0.1.41"
[ERROR] warning Resolution field "source-map#0.6.1" is incompatible with requested version "source-map#^0.4.2"
[INFO] [3/5] Fetching packages...
[INFO] info fsevents#1.1.3: The platform "linux" is incompatible with this module.
[INFO] info "fsevents#1.1.3" is an optional dependency and failed compatibility check. Excluding it from installation.
[INFO] [4/5] Linking dependencies...
[ERROR] warning " > bootstrap#4.0.0" has unmet peer dependency
"popper.js#^1.12.9".
[INFO] [5/5] Rebuilding all packages...
[INFO] success Saved lockfile.
[INFO] $ node node_modules/phantomjs-prebuilt/install.js
[INFO] Found PhantomJS at /home/igor/JHipsterProjects/jhipster-test-project/node_modules/phantomjs-prebuilt/lib/phantom/bin/phantomjs ...verifying
[INFO] PhantomJS is previously installed at /home/igor/JHipsterProjects/jhipster-test-project/node_modules/phantomjs-prebuilt/lib/phantom/bin/phantomjs
[INFO] Done in 9.71s.
[INFO]
[INFO] --- frontend-maven-plugin:1.6:yarn (webpack build prod) # jhipster-test-project ---
[INFO] yarn not inheriting proxy config from Maven
[INFO] Running 'yarn run webpack:prod' in /home/igor/JHipsterProjects/jhipster-test-project
[INFO] yarn run v1.3.2
[INFO] $ yarn run cleanup && yarn run webpack:prod:main && yarn run clean-www
[INFO] $ rimraf target/{aot,www}
[INFO] $ yarn run webpack -- --config webpack/webpack.prod.js --profile
[ERROR] warning From Yarn 1.0 onwards, scripts don't require "--" for options to be forwarded. In a future version, any explicit "--" will be forwarded as-is to the scripts.
[INFO] $ node --max_old_space_size=4096 node_modules/webpack/bin/webpack.js --config webpack/webpack.prod.js --profile
[INFO] MergetJsonsWebpackPlugin compilation started...
[INFO] MergetJsonsWebpackPlugin compilation completed...
[ERROR] buffer.js:202
[ERROR] throw new TypeError(kFromErrorMsg);
[ERROR] ^
[ERROR]
[ERROR] TypeError: First argument must be a string, Buffer, ArrayBuffer,
Array, or array-like object.
[ERROR] at Function.Buffer.from (buffer.js:202:9)
[ERROR] at new Buffer (buffer.js:158:17)
[ERROR] at writeOut (/home/igor/JHipsterProjects/jhipster-test-project/node_modules/webpack/lib/Compiler.js:334:17)
[ERROR] at require.forEach (/home/igor/JHipsterProjects/jhipster-test-project/node_modules/webpack/lib/Compiler.js:345:12)
[ERROR] at /home/igor/JHipsterProjects/jhipster-test-project/node_modules/webpack/node_modules/async/dist/async.js:3096:16
[ERROR] at eachOfArrayLike (/home/igor/JHipsterProjects/jhipster-test-project/node_modules/webpack/node_modules/async/dist/async.js:1055:9)
[ERROR] at eachOf (/home/igor/JHipsterProjects/jhipster-test-project/node_modules/webpack/node_modules/async/dist/async.js:1103:5)
[ERROR] at Object.eachLimit (/home/igor/JHipsterProjects/jhipster-test-project/node_modules/webpack/node_modules/async/dist/async.js:3158:5)
[ERROR] at emitFiles (/home/igor/JHipsterProjects/jhipster-test-project/node_modules/webpack/lib/Compiler.js:315:21)
[ERROR] at /home/igor/JHipsterProjects/jhipster-test-project/node_modules/mkdirp/index.js:30:20
[ERROR] at FSReqWrap.oncomplete (fs.js:135:15)
[ERROR] error Command failed with exit code 1.
enter code here[INFO] info Visit https://yarnpkg.com/en/docs/cli/run for
documentation about this command.
[ERROR] error Command failed with exit code 1.
[INFO] info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
[ERROR] error Command failed with exit code 1.
[INFO] info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 42.200 s
[INFO] Finished at: 2018-03-07T23:12:19+01:00
[INFO] Final Memory: 32M/397M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.6:yarn (webpack build prod) on project jhipster-test-project: Failed to run task: 'yarn run webpack:prod' 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
So my question is what could be a problem?
This is fixed in JHipster 4.14.1, see https://github.com/jhipster/generator-jhipster/issues/7188
Related
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>
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 :)
I was trying to build the spark-cassandra connector and followed this link :
http://www.planetcassandra.org/blog/kindling-an-introduction-to-spark-with-cassandra/
Which further in the link asks to download the connector from git and build using sbt. But, when i try to run the command ./sbt/sbt assembly. It throws the following exception :
Launching sbt from sbt/sbt-launch-0.13.8.jar
[info] Loading project definition from /home/naresh/Desktop/spark-cassandra-connector/project
Using releases: https://oss.sonatype.org/service/local/staging/deploy/maven2 for releases
Using snapshots: https://oss.sonatype.org/content/repositories/snapshots for snapshots
Scala: 2.10.5 [To build against Scala 2.11 use '-Dscala-2.11=true']
Scala Binary: 2.10
Java: target=1.7 user=1.7.0_79
[info] Set current project to root (in build file:/home/naresh/Desktop/spark-cassandra-connector/)
[warn] Credentials file /home/hduser/.ivy2/.credentials does not exist
[warn] Credentials file /home/hduser/.ivy2/.credentials does not exist
[warn] Credentials file /home/hduser/.ivy2/.credentials does not exist
[warn] Credentials file /home/hduser/.ivy2/.credentials does not exist
[warn] Credentials file /home/hduser/.ivy2/.credentials does not exist
[info] Compiling 140 Scala sources and 1 Java source to /home/naresh/Desktop/spark-cassandra-connector/spark-cassandra-connector/target/scala-2.10/classes...
[error] /home/naresh/Desktop/spark-cassandra-connector/spark-cassandra-connector/src/main/scala/org/apache/spark/sql/cassandra/CassandraCatalog.scala:48: not found: value processTableIdentifier
[error] val id = processTableIdentifier(tableIdentifier).reverse.lift
[error] ^
[error] /home/naresh/Desktop/spark-cassandra-connector/spark-cassandra-connector/src/main/scala/org/apache/spark/sql/cassandra/CassandraCatalog.scala:134: value toSeq is not a member of org.apache.spark.sql.catalyst.TableIdentifier
[error] cachedDataSourceTables.refresh(tableIdent.toSeq)
[error] ^
[error] /home/naresh/Desktop/spark-cassandra-connector/spark-cassandra-connector/src/main/scala/org/apache/spark/sql/cassandra/CassandraSQLContext.scala:94: not found: value BroadcastNestedLoopJoin
[error] BroadcastNestedLoopJoin
[error] ^
[error] three errors found
[info] Compiling 11 Scala sources to /home/naresh/Desktop/spark-cassandra-connector/spark-cassandra-connector-embedded/target/scala-2.10/classes...
[warn] /home/naresh/Desktop/spark-cassandra-connector/spark-cassandra-connector-embedded/src/main/scala/com/datastax/spark/connector/embedded/SparkTemplate.scala:69: value actorSystem in class SparkEnv is deprecated: Actor system is no longer supported as of 1.4.0
[warn] def actorSystem: ActorSystem = SparkEnv.get.actorSystem
[warn] ^
[warn] one warning found
[error] (spark-cassandra-connector/compile:compileIncremental) Compilation failed
[error] Total time: 27 s, completed 4 Nov, 2015 12:34:33 PM
This works for me,
run mvn -DskipTests clean package
you can find build spark command in README.md file from your spark Dir.
Before run that command You’ll need to configure Maven to use more
memory than usual by setting MAVEN_OPTS
export MAVEN_OPTS="-Xmx2g -XX:MaxPermSize=512M -XX:ReservedCodeCacheSize=512m"
I'm trying to build j2objc on my Ubuntu Desktop, and I get this error:
`root#craig-OptiPlex-3020:/home/craig/j2objc-0.8.8# make dist
./scripts/sysroot_path.sh: line 30: xcode-select: command not found
../scripts/sysroot_path.sh: line 30: xcode-select: command not found
make[1]: Entering directory /home/craig/j2objc-0.8.8/annotations'
Building j2objc annotations
make[1]: Leaving directory /home/craig/j2objc-0.8.8/annotations'
../scripts/sysroot_path.sh: line 30: xcode-select: command not found
make[1]: Entering directory /home/craig/j2objc-0.8.8/java_deps'
mvn generate-resources dependency:sources
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building j2objc 0.8
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-dependency-plugin:2.5:copy-dependencies (copy-dependencies) # j2objc ---
[INFO] Copying org.eclipse.equinox.common-3.6.0.v20100503.jar to /home/craig/j2objc-0.8.8/java_deps/build_result/org.eclipse.equinox.common-3.6.0.v20100503.jar
[INFO] Copying org.eclipse.core.resources-3.6.0.v20100526-0737.jar to /home/craig/j2objc-0.8.8/java_deps/build_result/org.eclipse.core.resources-3.6.0.v20100526-0737.jar
[INFO] Copying org.eclipse.core.runtime-3.6.0.v20100505.jar to /home/craig/j2objc-0.8.8/java_deps/build_result/org.eclipse.core.runtime-3.6.0.v20100505.jar
[INFO] Copying org.eclipse.core.jobs-3.5.0.v20100515.jar to /home/craig/j2objc-0.8.8/java_deps/build_result/org.eclipse.core.jobs-3.5.0.v20100515.jar
[INFO] Copying org.eclipse.core.contenttype-3.4.100.v20100505-1235.jar to /home/craig/j2objc-0.8.8/java_deps/build_result/org.eclipse.core.contenttype-3.4.100.v20100505-1235.jar
[INFO] Copying org.eclipse.text-3.5.100.v20110505-0800.jar to /home/craig/j2objc-0.8.8/java_deps/build_result/org.eclipse.text-3.5.100.v20110505-0800.jar
[INFO] Copying junit-4.10.jar to /home/craig/j2objc-0.8.8/java_deps/build_result/junit-4.10.jar
[INFO] Copying mockito-core-1.9.5.jar to /home/craig/j2objc-0.8.8/java_deps/build_result/mockito-core-1.9.5.jar
[INFO] Copying org.eclipse.equinox.preferences-3.3.0.v20100503.jar to /home/craig/j2objc-0.8.8/java_deps/build_result/org.eclipse.equinox.preferences-3.3.0.v20100503.jar
[INFO] Copying jsr305-2.0.2.jar to /home/craig/j2objc-0.8.8/java_deps/build_result/jsr305-2.0.2.jar
[INFO] Copying org.eclipse.osgi-3.6.0.v20100517.jar to /home/craig/j2objc-0.8.8/java_deps/build_result/org.eclipse.osgi-3.6.0.v20100517.jar
[INFO] Copying org.eclipse.jdt.core-3.8.1.v20120531-0637.jar to /home/craig/j2objc-0.8.8/java_deps/build_result/org.eclipse.jdt.core-3.8.1.v20120531-0637.jar
[INFO] Copying guava-13.0.jar to /home/craig/j2objc-0.8.8/java_deps/build_result/guava-13.0.jar
[INFO]
[INFO] --- maven-dependency-plugin:2.5:sources (default-cli) # j2objc ---
[INFO]
[INFO] The following files have been resolved:
[INFO] org.hamcrest:hamcrest-core:java-source:sources:1.1
[INFO] org.eclipse.core:org.eclipse.core.jobs:java-source:sources:3.5.0.v20100515
[INFO] org.objenesis:objenesis:java-source:sources:1.0
[INFO] org.eclipse.core:org.eclipse.core.contenttype:java-source:sources:3.4.100.v20100505-1235
[INFO] org.jibx.config.3rdparty.org.eclipse:org.eclipse.text:java-source:sources:3.5.100.v20110505-0800
[INFO] org.eclipse.tycho:org.eclipse.jdt.core:java-source:sources:3.8.1.v20120531-0637
[INFO] com.google.guava:guava:java-source:sources:13.0
[INFO] org.eclipse.osgi:org.eclipse.osgi:java-source:sources:3.6.0.v20100517
[INFO] org.mockito:mockito-core:java-source:sources:1.9.5
[INFO] org.eclipse.equinox:org.eclipse.equinox.common:java-source:sources:3.6.0.v20100503
[INFO] org.eclipse.equinox:org.eclipse.equinox.preferences:java-source:sources:3.3.0.v20100503
[INFO] org.eclipse.core:org.eclipse.core.runtime:java-source:sources:3.6.0.v20100505
[INFO] junit:junit:java-source:sources:4.10
[INFO] org.eclipse.core:org.eclipse.core.resources:java-source:sources:3.6.0.v20100526-0737
[INFO]
[INFO] The following files have NOT been resolved:
[INFO] com.google.code.findbugs:jsr305:java-source:sources:2.0.2
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.419s
[INFO] Finished at: Sun Apr 27 12:17:40 EDT 2014
[INFO] Final Memory: 10M/171M
[INFO] ------------------------------------------------------------------------
make[1]: *** No rule to make target /usr/local/apache-maven-3.0.5//repository/com/google/code/findbugs/jsr305/2.0.2/jsr305-2.0.2.jar', needed by /home/craig/j2objc-0.8.8/java_deps/build_result/jsr305-2.0.2.jar'. Stop.
make[1]: Leaving directory /home/craig/j2objc-0.8.8/java_deps'
make: *** [java_deps_dist] Error 2`
Before I tell you what I've tried, here's my info on my system, java version, and Maven version:
Mac OSX version - 10.9.2
Java version "1.7.0_51", OpenJDK Runtime Environment (IcedTea 2.4.6) (7u51-2.4.6-1ubuntu4)
Maven version Apache Maven 3.0.5 (r01de14724cdef164cd33c7c8c2fe155faf9602da; 2013-02-19 08:51:28-0500)
Here's What I've tried:
Firstly, I've already looked at this thread and this thread since they had the same errors. Both haven't helped.
1. Deleting ~/.m2 then running make clean and make dist
2. running "mvn generate-resources dependency:sources" in the java_deps sub-directory, then running make clean and make dist
3. Updating Java and Maven versions to the most recent versions - as well as downgrading the versions.
4. Set M2_HOME to ~/.m2
5. Created a settings.xml file in the directory ~/.m2 with the following tag:
<localRepository>$M2_HOME/repository</localRepository>
Any help would be awesome, this thing is giving me a headache.
Thanks in advance.
I finally found the fix to this. From the top...
Downloaded/installed Maven's latest version...
Downloaded j2objc-0.9.1...
set the path for Maven...
export M2_HOME=/Users/Craig/apache-maven-3.2.1
export PATH=$PATH:$M2_HOME/bin
ran 'make dist'...it still gave me the error above
i then changed this path...
export M2_HOME=~/.m2
ran 'make'
WORKED!
Maven was looking at the wrong location for "../repository/com/google/findbugs/jsr305/2.0.2/jsr305-2.0.2.jar".
Changing the path before you run 'make' fixes this issue.
Once the make command finishes, run:
export PATH=$PATH:/<j2objc location>/dist
This allows you to use the commands j2objc and j2objcc.
I use Apache Hadoop 1.0.3 and I also install mongoDB.
I also install SBT but when I install mongoDB Hadoop driver then it gives me following error:
[root#linux ~]# cd /var/www/htdocs/hadoop/mongo-hadoop/
[root#linux mongo-hadoop]# sbt package
[info] Loading project definition from /var/www/htdocs/hadoop/mongo-hadoop/project
[info] Updating {file:/var/www/htdocs/hadoop/mongo-hadoop/project/}default-a7139c...
[info] Resolving com.eed3si9n#sbt-assembly;0.7.3 ...
[warn] module not found: com.eed3si9n#sbt-assembly;0.7.3
[warn] ==== typesafe-ivy-releases: tried
[warn] http://repo.typesafe.com/typesafe/ivy-releases/com.eed3si9n/sbt-assembly/scala_2.9.1/sbt_0.11.3/0.7.3/ivys/ivy.xml
[warn] ==== local: tried
[warn] /root/.ivy2/local/com.eed3si9n/sbt-assembly/scala_2.9.1/sbt_0.11.3/0.7.3/ivys/ivy.xml
[warn] ==== sbt-plugin-releases: tried
[warn] http://scalasbt.artifactoryonline.com/scalasbt/sbt-plugin-releases/com.eed3si9n/sbt-assembly/scala_2.9.1/sbt_0.11.3/0.7.3/ivys/ivy.xml
[warn] ==== public: tried
[warn] http://repo1.maven.org/maven2/com/eed3si9n/sbt-assembly_2.9.1_0.11.3/0.7.3/sbt-assembly-0.7.3.pom
[info] Resolving net.virtual-void#sbt-dependency-graph;0.5.2 ...
[info] Resolving org.scala-sbt#sbt_2.9.1;0.11.3 ...
[info] Resolving org.scala-sbt#main_2.9.1;0.11.3 ...
[info] Resolving org.scala-sbt#actions_2.9.1;0.11.3 ...
[info] Resolving org.scala-sbt#classfile_2.9.1;0.11.3 ...
[info] Resolving org.scala-sbt#io_2.9.1;0.11.3 ...
[info] Resolving org.scala-sbt#control_2.9.1;0.11.3 ...
[info] Resolving org.scala-lang#scala-library;2.9.1 ...
[info] Resolving org.scala-sbt#interface;0.11.3 ...
[info] Resolving org.scala-sbt#logging_2.9.1;0.11.3 ...
[info] Resolving org.scala-sbt#process_2.9.1;0.11.3 ...
[info] Resolving org.scala-sbt#classpath_2.9.1;0.11.3 ...
[info] Resolving org.scala-sbt#launcher-interface_2.9.1;0.11.3 ...
[info] Resolving org.scala-lang#scala-compiler;2.9.1 ...
[info] Resolving org.scala-sbt#incremental-compiler_2.9.1;0.11.3 ...
[info] Resolving org.scala-sbt#collections_2.9.1;0.11.3 ...
[info] Resolving org.scala-sbt#api_2.9.1;0.11.3 ...
[info] Resolving org.scala-sbt#persist_2.9.1;0.11.3 ...
[info] Resolving org.scala-tools.sbinary#sbinary_2.9.0;0.4.0 ...
[info] Resolving org.scala-sbt#compile_2.9.1;0.11.3 ...
[info] Resolving org.scala-sbt#ivy_2.9.1;0.11.3 ...
[info] Resolving org.apache.ivy#ivy;2.2.0 ...
[info] Resolving com.jcraft#jsch;0.1.46 ...
[info] Resolving commons-httpclient#commons-httpclient;3.1 ...
[info] Resolving commons-logging#commons-logging;1.0.4 ...
[info] Resolving commons-codec#commons-codec;1.2 ...
[info] Resolving org.scala-sbt#completion_2.9.1;0.11.3 ...
[info] Resolving jline#jline;0.9.94 ...
[info] Resolving org.scala-sbt#run_2.9.1;0.11.3 ...
[info] Resolving org.scala-sbt#task-system_2.9.1;0.11.3 ...
[info] Resolving org.scala-sbt#tasks_2.9.1;0.11.3 ...
[info] Resolving org.scala-sbt#tracking_2.9.1;0.11.3 ...
[info] Resolving org.scala-sbt#cache_2.9.1;0.11.3 ...
[info] Resolving org.scala-sbt#testing_2.9.1;0.11.3 ...
[info] Resolving org.scala-tools.testing#test-interface;0.5 ...
[info] Resolving org.scala-sbt#compiler-interface;0.11.3 ...
[info] Resolving org.scala-sbt#precompiled-2_8_2;0.11.3 ...
[info] Resolving org.scala-sbt#precompiled-2_8_1;0.11.3 ...
[info] Resolving org.scala-sbt#precompiled-2_9_2;0.11.3 ...
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: UNRESOLVED DEPENDENCIES ::
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: com.eed3si9n#sbt-assembly;0.7.3: not found
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn]
[warn] Note: Some unresolved dependencies have extra attributes. Check that these dependencies exist with the requested attributes.
[warn] com.eed3si9n:sbt-assembly:0.7.3 (sbtVersion=0.11.3, scalaVersion=2.9.1)
[warn]
[error] {file:/var/www/htdocs/hadoop/mongo-hadoop/project/}default-a7139c/*:update: sbt.ResolveException: unresolved dependency: com.eed3si9n#sbt-assembly;0.7.3: not found
Project loading failed: (r)etry, (q)uit, (l)ast, or (i)gnore?
I tried also to install sbt-assembly but it give me a dependency error.
I've answered this on the MongoDB Google Group also but here it is again.
I was able to reproduce your problem running Ubuntu 12:04, x64.
From the output, the error is due to being unable to find sbt-assembly07.3. AFAIK, the current version of the sbt-assembly plugin is 0.8.1, whilst in (your case) the /var/www/htdocs/hadoop/mongo-hadoop/projects/plugins.sbt file that it's configured to look for is 0.7.3.
I modified my equivalent plugins.sbt file to look like
addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "0.8.1")
and the mongo-hadoop driver will then install successfully (though it does take a while -> "[success] Total time: 849 s, completed 15-Jun-2012 17:10:15" ).
Update: User confirmed on Google Groups that this resolved his issue. There was a later issue (regarding JAR files) that was resolved by following the Quick Start Guide here.