Skip to content

Instantly share code, notes, and snippets.

@cmoulliard
Created January 27, 2013 08:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cmoulliard/695b2c5f8e75b07c7b43 to your computer and use it in GitHub Desktop.
Save cmoulliard/695b2c5f8e75b07c7b43 to your computer and use it in GitHub Desktop.
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building hawtio-web 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[WARNING] The POM for org.eclipse.m2e:lifecycle-mapping:jar:1.0.0 is missing, no dependency information available
[WARNING] Failed to retrieve plugin descriptor for org.eclipse.m2e:lifecycle-mapping:1.0.0: Plugin org.eclipse.m2e:lifecycle-mapping:1.0.0 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.eclipse.m2e:lifecycle-mapping:jar:1.0.0
[INFO]
[INFO] --- maven-enforcer-plugin:1.0:enforce (enforce-maven) @ hawtio-web ---
[INFO]
[INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ hawtio-web ---
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ hawtio-web ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- exec-maven-plugin:1.1.1:exec (typescript-compile) @ hawtio-web ---
[INFO] Loading "init.js" tasks and helpers...ERROR
[INFO] >> TypeError: undefined is not a function
[INFO]
[INFO] Running "copy:dist" (copy) task
[INFO] Copying files to /Users/chmoulli/Fuse/projects/hawtio/hawtio-web/target/hawtio-web-1.0-SNAPSHOT/...OK
[INFO]
[INFO] Running "type:compile" (type) task
[INFO] <FATAL> tsc cannot be run. Try npm install -g typescript </FATAL>
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.437s
[INFO] Finished at: Sat Jan 26 22:46:33 CET 2013
[INFO] Final Memory: 11M/81M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.1.1:exec (typescript-compile) on project hawtio-web: Result of /bin/sh -c cd /Users/chmoulli/Fuse/projects/hawtio/hawtio-web && grunt copy type --webapp_outdir /Users/chmoulli/Fuse/projects/hawtio/hawtio-web/target/hawtio-web-1.0-SNAPSHOT --webapp_port 8080 execution is: '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/MojoExecutionException
RedHat-MacBook:hawtio-web chmoulli$ tsc
Version 0.8.2.0
Syntax: tsc [options] [file ..]
Examples: tsc hello.ts
tsc --out foo.js foo.ts
tsc @args.txt
Options:
-c, --comments Emit comments to output
--declaration Generates corresponding .d.ts file
-e, --exec Execute the script after compilation
-h, --help Print this message
--module KIND Specify module code generation: "commonjs" (default) or "amd"
--nolib Do not include a default lib.d.ts with global declarations
--out FILE|DIRECTORY Concatenate and emit output to single file | Redirect output structure to the directory
--sourcemap Generates corresponding .map file
--target VER Specify ECMAScript target version: "ES3" (default), or "ES5"
-v, --version Print the compiler's version: 0.8.2.0
-w, --watch Watch output files
@<file> Insert command line options and files from a file.
@davsclaus
Copy link

Yes I tried as well yesterday and hit the same issue about grunt not being able to compile and saying tsc is not available. I had to install typescript from npm using sudo. I wonder if that may cause that problem somehow.

@jstrachan
Copy link

It seems typescript 0.8.2 has changed something in how to run the compiler; we need to port the build to use 0.8.2 - or you need to install 0.8.1 explicitly

@astefanutti
Copy link

I got the same error and confirm that installing typescript 0.8.1 explicitly solve the issue. Note that on Windows, I've been forced to explictly set the tsc option in grunt.js to 'tsc.cmd' to get the build successful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment