Building HighCharts-Export Server 2.1 Fails - java

I have downloaded the latest highcharts-exporter following the instructions here. I am running this on Windows7 x64 locally and it will eventually be in a Windows production environment using Jetty9.
I have changed one line in highcharts-export/src/main/resources/app.properties:
# location of the phantomjs executable, could be for example /usr/local/bin/phantomjs
exec = /Scripts/phantomjs
I have maven (3.0.5) installed and configured. I last built this project before the 3.x release of HighCharts. That build was successful.
When I try to build now I get the following output. Any info here would be great.
EDIT
It appears that these errors are caused by left over files from previous version of highcharts-export. I have done a complete clean of the entire directory to start fresh. I am still getting one error that makes it not build:
C:\hc-exporter>mvn clean package
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for
com.highcharts.export:highcharts-export:war:2.0.1
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-ecli
pse-plugin is missing. # line 150, column 12
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten t
he stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support buildin
g such malformed projects.
[WARNING]
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building highcharts-export 2.0.1
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) # highcharts-export --
-
[INFO] Deleting C:\hc-exporter\target
[INFO]
[INFO] --- maven-resources-plugin:2.5:resources (default-resources) # highcharts
-export ---
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 2 resources
[INFO]
[INFO] --- maven-compiler-plugin:2.5.1:compile (default-compile) # highcharts-ex
port ---
[INFO] Compiling 13 source files to C:\hc-exporter\target\classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] C:\hc-exporter\src\main\java\com\highcharts\export\pool\ServerObjectFact
ory.java:[68,29] error: cannot find symbol
[INFO] 1 error
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.652s
[INFO] Finished at: Thu May 16 13:53:36 EDT 2013
[INFO] Final Memory: 11M/154M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.
5.1:compile (default-compile) on project highcharts-export: Compilation failure
[ERROR] C:\hc-exporter\src\main\java\com\highcharts\export\pool\ServerObjectFact
ory.java:[68,29] error: cannot find symbol
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
ch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureExc
eption
C:\hc-exporter>
Old errors - just here for reference.
C:\hc-exporter>mvn -version Apache Maven 3.0.5
(r01de14724cdef164cd33c7c8c2fe155faf9602da; 2013-02-19 08:51: 28-0500)
Maven home: C:\apache-maven-3.0.5 Java version: 1.7.0_10, vendor:
Oracle Corporation Java home: C:\Program Files\Java\jdk1.7.0_10\jre
Default locale: en_US, platform encoding: Cp1252 OS name: "windows 7",
version: "6.1", arch: "amd64", family: "windows" C:\hc-exporter>mvn
clean package [INFO] Scanning for projects... [WARNING] [WARNING] Some
problems were encountered while building the effective model for
com.highcharts.export:highcharts-export:war:2.0.1 [WARNING]
'build.plugins.plugin.version' for org.apache.maven.plugins:maven-ecli
pse-plugin is missing. # line 150, column 12 [WARNING] [WARNING] It is
highly recommended to fix these problems because they threaten t he
stability of your build. [WARNING] [WARNING] For this reason, future
Maven versions might no longer support buildin g such malformed
projects. [WARNING] [INFO] [INFO]
------------------------------------------------------------------------ [INFO] Building highcharts-export 2.0.1 [INFO]
------------------------------------------------------------------------ [INFO] [INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) #
highcharts-export --
- [INFO] Deleting C:\hc-exporter\target [INFO] [INFO] --- maven-resources-plugin:2.5:resources (default-resources) # highcharts
-export --- [debug] execute contextualize [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 2 resources [INFO]
[INFO] --- maven-compiler-plugin:2.5.1:compile (default-compile) #
highcharts-ex port --- [INFO] Compiling 16 source files to
C:\hc-exporter\target\classes [INFO]
------------------------------------------------------------- [ERROR] COMPILATION ERROR : [INFO]
------------------------------------------------------------- [ERROR] C:\hc-exporter\src\main\java\com\highcharts\export\util\SVGRasterizer.ja
va:[8,34] error: package org.apache.batik.transcoder does not exist
[ERROR]
C:\hc-exporter\src\main\java\com\highcharts\export\util\SVGRasterizer.ja
va:[9,34] error: package org.apache.batik.transcoder does not exist
[ERROR]
C:\hc-exporter\src\main\java\com\highcharts\export\util\SVGRasterizer.ja
va:[10,34] error: package org.apache.batik.transcoder does not exist
[ERROR]
C:\hc-exporter\src\main\java\com\highcharts\export\util\SVGRasterizer.ja
va:[11,34] error: package org.apache.batik.transcoder does not exist
[ERROR]
C:\hc-exporter\src\main\java\com\highcharts\export\util\SVGRasterizer.ja
va:[12,40] error: package org.apache.batik.transcoder.image does not
exist [ERROR]
C:\hc-exporter\src\main\java\com\highcharts\export\util\SVGRasterizer.ja
va:[13,40] error: package org.apache.batik.transcoder.image does not
exist [ERROR]
C:\hc-exporter\src\main\java\com\highcharts\export\util\SVGRasterizer.ja
va:[14,25] error: package org.apache.fop.svg does not exist [ERROR]
C:\hc-exporter\src\main\java\com\highcharts\export\util\SVGRasterizer.ja
va:[32,34] error: cannot find symbol [ERROR] symbol: class
TranscoderException location: class SVGRasterizer
C:\hc-exporter\src\main\java\com\highcharts\export\util\SVGRasterizer.java:[63,1
5] error: cannot find symbol [ERROR] symbol: class
SVGAbstractTranscoder location: class SVGRasterizer
C:\hc-exporter\src\main\java\com\highcharts\export\pool\ServerObjectFactory.java
:[68,29] error: cannot find symbol [ERROR] symbol: variable ACTIVE
location: class ServerState
C:\hc-exporter\src\main\java\com\highcharts\export\util\SVGRasterizer.java:[34,2
] error: cannot find symbol [ERROR] symbol: class TranscoderInput
location: class SVGRasterizer
C:\hc-exporter\src\main\java\com\highcharts\export\util\SVGRasterizer.java:[34,3
0] error: cannot find symbol [ERROR] symbol: class TranscoderInput
location: class SVGRasterizer
C:\hc-exporter\src\main\java\com\highcharts\export\util\SVGRasterizer.java:[35,2
] error: cannot find symbol [ERROR] symbol: class TranscoderOutput
location: class SVGRasterizer
C:\hc-exporter\src\main\java\com\highcharts\export\util\SVGRasterizer.java:[35,3
7] error: cannot find symbol [ERROR] symbol: class
TranscoderOutput location: class SVGRasterizer
C:\hc-exporter\src\main\java\com\highcharts\export\util\SVGRasterizer.java:[37,2
] error: cannot find symbol [ERROR] symbol: class
SVGAbstractTranscoder location: class SVGRasterizer
C:\hc-exporter\src\main\java\com\highcharts\export\util\SVGRasterizer.java:[45,3
3] error: cannot find symbol [ERROR] symbol: variable
SVGAbstractTranscoder location: class SVGRasterizer
C:\hc-exporter\src\main\java\com\highcharts\export\util\SVGRasterizer.java:[53,3
4] error: cannot find symbol [ERROR] symbol: variable
SVGAbstractTranscoder location: class SVGRasterizer
C:\hc-exporter\src\main\java\com\highcharts\export\util\SVGRasterizer.java:[66,2
] error: cannot find symbol [ERROR] symbol: class
SVGAbstractTranscoder location: class SVGRasterizer
C:\hc-exporter\src\main\java\com\highcharts\export\util\SVGRasterizer.java:[70,2
0] error: cannot find symbol [ERROR] symbol: class PNGTranscoder
location: class SVGRasterizer
C:\hc-exporter\src\main\java\com\highcharts\export\util\SVGRasterizer.java:[73,2
0] error: cannot find symbol [ERROR] symbol: class JPEGTranscoder
location: class SVGRasterizer
C:\hc-exporter\src\main\java\com\highcharts\export\util\SVGRasterizer.java:[74,3
3] error: cannot find symbol [ERROR] symbol: variable
JPEGTranscoder location: class SVGRasterizer
C:\hc-exporter\src\main\java\com\highcharts\export\util\SVGRasterizer.java:[78,2
0] error: cannot find symbol [INFO] 22 errors [INFO]
------------------------------------------------------------- [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO]
------------------------------------------------------------------------ [INFO] Total time: 7.741s [INFO] Finished at: Thu May 16 12:54:29 EDT
2013 [INFO] Final Memory: 11M/122M [INFO]
------------------------------------------------------------------------ [ERROR] Failed to execute goal
org.apache.maven.plugins:maven-compiler-plugin:2.
5.1:compile (default-compile) on project highcharts-export: Compilation failure: Compilation failure: [ERROR]
C:\hc-exporter\src\main\java\com\highcharts\export\util\SVGRasterizer.ja
va:[8,34] error: package org.apache.batik.transcoder does not exist
[ERROR]
C:\hc-exporter\src\main\java\com\highcharts\export\util\SVGRasterizer.ja
va:[9,34] error: package org.apache.batik.transcoder does not exist
[ERROR]
C:\hc-exporter\src\main\java\com\highcharts\export\util\SVGRasterizer.ja
va:[10,34] error: package org.apache.batik.transcoder does not exist
[ERROR]
C:\hc-exporter\src\main\java\com\highcharts\export\util\SVGRasterizer.ja
va:[11,34] error: package org.apache.batik.transcoder does not exist
[ERROR]
C:\hc-exporter\src\main\java\com\highcharts\export\util\SVGRasterizer.ja
va:[12,40] error: package org.apache.batik.transcoder.image does not
exist [ERROR]
C:\hc-exporter\src\main\java\com\highcharts\export\util\SVGRasterizer.ja
va:[13,40] error: package org.apache.batik.transcoder.image does not
exist [ERROR]
C:\hc-exporter\src\main\java\com\highcharts\export\util\SVGRasterizer.ja
va:[14,25] error: package org.apache.fop.svg does not exist [ERROR]
C:\hc-exporter\src\main\java\com\highcharts\export\util\SVGRasterizer.ja
va:[32,34] error: cannot find symbol [ERROR] symbol: class
TranscoderException [ERROR] location: class SVGRasterizer [ERROR]
C:\hc-exporter\src\main\java\com\highcharts\export\util\SVGRasterizer.ja
va:[63,15] error: cannot find symbol [ERROR] symbol: class
SVGAbstractTranscoder [ERROR] location: class SVGRasterizer [ERROR]
C:\hc-exporter\src\main\java\com\highcharts\export\pool\ServerObjectFact
ory.java:[68,29] error: cannot find symbol [ERROR] symbol: variable
ACTIVE [ERROR] location: class ServerState [ERROR]
C:\hc-exporter\src\main\java\com\highcharts\export\util\SVGRasterizer.ja
va:[34,2] error: cannot find symbol [ERROR] symbol: class
TranscoderInput [ERROR] location: class SVGRasterizer [ERROR]
C:\hc-exporter\src\main\java\com\highcharts\export\util\SVGRasterizer.ja
va:[34,30] error: cannot find symbol [ERROR] symbol: class
TranscoderInput [ERROR] location: class SVGRasterizer [ERROR]
C:\hc-exporter\src\main\java\com\highcharts\export\util\SVGRasterizer.ja
va:[35,2] error: cannot find symbol [ERROR] symbol: class
TranscoderOutput [ERROR] location: class SVGRasterizer [ERROR]
C:\hc-exporter\src\main\java\com\highcharts\export\util\SVGRasterizer.ja
va:[35,37] error: cannot find symbol [ERROR] symbol: class
TranscoderOutput [ERROR] location: class SVGRasterizer [ERROR]
C:\hc-exporter\src\main\java\com\highcharts\export\util\SVGRasterizer.ja
va:[37,2] error: cannot find symbol [ERROR] symbol: class
SVGAbstractTranscoder [ERROR] location: class SVGRasterizer [ERROR]
C:\hc-exporter\src\main\java\com\highcharts\export\util\SVGRasterizer.ja
va:[45,33] error: cannot find symbol [ERROR] symbol: variable
SVGAbstractTranscoder [ERROR] location: class SVGRasterizer [ERROR]
C:\hc-exporter\src\main\java\com\highcharts\export\util\SVGRasterizer.ja
va:[53,34] error: cannot find symbol [ERROR] symbol: variable
SVGAbstractTranscoder [ERROR] location: class SVGRasterizer [ERROR]
C:\hc-exporter\src\main\java\com\highcharts\export\util\SVGRasterizer.ja
va:[66,2] error: cannot find symbol [ERROR] symbol: class
SVGAbstractTranscoder [ERROR] location: class SVGRasterizer [ERROR]
C:\hc-exporter\src\main\java\com\highcharts\export\util\SVGRasterizer.ja
va:[70,20] error: cannot find symbol [ERROR] symbol: class
PNGTranscoder [ERROR] location: class SVGRasterizer [ERROR]
C:\hc-exporter\src\main\java\com\highcharts\export\util\SVGRasterizer.ja
va:[73,20] error: cannot find symbol [ERROR] symbol: class
JPEGTranscoder [ERROR] location: class SVGRasterizer [ERROR]
C:\hc-exporter\src\main\java\com\highcharts\export\util\SVGRasterizer.ja
va:[74,33] error: cannot find symbol [ERROR] symbol: variable
JPEGTranscoder [ERROR] location: class SVGRasterizer [ERROR]
C:\hc-exporter\src\main\java\com\highcharts\export\util\SVGRasterizer.ja
va:[78,20] error: cannot find symbol [ERROR] -> [Help 1] [ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with
the -e swit ch. [ERROR] Re-run Maven using the -X switch to enable
full debug logging. [ERROR] [ERROR] For more information about the
errors and possible solutions, please rea d the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureExc eption
C:\hc-exporter>

This has now been fixed in the Highcharts repository on Github. So you won't need the patch anymore, just pull in the changes

I have found a solution to this problem.
zhiweihu has upload a patch that solves the issue. The problem is that ServerState class do not have the ACTIVE state.
Once you have applied the patch, you can create the package without a problem and it works as expected.

Related

struggling to create dependencies in java for IBM speech to text

I know this is ridiculous , but I have been struggling to move on from step 0 which is to create dependencies for the project!
I want to to make a simple speech to text app that can transcribe a file for me .
How the code will look like :
package com.ibm.watson.speech_to_text;
import com.ibm.cloud.sdk.core.http.HttpMediaType;
import com.ibm.cloud.sdk.core.security.Authenticator;
import com.ibm.cloud.sdk.core.security.IamAuthenticator;
import com.ibm.watson.speech_to_text.v1.SpeechToText;
import com.ibm.watson.speech_to_text.v1.model.RecognizeOptions;
import com.ibm.watson.speech_to_text.v1.model.SpeechRecognitionResults;
import java.io.File;
import java.io.FileNotFoundException;
/**
* Recognize a sample wav file and print the transcript into the console output.
* Make sure you are using UTF-8 to print messages; otherwise, you will see
* question marks.
*/
public class Main {
public static void main(String[] args) throws FileNotFoundException {
Authenticator authenticator = new IamAuthenticator("-key");
SpeechToText service = new SpeechToText(authenticator);
File audio = new File("C:\\Users\\User\\Desktop\\curl\\test.mp3");
RecognizeOptions options = new RecognizeOptions.Builder().audio(audio).contentType(HttpMediaType.AUDIO_MP3)
.build();
;
try {
options = new RecognizeOptions.Builder().audio(audio).contentType(HttpMediaType.AUDIO_MP3).build();
} catch (FileNotFoundException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
SpeechRecognitionResults transcript = service.recognize(options).execute().getResult();
System.out.println(transcript.toString());
}
}
According to github and IBM website You are supposed to create dependencies using maven or Gradle for your project and I have no idea how to do that !
I Don't understand how to create dependencies , Do I have to create a new file in the project and call it pom.xml and paste the text and run it as maven install (because that didn't work for me ) or what exactly should I do ? Please help as it's been almost 3 days and I'm struggling in like step 0!
Update:
I got these Errors when I click maven build with the goal as "clean install"
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/C:/Users/User/.p2/pool/plugins/org.eclipse.m2e.maven.runtime.slf4j.simple_1.16.0.20200610-1735/jars/slf4j-simple-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [file:/C:/Users/User/eclipse/java-2020-12/eclipse/configuration/org.eclipse.osgi/5/0/.cp/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.slf4j.impl.SimpleLoggerFactory]
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/C:/Users/User/.p2/pool/plugins/org.eclipse.m2e.maven.runtime.slf4j.simple_1.16.0.20200610-1735/jars/slf4j-simple-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [file:/C:/Users/User/eclipse/java-2020-12/eclipse/configuration/org.eclipse.osgi/5/0/.cp/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.slf4j.impl.SimpleLoggerFactory]
[INFO] Scanning for projects...
[INFO]
[INFO] -----------------------< com.ibm.watson:my-app >------------------------
[INFO] Building my-app 1.0-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) # my-app ---
[INFO] Deleting C:\Users\User\Desktop\waaaaaaaaaats\my-app\target
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) # my-app ---
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory C:\Users\User\Desktop\waaaaaaaaaats\my-app\src\main\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) # my-app ---
[INFO] Changes detected - recompiling the module!
[WARNING] File encoding has not been set, using platform encoding Cp1252, i.e. build is platform dependent!
[INFO] Compiling 1 source file to C:\Users\User\Desktop\waaaaaaaaaats\my-app\target\classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] Source option 5 is no longer supported. Use 7 or later.
[ERROR] Target option 5 is no longer supported. Use 7 or later.
[INFO] 2 errors
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.740 s
[INFO] Finished at: 2021-08-18T18:45:47+03:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project my-app: Compilation failure: Compilation failure:
[ERROR] Source option 5 is no longer supported. Use 7 or later.
[ERROR] Target option 5 is no longer supported. Use 7 or later.
[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
The pom.xml File that I used :
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.ibm.watson</groupId>
<artifactId>my-app</artifactId>
<version>1.0-SNAPSHOT</version>
<dependencies>
<dependency>
<groupId>com.ibm.watson</groupId>
<artifactId>speech-to-text</artifactId>
<version>9.2.1</version>
</dependency>
</dependencies>
</project>
new Error
[INFO] Scanning for projects...
[INFO]
[INFO] -----------------------< com.ibm.watson:my-app >------------------------
[INFO] Building my-app 1.0-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) # my-app ---
[INFO] Deleting C:\Users\User\Desktop\my-app\target
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) # my-app ---
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory C:\Users\User\Desktop\my-app\src\main\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) # my-app ---
[INFO] Changes detected - recompiling the module!
[WARNING] File encoding has not been set, using platform encoding Cp1252, i.e. build is platform dependent!
[INFO] Compiling 1 source file to C:\Users\User\Desktop\my-app\target\classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] /C:/Users/User/Desktop/my-app/src/main/java/com/ibm/watson/speech_to_text/Main.java:[4,35] package com.ibm.cloud.sdk.core.http does not exist
[ERROR] /C:/Users/User/Desktop/my-app/src/main/java/com/ibm/watson/speech_to_text/Main.java:[5,39] package com.ibm.cloud.sdk.core.security does not exist
[ERROR] /C:/Users/User/Desktop/my-app/src/main/java/com/ibm/watson/speech_to_text/Main.java:[6,39] package com.ibm.cloud.sdk.core.security does not exist
[ERROR] /C:/Users/User/Desktop/my-app/src/main/java/com/ibm/watson/speech_to_text/Main.java:[7,40] package com.ibm.watson.speech_to_text.v1 does not exist
[ERROR] /C:/Users/User/Desktop/my-app/src/main/java/com/ibm/watson/speech_to_text/Main.java:[8,46] package com.ibm.watson.speech_to_text.v1.model does not exist
[ERROR] /C:/Users/User/Desktop/my-app/src/main/java/com/ibm/watson/speech_to_text/Main.java:[9,46] package com.ibm.watson.speech_to_text.v1.model does not exist
[ERROR] /C:/Users/User/Desktop/my-app/src/main/java/com/ibm/watson/speech_to_text/Main.java:[22,17] cannot find symbol
symbol: class Authenticator
location: class com.ibm.watson.speech_to_text.Main
[ERROR] /C:/Users/User/Desktop/my-app/src/main/java/com/ibm/watson/speech_to_text/Main.java:[22,51] cannot find symbol
symbol: class IamAuthenticator
location: class com.ibm.watson.speech_to_text.Main
[ERROR] /C:/Users/User/Desktop/my-app/src/main/java/com/ibm/watson/speech_to_text/Main.java:[23,17] cannot find symbol
symbol: class SpeechToText
location: class com.ibm.watson.speech_to_text.Main
[ERROR] /C:/Users/User/Desktop/my-app/src/main/java/com/ibm/watson/speech_to_text/Main.java:[23,44] cannot find symbol
symbol: class SpeechToText
location: class com.ibm.watson.speech_to_text.Main
[ERROR] /C:/Users/User/Desktop/my-app/src/main/java/com/ibm/watson/speech_to_text/Main.java:[27,17] cannot find symbol
symbol: class RecognizeOptions
location: class com.ibm.watson.speech_to_text.Main
[ERROR] /C:/Users/User/Desktop/my-app/src/main/java/com/ibm/watson/speech_to_text/Main.java:[27,100] cannot find symbol
symbol: variable HttpMediaType
location: class com.ibm.watson.speech_to_text.Main
[ERROR] /C:/Users/User/Desktop/my-app/src/main/java/com/ibm/watson/speech_to_text/Main.java:[27,64] package RecognizeOptions does not exist
[ERROR] /C:/Users/User/Desktop/my-app/src/main/java/com/ibm/watson/speech_to_text/Main.java:[31,91] cannot find symbol
symbol: variable HttpMediaType
location: class com.ibm.watson.speech_to_text.Main
[ERROR] /C:/Users/User/Desktop/my-app/src/main/java/com/ibm/watson/speech_to_text/Main.java:[31,55] package RecognizeOptions does not exist
[ERROR] /C:/Users/User/Desktop/my-app/src/main/java/com/ibm/watson/speech_to_text/Main.java:[37,17] cannot find symbol
symbol: class SpeechRecognitionResults
location: class com.ibm.watson.speech_to_text.Main
[INFO] 16 errors
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.107 s
[INFO] Finished at: 2021-08-18T19:48:34+03:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project my-app: Compilation failure: Compilation failure:
[ERROR] /C:/Users/User/Desktop/my-app/src/main/java/com/ibm/watson/speech_to_text/Main.java:[4,35] package com.ibm.cloud.sdk.core.http does not exist
[ERROR] /C:/Users/User/Desktop/my-app/src/main/java/com/ibm/watson/speech_to_text/Main.java:[5,39] package com.ibm.cloud.sdk.core.security does not exist
[ERROR] /C:/Users/User/Desktop/my-app/src/main/java/com/ibm/watson/speech_to_text/Main.java:[6,39] package com.ibm.cloud.sdk.core.security does not exist
[ERROR] /C:/Users/User/Desktop/my-app/src/main/java/com/ibm/watson/speech_to_text/Main.java:[7,40] package com.ibm.watson.speech_to_text.v1 does not exist
[ERROR] /C:/Users/User/Desktop/my-app/src/main/java/com/ibm/watson/speech_to_text/Main.java:[8,46] package com.ibm.watson.speech_to_text.v1.model does not exist
[ERROR] /C:/Users/User/Desktop/my-app/src/main/java/com/ibm/watson/speech_to_text/Main.java:[9,46] package com.ibm.watson.speech_to_text.v1.model does not exist
[ERROR] /C:/Users/User/Desktop/my-app/src/main/java/com/ibm/watson/speech_to_text/Main.java:[22,17] cannot find symbol
[ERROR] symbol: class Authenticator
[ERROR] location: class com.ibm.watson.speech_to_text.Main
[ERROR] /C:/Users/User/Desktop/my-app/src/main/java/com/ibm/watson/speech_to_text/Main.java:[22,51] cannot find symbol
[ERROR] symbol: class IamAuthenticator
[ERROR] location: class com.ibm.watson.speech_to_text.Main
[ERROR] /C:/Users/User/Desktop/my-app/src/main/java/com/ibm/watson/speech_to_text/Main.java:[23,17] cannot find symbol
[ERROR] symbol: class SpeechToText
[ERROR] location: class com.ibm.watson.speech_to_text.Main
[ERROR] /C:/Users/User/Desktop/my-app/src/main/java/com/ibm/watson/speech_to_text/Main.java:[23,44] cannot find symbol
[ERROR] symbol: class SpeechToText
[ERROR] location: class com.ibm.watson.speech_to_text.Main
[ERROR] /C:/Users/User/Desktop/my-app/src/main/java/com/ibm/watson/speech_to_text/Main.java:[27,17] cannot find symbol
[ERROR] symbol: class RecognizeOptions
[ERROR] location: class com.ibm.watson.speech_to_text.Main
[ERROR] /C:/Users/User/Desktop/my-app/src/main/java/com/ibm/watson/speech_to_text/Main.java:[27,100] cannot find symbol
[ERROR] symbol: variable HttpMediaType
[ERROR] location: class com.ibm.watson.speech_to_text.Main
[ERROR] /C:/Users/User/Desktop/my-app/src/main/java/com/ibm/watson/speech_to_text/Main.java:[27,64] package RecognizeOptions does not exist
[ERROR] /C:/Users/User/Desktop/my-app/src/main/java/com/ibm/watson/speech_to_text/Main.java:[31,91] cannot find symbol
[ERROR] symbol: variable HttpMediaType
[ERROR] location: class com.ibm.watson.speech_to_text.Main
[ERROR] /C:/Users/User/Desktop/my-app/src/main/java/com/ibm/watson/speech_to_text/Main.java:[31,55] package RecognizeOptions does not exist
[ERROR] /C:/Users/User/Desktop/my-app/src/main/java/com/ibm/watson/speech_to_text/Main.java:[37,17] cannot find symbol
[ERROR] symbol: class SpeechRecognitionResults
[ERROR] location: class com.ibm.watson.speech_to_text.Main
[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
You need to create a maven project for this where its structure might look like this
my-app
|-- pom.xml
`-- src
|-- main
| `-- java
| `-- com
| `-- ibm
| `-- watson
| `-- speech_to_text
| `-- Main.java
src, main, java, com, ibm, watson, speech_to_text are the directories.
The content of the pom.xml might look like
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.ibm.watson</groupId>
<artifactId>my-app</artifactId>
<version>1.0-SNAPSHOT</version>
<dependencies>
<dependency>
<groupId>com.ibm.watson</groupId>
<artifactId>ibm-watson</artifactId>
<version>9.2.0</version>
</dependency>
</dependencies>
</project>
This includes your dependencies,
After this, you need to have maven installed in your machine to compile and run it. After installing maven you can run
mvn clean install OR mvn package
to compile/build the project. This will create a JAR file for you.
Finally, you can run the project with
java YOUR_JAR_NAME.jar
Suggestions:
Don't use the package com.ibm.watson.speech_to_text in your java file instead use your own e.g. com.mycompany.app so your directory structure will also change as per the package name i.e.
my-app
|-- pom.xml
`-- src
|-- main
| `-- java
| `-- com
| `-- mycompany
| `-- app
| `-- Main.java
pom.xml content will also change according to this
<groupId>com.mycompany.app</groupId>

Maven fails to pull in dependencies and compile fails

I am fairly new to Maven and trying to compile a very simple project. This is my pom.xml file:
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.bharani.aws</groupId>
<artifactId>com.bharani.aws.dynamo</artifactId>
<version>1.0-SNAPSHOT</version>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.3</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
</plugins>
</build>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>com.amazonaws</groupId>
<artifactId>aws-java-sdk-bom</artifactId>
<version>1.11.106</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>1.16.16</version>
<scope>provided</scope>
</dependency>
</dependencies>
</dependencyManagement>
</project>
When I do mvn compile, I get a bunch of cannot find symbol errors. Clearly, the dependencies are not downloaded and used. Here is the error log:
f45c89aa1b75:bharani-aws-dynamo janakiab$ mvn compile
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building com.bharani.aws.dynamo 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) # com.bharani.aws.dynamo ---
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] Copying 0 resource
[INFO]
[INFO] --- maven-compiler-plugin:3.3:compile (default-compile) # com.bharani.aws.dynamo ---
[INFO] Changes detected - recompiling the module!
[WARNING] File encoding has not been set, using platform encoding UTF-8, i.e. build is platform dependent!
[INFO] Compiling 2 source files to /Users/janakiab/code/bharani-aws-dynamo/target/classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] /Users/janakiab/code/bharani-aws-dynamo/src/main/java/com/bharani/aws/CustomerInfo.java:[3,54] package com.amazonaws.services.dynamodbv2.datamodeling does not exist
[ERROR] /Users/janakiab/code/bharani-aws-dynamo/src/main/java/com/bharani/aws/CustomerInfo.java:[4,54] package com.amazonaws.services.dynamodbv2.datamodeling does not exist
[ERROR] /Users/janakiab/code/bharani-aws-dynamo/src/main/java/com/bharani/aws/CustomerInfo.java:[5,54] package com.amazonaws.services.dynamodbv2.datamodeling does not exist
[ERROR] /Users/janakiab/code/bharani-aws-dynamo/src/main/java/com/bharani/aws/CustomerInfo.java:[6,54] package com.amazonaws.services.dynamodbv2.datamodeling does not exist
[ERROR] /Users/janakiab/code/bharani-aws-dynamo/src/main/java/com/bharani/aws/CustomerInfo.java:[7,14] package lombok does not exist
[ERROR] /Users/janakiab/code/bharani-aws-dynamo/src/main/java/com/bharani/aws/CustomerInfo.java:[8,14] package lombok does not exist
[ERROR] /Users/janakiab/code/bharani-aws-dynamo/src/main/java/com/bharani/aws/CustomerInfo.java:[9,14] package lombok does not exist
[ERROR] /Users/janakiab/code/bharani-aws-dynamo/src/main/java/com/bharani/aws/CustomerInfo.java:[10,14] package lombok does not exist
[ERROR] /Users/janakiab/code/bharani-aws-dynamo/src/main/java/com/bharani/aws/CustomerInfo.java:[11,14] package lombok does not exist
[ERROR] /Users/janakiab/code/bharani-aws-dynamo/src/main/java/com/bharani/aws/CustomerInfo.java:[16,2] cannot find symbol
symbol: class Data
[ERROR] /Users/janakiab/code/bharani-aws-dynamo/src/main/java/com/bharani/aws/CustomerInfo.java:[17,2] cannot find symbol
symbol: class Builder
[ERROR] /Users/janakiab/code/bharani-aws-dynamo/src/main/java/com/bharani/aws/CustomerInfo.java:[18,2] cannot find symbol
symbol: class ToString
[ERROR] /Users/janakiab/code/bharani-aws-dynamo/src/main/java/com/bharani/aws/CustomerInfo.java:[19,2] cannot find symbol
symbol: class NoArgsConstructor
[ERROR] /Users/janakiab/code/bharani-aws-dynamo/src/main/java/com/bharani/aws/CustomerInfo.java:[20,2] cannot find symbol
symbol: class AllArgsConstructor
[ERROR] /Users/janakiab/code/bharani-aws-dynamo/src/main/java/com/bharani/aws/CustomerInfo.java:[21,2] cannot find symbol
symbol: class DynamoDBTable
[ERROR] /Users/janakiab/code/bharani-aws-dynamo/src/main/java/com/bharani/aws/Main.java:[3,26] package com.amazonaws.auth does not exist
[ERROR] /Users/janakiab/code/bharani-aws-dynamo/src/main/java/com/bharani/aws/Main.java:[4,26] package com.amazonaws.auth does not exist
[ERROR] /Users/janakiab/code/bharani-aws-dynamo/src/main/java/com/bharani/aws/Main.java:[5,29] package com.amazonaws.regions does not exist
[ERROR] /Users/janakiab/code/bharani-aws-dynamo/src/main/java/com/bharani/aws/Main.java:[6,41] package com.amazonaws.services.dynamodbv2 does not exist
[ERROR] /Users/janakiab/code/bharani-aws-dynamo/src/main/java/com/bharani/aws/Main.java:[7,41] package com.amazonaws.services.dynamodbv2 does not exist
[ERROR] /Users/janakiab/code/bharani-aws-dynamo/src/main/java/com/bharani/aws/Main.java:[8,54] package com.amazonaws.services.dynamodbv2.datamodeling does not exist
[ERROR] /Users/janakiab/code/bharani-aws-dynamo/src/main/java/com/bharani/aws/Main.java:[33,13] cannot find symbol
symbol: class AmazonDynamoDB
location: class com.bharani.aws.Main
[ERROR] /Users/janakiab/code/bharani-aws-dynamo/src/main/java/com/bharani/aws/Main.java:[41,44] cannot find symbol
symbol: class AmazonDynamoDB
location: class com.bharani.aws.Main
[ERROR] /Users/janakiab/code/bharani-aws-dynamo/src/main/java/com/bharani/aws/Main.java:[41,13] cannot find symbol
symbol: class DynamoDBMapper
location: class com.bharani.aws.Main
[ERROR] /Users/janakiab/code/bharani-aws-dynamo/src/main/java/com/bharani/aws/CustomerInfo.java:[24,6] cannot find symbol
symbol: class DynamoDBAutoGeneratedKey
location: class com.bharani.aws.CustomerInfo
[ERROR] /Users/janakiab/code/bharani-aws-dynamo/src/main/java/com/bharani/aws/CustomerInfo.java:[25,6] cannot find symbol
symbol: class DynamoDBHashKey
location: class com.bharani.aws.CustomerInfo
[ERROR] /Users/janakiab/code/bharani-aws-dynamo/src/main/java/com/bharani/aws/CustomerInfo.java:[28,6] cannot find symbol
symbol: class DynamoDBAttribute
location: class com.bharani.aws.CustomerInfo
[ERROR] /Users/janakiab/code/bharani-aws-dynamo/src/main/java/com/bharani/aws/CustomerInfo.java:[31,6] cannot find symbol
symbol: class DynamoDBAttribute
location: class com.bharani.aws.CustomerInfo
[ERROR] /Users/janakiab/code/bharani-aws-dynamo/src/main/java/com/bharani/aws/CustomerInfo.java:[34,6] cannot find symbol
symbol: class DynamoDBAttribute
location: class com.bharani.aws.CustomerInfo
[ERROR] /Users/janakiab/code/bharani-aws-dynamo/src/main/java/com/bharani/aws/CustomerInfo.java:[37,6] cannot find symbol
symbol: class DynamoDBAttribute
location: class com.bharani.aws.CustomerInfo
[ERROR] /Users/janakiab/code/bharani-aws-dynamo/src/main/java/com/bharani/aws/CustomerInfo.java:[40,6] cannot find symbol
symbol: class DynamoDBAttribute
location: class com.bharani.aws.CustomerInfo
[ERROR] /Users/janakiab/code/bharani-aws-dynamo/src/main/java/com/bharani/aws/Main.java:[22,15] cannot find symbol
symbol: class AmazonDynamoDB
location: class com.bharani.aws.Main
[ERROR] /Users/janakiab/code/bharani-aws-dynamo/src/main/java/com/bharani/aws/Main.java:[23,15] cannot find symbol
symbol: class DynamoDBMapper
location: class com.bharani.aws.Main
[ERROR] /Users/janakiab/code/bharani-aws-dynamo/src/main/java/com/bharani/aws/Main.java:[36,38] cannot find symbol
symbol: class AWSStaticCredentialsProvider
location: class com.bharani.aws.Main
[ERROR] /Users/janakiab/code/bharani-aws-dynamo/src/main/java/com/bharani/aws/Main.java:[37,29] cannot find symbol
symbol: class BasicAWSCredentials
location: class com.bharani.aws.Main
[ERROR] /Users/janakiab/code/bharani-aws-dynamo/src/main/java/com/bharani/aws/Main.java:[35,29] cannot find symbol
symbol: variable Regions
location: class com.bharani.aws.Main
[ERROR] /Users/janakiab/code/bharani-aws-dynamo/src/main/java/com/bharani/aws/Main.java:[34,16] cannot find symbol
symbol: variable AmazonDynamoDBClientBuilder
location: class com.bharani.aws.Main
[ERROR] /Users/janakiab/code/bharani-aws-dynamo/src/main/java/com/bharani/aws/Main.java:[42,20] cannot find symbol
symbol: class DynamoDBMapper
location: class com.bharani.aws.Main
[ERROR] /Users/janakiab/code/bharani-aws-dynamo/src/main/java/com/bharani/aws/Main.java:[46,28] cannot find symbol
symbol: method builder()
location: class com.bharani.aws.CustomerInfo
[INFO] 39 errors
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.560 s
[INFO] Finished at: 2017-10-04T18:46:40-07:00
[INFO] Final Memory: 15M/302M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.3:compile (default-compile) on project com.bharani.aws.dynamo: Compilation failure: Compilation failure:
[ERROR] /Users/janakiab/code/bharani-aws-dynamo/src/main/java/com/bharani/aws/CustomerInfo.java:[3,54] package com.amazonaws.services.dynamodbv2.datamodeling does not exist
[ERROR] /Users/janakiab/code/bharani-aws-dynamo/src/main/java/com/bharani/aws/CustomerInfo.java:[4,54] package com.amazonaws.services.dynamodbv2.datamodeling does not exist
[ERROR] /Users/janakiab/code/bharani-aws-dynamo/src/main/java/com/bharani/aws/CustomerInfo.java:[5,54] package com.amazonaws.services.dynamodbv2.datamodeling does not exist
[ERROR] /Users/janakiab/code/bharani-aws-dynamo/src/main/java/com/bharani/aws/CustomerInfo.java:[6,54] package com.amazonaws.services.dynamodbv2.datamodeling does not exist
[ERROR] /Users/janakiab/code/bharani-aws-dynamo/src/main/java/com/bharani/aws/CustomerInfo.java:[7,14] package lombok does not exist
[ERROR] /Users/janakiab/code/bharani-aws-dynamo/src/main/java/com/bharani/aws/CustomerInfo.java:[8,14] package lombok does not exist
[ERROR] /Users/janakiab/code/bharani-aws-dynamo/src/main/java/com/bharani/aws/CustomerInfo.java:[9,14] package lombok does not exist
[ERROR] /Users/janakiab/code/bharani-aws-dynamo/src/main/java/com/bharani/aws/CustomerInfo.java:[10,14] package lombok does not exist
[ERROR] /Users/janakiab/code/bharani-aws-dynamo/src/main/java/com/bharani/aws/CustomerInfo.java:[11,14] package lombok does not exist
[ERROR] /Users/janakiab/code/bharani-aws-dynamo/src/main/java/com/bharani/aws/CustomerInfo.java:[16,2] cannot find symbol
[ERROR] symbol: class Data
[ERROR] /Users/janakiab/code/bharani-aws-dynamo/src/main/java/com/bharani/aws/CustomerInfo.java:[17,2] cannot find symbol
[ERROR] symbol: class Builder
[ERROR] /Users/janakiab/code/bharani-aws-dynamo/src/main/java/com/bharani/aws/CustomerInfo.java:[18,2] cannot find symbol
[ERROR] symbol: class ToString
[ERROR] /Users/janakiab/code/bharani-aws-dynamo/src/main/java/com/bharani/aws/CustomerInfo.java:[19,2] cannot find symbol
[ERROR] symbol: class NoArgsConstructor
[ERROR] /Users/janakiab/code/bharani-aws-dynamo/src/main/java/com/bharani/aws/CustomerInfo.java:[20,2] cannot find symbol
[ERROR] symbol: class AllArgsConstructor
[ERROR] /Users/janakiab/code/bharani-aws-dynamo/src/main/java/com/bharani/aws/CustomerInfo.java:[21,2] cannot find symbol
[ERROR] symbol: class DynamoDBTable
[ERROR] /Users/janakiab/code/bharani-aws-dynamo/src/main/java/com/bharani/aws/Main.java:[3,26] package com.amazonaws.auth does not exist
[ERROR] /Users/janakiab/code/bharani-aws-dynamo/src/main/java/com/bharani/aws/Main.java:[4,26] package com.amazonaws.auth does not exist
[ERROR] /Users/janakiab/code/bharani-aws-dynamo/src/main/java/com/bharani/aws/Main.java:[5,29] package com.amazonaws.regions does not exist
[ERROR] /Users/janakiab/code/bharani-aws-dynamo/src/main/java/com/bharani/aws/Main.java:[6,41] package com.amazonaws.services.dynamodbv2 does not exist
[ERROR] /Users/janakiab/code/bharani-aws-dynamo/src/main/java/com/bharani/aws/Main.java:[7,41] package com.amazonaws.services.dynamodbv2 does not exist
[ERROR] /Users/janakiab/code/bharani-aws-dynamo/src/main/java/com/bharani/aws/Main.java:[8,54] package com.amazonaws.services.dynamodbv2.datamodeling does not exist
[ERROR] /Users/janakiab/code/bharani-aws-dynamo/src/main/java/com/bharani/aws/Main.java:[33,13] cannot find symbol
[ERROR] symbol: class AmazonDynamoDB
[ERROR] location: class com.bharani.aws.Main
[ERROR] /Users/janakiab/code/bharani-aws-dynamo/src/main/java/com/bharani/aws/Main.java:[41,44] cannot find symbol
[ERROR] symbol: class AmazonDynamoDB
[ERROR] location: class com.bharani.aws.Main
[ERROR] /Users/janakiab/code/bharani-aws-dynamo/src/main/java/com/bharani/aws/Main.java:[41,13] cannot find symbol
[ERROR] symbol: class DynamoDBMapper
[ERROR] location: class com.bharani.aws.Main
[ERROR] /Users/janakiab/code/bharani-aws-dynamo/src/main/java/com/bharani/aws/CustomerInfo.java:[24,6] cannot find symbol
[ERROR] symbol: class DynamoDBAutoGeneratedKey
[ERROR] location: class com.bharani.aws.CustomerInfo
[ERROR] /Users/janakiab/code/bharani-aws-dynamo/src/main/java/com/bharani/aws/CustomerInfo.java:[25,6] cannot find symbol
[ERROR] symbol: class DynamoDBHashKey
[ERROR] location: class com.bharani.aws.CustomerInfo
[ERROR] /Users/janakiab/code/bharani-aws-dynamo/src/main/java/com/bharani/aws/CustomerInfo.java:[28,6] cannot find symbol
[ERROR] symbol: class DynamoDBAttribute
[ERROR] location: class com.bharani.aws.CustomerInfo
[ERROR] /Users/janakiab/code/bharani-aws-dynamo/src/main/java/com/bharani/aws/CustomerInfo.java:[31,6] cannot find symbol
[ERROR] symbol: class DynamoDBAttribute
[ERROR] location: class com.bharani.aws.CustomerInfo
[ERROR] /Users/janakiab/code/bharani-aws-dynamo/src/main/java/com/bharani/aws/CustomerInfo.java:[34,6] cannot find symbol
[ERROR] symbol: class DynamoDBAttribute
[ERROR] location: class com.bharani.aws.CustomerInfo
[ERROR] /Users/janakiab/code/bharani-aws-dynamo/src/main/java/com/bharani/aws/CustomerInfo.java:[37,6] cannot find symbol
[ERROR] symbol: class DynamoDBAttribute
[ERROR] location: class com.bharani.aws.CustomerInfo
[ERROR] /Users/janakiab/code/bharani-aws-dynamo/src/main/java/com/bharani/aws/CustomerInfo.java:[40,6] cannot find symbol
[ERROR] symbol: class DynamoDBAttribute
[ERROR] location: class com.bharani.aws.CustomerInfo
[ERROR] /Users/janakiab/code/bharani-aws-dynamo/src/main/java/com/bharani/aws/Main.java:[22,15] cannot find symbol
[ERROR] symbol: class AmazonDynamoDB
[ERROR] location: class com.bharani.aws.Main
[ERROR] /Users/janakiab/code/bharani-aws-dynamo/src/main/java/com/bharani/aws/Main.java:[23,15] cannot find symbol
[ERROR] symbol: class DynamoDBMapper
[ERROR] location: class com.bharani.aws.Main
[ERROR] /Users/janakiab/code/bharani-aws-dynamo/src/main/java/com/bharani/aws/Main.java:[36,38] cannot find symbol
[ERROR] symbol: class AWSStaticCredentialsProvider
[ERROR] location: class com.bharani.aws.Main
[ERROR] /Users/janakiab/code/bharani-aws-dynamo/src/main/java/com/bharani/aws/Main.java:[37,29] cannot find symbol
[ERROR] symbol: class BasicAWSCredentials
[ERROR] location: class com.bharani.aws.Main
[ERROR] /Users/janakiab/code/bharani-aws-dynamo/src/main/java/com/bharani/aws/Main.java:[35,29] cannot find symbol
[ERROR] symbol: variable Regions
[ERROR] location: class com.bharani.aws.Main
[ERROR] /Users/janakiab/code/bharani-aws-dynamo/src/main/java/com/bharani/aws/Main.java:[34,16] cannot find symbol
[ERROR] symbol: variable AmazonDynamoDBClientBuilder
[ERROR] location: class com.bharani.aws.Main
[ERROR] /Users/janakiab/code/bharani-aws-dynamo/src/main/java/com/bharani/aws/Main.java:[42,20] cannot find symbol
[ERROR] symbol: class DynamoDBMapper
[ERROR] location: class com.bharani.aws.Main
[ERROR] /Users/janakiab/code/bharani-aws-dynamo/src/main/java/com/bharani/aws/Main.java:[46,28] cannot find symbol
[ERROR] symbol: method builder()
[ERROR] location: class com.bharani.aws.CustomerInfo
[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
f45c89aa1b75:bharani-aws-dynamo janakiab$
Can someone point me if I am missing something?
Thanks.
Your dependencies are defined inside of the < dependencyManagement > section. In this section it defines dependencies in a parent project and allows the same version to be used in sub-modules. If you remove the < dependencyManagement > tags and/or add the same thing in just < dependencies > and it should work properly.
See maven dependency management page for more details.

travis ci build failure on java9

I have upgraded my project to jdk-9 env. But when I pushed the branch, I met a building problem that travis-ci didn’t find the package “Javax.json” as following:
My configuration:
{
"language": "java",
"install": "mvn install -DskipTests=true -Dmaven.javadoc.skip=true",
"jdk": "oraclejdk9",
"group": "stable",
"dist": "trusty",
"os": "linux"
}
Error information(partly):
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] /home/travis/build/ArvinSiChuan/TwentySeventeenAutumn/src/main/java/com/arvinsichuan/helloidea/HelloIdea.java:[7,18] package javax.json does not exist
[ERROR] /home/travis/build/ArvinSiChuan/TwentySeventeenAutumn/src/main/java/com/arvinsichuan/mongojdbc/MongoJDBC.java:[14,18] package javax.json does not exist
[ERROR] /home/travis/build/ArvinSiChuan/TwentySeventeenAutumn/src/main/java/com/arvinsichuan/mongojdbc/MongoJDBC.java:[15,18] package javax.json does not exist
[ERROR] /home/travis/build/ArvinSiChuan/TwentySeventeenAutumn/src/main/java/com/arvinsichuan/mongojdbc/MongoJDBC.java:[48,9] cannot find symbol
symbol: class JsonObjectBuilder
location: class com.arvinsichuan.mongojdbc.MongoJDBC
[ERROR] /home/travis/build/ArvinSiChuan/TwentySeventeenAutumn/src/main/java/com/arvinsichuan/mongojdbc/MongoJDBC.java:[48,41] cannot find symbol
symbol: variable Json
location: class com.arvinsichuan.mongojdbc.MongoJDBC
[INFO] 5 errors
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 5.799 s
[INFO] Finished at: 2017-09-22T05:49:56Z
[INFO] Final Memory: 23M/512M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-
plugin:3.1:compile (default-compile) on project JEETwentySeventeenAutumn:
Compilation failure: Compilation failure:
[ERROR] /home/travis/build/ArvinSiChuan/TwentySeventeenAutumn/src/main/java/com/arvinsichuan/helloidea/HelloIdea.java:[7,18] package javax.json does not exist
[ERROR] /home/travis/build/ArvinSiChuan/TwentySeventeenAutumn/src/main/java/com/arvinsichuan/mongojdbc/MongoJDBC.java:[14,18] package javax.json does not exist
[ERROR] /home/travis/build/ArvinSiChuan/TwentySeventeenAutumn/src/main/java/com/arvinsichuan/mongojdbc/MongoJDBC.java:[15,18] package javax.json does not exist
[ERROR] /home/travis/build/ArvinSiChuan/TwentySeventeenAutumn/src/main/java/com/arvinsichuan/mongojdbc/MongoJDBC.java:[48,9] cannot find symbol
[ERROR] symbol: class JsonObjectBuilder
[ERROR] location: class com.arvinsichuan.mongojdbc.MongoJDBC
[ERROR] /home/travis/build/ArvinSiChuan/TwentySeventeenAutumn/src/main/java/com/arvinsichuan/mongojdbc/MongoJDBC.java:[48,41] cannot find symbol
[ERROR] symbol: variable Json
[ERROR] location: class com.arvinsichuan.mongojdbc.MongoJDBC
[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
The command "mvn install -DskipTests=true -Dmaven.javadoc.skip=true" failed
and exited with 1 during .
Your build has been stopped.
Add the dependency:
<dependency>
<groupId>org.glassfish</groupId>
<artifactId>javax.json</artifactId>
<version>1.1</version>
</dependency>

Maven Play Framework 1.3.0-RC3 upgrade

I've a Play Framework 1.2.7 project which is managed by Maven. Now I am trying to upgrade to Play Framework version 1.3.0
What am I doing the way, how to properly upgrade from Play framework 1.2 to 1.3?
Maven play plugin in the current pom.xml
<parent>
<groupId>com.google.code.maven-play-plugin</groupId>
<artifactId>play-app-default-parent</artifactId>
<version>1.0.0-beta7</version>
</parent>
Changed play plugin to
<parent>
<groupId>com.google.code.maven-play-plugin</groupId>
<artifactId>play13-app-default-parent</artifactId>
<version>1.0.0-beta7</version>
</parent>
Maven --version
Apache Maven 3.2.3 (33f8c3e1027c3ddde99d3cdebad2656a31e8fdf4; 2014-08-12T02:58:10+06:00)
Maven home: /usr/local/Cellar/maven/3.2.3/libexec
Java version: 1.7.0_71, vendor: Oracle Corporation
Java home: /Library/Java/JavaVirtualMachines/jdk1.7.0_71.jdk/Contents/Home/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "mac os x", version: "10.10.1", arch: "x86_64", family: "mac"
mvn package clean and mvn install output
[INFO] --- maven-enforcer-plugin:1.0:enforce (enforce-maven) # gui ---
[INFO]
[INFO] --- play-maven-plugin:1.0.0-beta7:initialize (default-initialize) # gui ---
[INFO]
[INFO] --- maven-resources-plugin:2.7:resources (default-resources) # gui ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 6 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) # gui ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 38 source files to /Users/sultan/project/gui/target/classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] /Users/sultan/project/gui/app/models/Dataset.java:[7,36] package javax.validation.constraints does not exist
[ERROR] /Users/sultan/project/gui/app/models/AbstractInstance.java:[14,36] package javax.validation.constraints does not exist
[ERROR] /Users/sultan/project/gui/app/models/User.java:[10,36] package javax.validation.constraints does not exist
[ERROR] /Users/sultan/project/gui/app/models/Experiment.java:[19,36] package javax.validation.constraints does not exist
[ERROR] /Users/sultan/project/gui/app/models/AccessGroup.java:[7,36] package javax.validation.constraints does not exist
[INFO] 27 errors
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 02:16 min
[INFO] Finished at: 2015-01-15T14:45:00+06:00
[INFO] Final Memory: 26M/119M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project gui: Compilation failure: Compilation failure:
[ERROR] /Users/sultan/project/gui/app/models/AbstractInstance.java:[29,6] cannot find symbol
[ERROR] symbol: class NotNull
[ERROR] location: class models.AbstractInstance
[ERROR] /Users/sultan/project/gui/app/models/User.java:[40,6] cannot find symbol
[ERROR] symbol: class NotNull
[ERROR] location: class models.User
[ERROR] /Users/sultan/project/gui/app/models/Experiment.java:[30,6] cannot find symbol
[ERROR] symbol: class NotNull
[ERROR] location: class models.Experiment
[ERROR] /Users/sultan/project/gui/app/models/Experiment.java:[49,6] cannot find symbol
[ERROR] symbol: class NotNull
[ERROR] location: class models.Experiment
[ERROR] symbol: class ConstraintViolationException
[ERROR] location: class controllers.ExperimentController
[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
I have tried to upgrade Hibernate but it didn't help
Check if you have marked any dependency as a runtime dependency. Try changing the scope to compile.
play13-app-default-parent:1.0.0-beta7 depends on play 1.3.0-RC1. This version of Play! does not contain validation-api in it's dependencies, it was added in 1.3.0-RC2 but neither 1.3.0-RC2 nor 1.3.0-RC3 were deployed to Maven central. 1.3.0 was deployed.
Next version of play13-app-default-parent will depend on 1.3.0.
For now you have to add one project property to switch to 1.3.0:
<properties>
...
<play.version>1.3.0</play.version>
</properties>

bad path element "": no such file or directory in maven compile

I make as here:
see highest voted answer
added to my pom.xml
<profiles>
<profile>
<id>otherOutputDir</id>
<build>
<directory>yourDirectory</directory>
</build>
</profile>
</profiles>
in cmd:
C:\Users\Nikolay_Tkachev\workspace\HHSystem\UI>mvn compile -PotherOutputDir
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building hhsystem ui 1.0.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-resources-plugin:2.5:resources (default-resources) # ui ---
[debug] execute contextualize
[WARNING] Using platform encoding (Cp1251 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] Copying 2 resources
[INFO]
[INFO] --- maven-compiler-plugin:2.5.1:compile (default-compile) # ui ---
[WARNING] File encoding has not been set, using platform encoding Cp1251, i.e. build is platform dependent!
[INFO] Compiling 11 source files to C:\Users\Nikolay_Tkachev\workspace\HHSystem\UI\yourDirectory\classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] bad path element "": no such file or directory
C:\Users\Nikolay_Tkachev\workspace\HHSystem\UI\src\main\java\com\epam\hhsystem\web\controllers\MyContextListener.java:[8,29]
cannot find symbol
symbol : class DatabaseHelper
location: package com.epam.hhsystem.util
[ERROR] C:\Users\Nikolay_Tkachev\workspace\HHSystem\UI\src\main\java\com\epam\hhsystem\web\controllers\MyContextListener.jav
a:[12,1] cannot find symbol
symbol : class DatabaseHelper
location: class com.epam.hhsystem.web.controllers.MyContextListener
[ERROR] C:\Users\Nikolay_Tkachev\workspace\HHSystem\UI\src\main\java\com\epam\hhsystem\web\controllers\MyApplicationListener
.java:[8,29] cannot find symbol
symbol : class DatabaseHelper
location: package com.epam.hhsystem.util
[ERROR] C:\Users\Nikolay_Tkachev\workspace\HHSystem\UI\src\main\java\com\epam\hhsystem\web\controllers\MyApplicationListener
.java:[14,1] cannot find symbol
symbol : class DatabaseHelper
location: class com.epam.hhsystem.web.controllers.MyApplicationListener
[ERROR] C:\Users\Nikolay_Tkachev\workspace\HHSystem\UI\src\main\java\com\epam\hhsystem\web\controllers\ApplicationWebListene
r.java:[9,29] cannot find symbol
symbol : class DatabaseHelper
location: package com.epam.hhsystem.util
[ERROR] C:\Users\Nikolay_Tkachev\workspace\HHSystem\UI\src\main\java\com\epam\hhsystem\web\controllers\ApplicationWebListene
r.java:[14,1] cannot find symbol
symbol : class DatabaseHelper
location: class com.epam.hhsystem.web.controllers.ApplicationWebListener
[ERROR] C:\Users\Nikolay_Tkachev\workspace\HHSystem\UI\src\main\java\com\epam\hhsystem\web\controllers\CustomAuthentificatio
nProvider.java:[12,23] package org.apache.log4j does not exist
[ERROR] C:\Users\Nikolay_Tkachev\workspace\HHSystem\UI\src\main\java\com\epam\hhsystem\web\controllers\CustomAuthentificatio
nProvider.java:[24,16] cannot find symbol
symbol : class Logger
location: class com.epam.hhsystem.web.controllers.CustomAuthentificationProvider
[ERROR] C:\Users\Nikolay_Tkachev\workspace\HHSystem\UI\src\main\java\com\epam\hhsystem\web\controllers\AbstractController.ja
va:[49,20] cannot find symbol
symbol : method getAllSkills()
location: class com.epam.hhsystem.services.UtilService
[ERROR] C:\Users\Nikolay_Tkachev\workspace\HHSystem\UI\src\main\java\com\epam\hhsystem\web\controllers\CustomAuthentificatio
nProvider.java:[24,32] cannot find symbol
symbol : variable Logger
location: class com.epam.hhsystem.web.controllers.CustomAuthentificationProvider
[ERROR] C:\Users\Nikolay_Tkachev\workspace\HHSystem\UI\src\main\java\com\epam\hhsystem\web\controllers\CustomAuthentificatio
nProvider.java:[59,17] [unchecked] unchecked call to put(K,V) as a member of the raw type java.util.Hashtable
[ERROR] C:\Users\Nikolay_Tkachev\workspace\HHSystem\UI\src\main\java\com\epam\hhsystem\web\controllers\CustomAuthentificatio
nProvider.java:[63,17] [unchecked] unchecked call to put(K,V) as a member of the raw type java.util.Hashtable
[ERROR] C:\Users\Nikolay_Tkachev\workspace\HHSystem\UI\src\main\java\com\epam\hhsystem\web\controllers\CustomAuthentificatio
nProvider.java:[64,17] [unchecked] unchecked call to put(K,V) as a member of the raw type java.util.Hashtable
[ERROR] C:\Users\Nikolay_Tkachev\workspace\HHSystem\UI\src\main\java\com\epam\hhsystem\web\controllers\CustomAuthentificatio
nProvider.java:[65,17] [unchecked] unchecked call to put(K,V) as a member of the raw type java.util.Hashtable
[ERROR] C:\Users\Nikolay_Tkachev\workspace\HHSystem\UI\src\main\java\com\epam\hhsystem\web\controllers\CustomAuthentificatio
nProvider.java:[66,17] [unchecked] unchecked call to put(K,V) as a member of the raw type java.util.Hashtable
[ERROR] C:\Users\Nikolay_Tkachev\workspace\HHSystem\UI\src\main\java\com\epam\hhsystem\web\controllers\VacancyMenuController
.java:[79,20] cannot find symbol
symbol : method getAllSkills()
location: class com.epam.hhsystem.services.UtilService
[INFO] 16 errors
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4.463s
[INFO] Finished at: Wed Oct 23 15:27:20 MSK 2013
[INFO] Final Memory: 21M/162M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.5.1:compile (default-compile) on project ui:
Compilation failure: Compilation failure:
[ERROR] bad path element "": no such file or directory
[ERROR] C:\Users\Nikolay_Tkachev\workspace\HHSystem\UI\src\main\java\com\epam\hhsystem\web\controllers\MyContextListener.jav
a:[8,29] cannot find symbol
[ERROR] symbol : class DatabaseHelper
[ERROR] location: package com.epam.hhsystem.util
[ERROR] C:\Users\Nikolay_Tkachev\workspace\HHSystem\UI\src\main\java\com\epam\hhsystem\web\controllers\MyContextListener.jav
a:[12,1] cannot find symbol
[ERROR] symbol : class DatabaseHelper
[ERROR] location: class com.epam.hhsystem.web.controllers.MyContextListener
[ERROR] C:\Users\Nikolay_Tkachev\workspace\HHSystem\UI\src\main\java\com\epam\hhsystem\web\controllers\MyApplicationListener
.java:[8,29] cannot find symbol
[ERROR] symbol : class DatabaseHelper
[ERROR] location: package com.epam.hhsystem.util
[ERROR] C:\Users\Nikolay_Tkachev\workspace\HHSystem\UI\src\main\java\com\epam\hhsystem\web\controllers\MyApplicationListener
.java:[14,1] cannot find symbol
[ERROR] symbol : class DatabaseHelper
[ERROR] location: class com.epam.hhsystem.web.controllers.MyApplicationListener
[ERROR] C:\Users\Nikolay_Tkachev\workspace\HHSystem\UI\src\main\java\com\epam\hhsystem\web\controllers\ApplicationWebListene
r.java:[9,29] cannot find symbol
[ERROR] symbol : class DatabaseHelper
[ERROR] location: package com.epam.hhsystem.util
[ERROR] C:\Users\Nikolay_Tkachev\workspace\HHSystem\UI\src\main\java\com\epam\hhsystem\web\controllers\ApplicationWebListene
r.java:[14,1] cannot find symbol
[ERROR] symbol : class DatabaseHelper
[ERROR] location: class com.epam.hhsystem.web.controllers.ApplicationWebListener
[ERROR] C:\Users\Nikolay_Tkachev\workspace\HHSystem\UI\src\main\java\com\epam\hhsystem\web\controllers\CustomAuthentificatio
nProvider.java:[12,23] package org.apache.log4j does not exist
[ERROR] C:\Users\Nikolay_Tkachev\workspace\HHSystem\UI\src\main\java\com\epam\hhsystem\web\controllers\CustomAuthentificatio
nProvider.java:[24,16] cannot find symbol
[ERROR] symbol : class Logger
[ERROR] location: class com.epam.hhsystem.web.controllers.CustomAuthentificationProvider
[ERROR] C:\Users\Nikolay_Tkachev\workspace\HHSystem\UI\src\main\java\com\epam\hhsystem\web\controllers\AbstractController.ja
va:[49,20] cannot find symbol
[ERROR] symbol : method getAllSkills()
[ERROR] location: class com.epam.hhsystem.services.UtilService
[ERROR] C:\Users\Nikolay_Tkachev\workspace\HHSystem\UI\src\main\java\com\epam\hhsystem\web\controllers\CustomAuthentificatio
nProvider.java:[24,32] cannot find symbol
[ERROR] symbol : variable Logger
[ERROR] location: class com.epam.hhsystem.web.controllers.CustomAuthentificationProvider
[ERROR] C:\Users\Nikolay_Tkachev\workspace\HHSystem\UI\src\main\java\com\epam\hhsystem\web\controllers\CustomAuthentificatio
nProvider.java:[59,17] [unchecked] unchecked call to put(K,V) as a member of the raw type java.util.Hashtable
[ERROR] C:\Users\Nikolay_Tkachev\workspace\HHSystem\UI\src\main\java\com\epam\hhsystem\web\controllers\CustomAuthentificatio
nProvider.java:[63,17] [unchecked] unchecked call to put(K,V) as a member of the raw type java.util.Hashtable
[ERROR] C:\Users\Nikolay_Tkachev\workspace\HHSystem\UI\src\main\java\com\epam\hhsystem\web\controllers\CustomAuthentificatio
nProvider.java:[64,17] [unchecked] unchecked call to put(K,V) as a member of the raw type java.util.Hashtable
[ERROR] C:\Users\Nikolay_Tkachev\workspace\HHSystem\UI\src\main\java\com\epam\hhsystem\web\controllers\CustomAuthentificatio
nProvider.java:[65,17] [unchecked] unchecked call to put(K,V) as a member of the raw type java.util.Hashtable
[ERROR] C:\Users\Nikolay_Tkachev\workspace\HHSystem\UI\src\main\java\com\epam\hhsystem\web\controllers\CustomAuthentificatio
nProvider.java:[66,17] [unchecked] unchecked call to put(K,V) as a member of the raw type java.util.Hashtable
[ERROR] C:\Users\Nikolay_Tkachev\workspace\HHSystem\UI\src\main\java\com\epam\hhsystem\web\controllers\VacancyMenuController
.java:[79,20] cannot find symbol
[ERROR] symbol : method getAllSkills()
[ERROR] location: class com.epam.hhsystem.services.UtilService
[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
C:\Users\Nikolay_Tkachev\workspace\HHSystem\UI>
What the reason of this problem?
UPDATE
ChristophT,
C:\Users\Nikolay_Tkachev\workspace\HHSystem\UI>mvn -P otherOutputDir compile
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building hhsystem ui 1.0.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-resources-plugin:2.5:resources (default-resources) # ui ---
[debug] execute contextualize
[WARNING] Using platform encoding (Cp1251 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] Copying 2 resources
[INFO]
[INFO] --- maven-compiler-plugin:2.5.1:compile (default-compile) # ui ---
[WARNING] File encoding has not been set, using platform encoding Cp1251, i.e. build is platform dependent!
[INFO] Compiling 11 source files to C:\Users\Nikolay_Tkachev\workspace\HHSystem\UI\yourDirectory\classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] bad path element "": no such file or directory
C:\Users\Nikolay_Tkachev\workspace\HHSystem\UI\src\main\java\com\epam\hhsystem\web\controllers\MyContextListener.java:[8,29]
cannot find symbol
symbol : class DatabaseHelper
location: package com.epam.hhsystem.util
[ERROR] C:\Users\Nikolay_Tkachev\workspace\HHSystem\UI\src\main\java\com\epam\hhsystem\web\controllers\MyContextListener.jav
a:[12,1] cannot find symbol
symbol : class DatabaseHelper
location: class com.epam.hhsystem.web.controllers.MyContextListener
[ERROR] C:\Users\Nikolay_Tkachev\workspace\HHSystem\UI\src\main\java\com\epam\hhsystem\web\controllers\MyApplicationListener
.java:[8,29] cannot find symbol
symbol : class DatabaseHelper
location: package com.epam.hhsystem.util
[ERROR] C:\Users\Nikolay_Tkachev\workspace\HHSystem\UI\src\main\java\com\epam\hhsystem\web\controllers\MyApplicationListener
.java:[14,1] cannot find symbol
symbol : class DatabaseHelper
location: class com.epam.hhsystem.web.controllers.MyApplicationListener
[ERROR] C:\Users\Nikolay_Tkachev\workspace\HHSystem\UI\src\main\java\com\epam\hhsystem\web\controllers\ApplicationWebListene
r.java:[9,29] cannot find symbol
symbol : class DatabaseHelper
location: package com.epam.hhsystem.util
[ERROR] C:\Users\Nikolay_Tkachev\workspace\HHSystem\UI\src\main\java\com\epam\hhsystem\web\controllers\ApplicationWebListene
r.java:[14,1] cannot find symbol
symbol : class DatabaseHelper
location: class com.epam.hhsystem.web.controllers.ApplicationWebListener
[ERROR] C:\Users\Nikolay_Tkachev\workspace\HHSystem\UI\src\main\java\com\epam\hhsystem\web\controllers\CustomAuthentificatio
nProvider.java:[12,23] package org.apache.log4j does not exist
[ERROR] C:\Users\Nikolay_Tkachev\workspace\HHSystem\UI\src\main\java\com\epam\hhsystem\web\controllers\CustomAuthentificatio
nProvider.java:[24,16] cannot find symbol
symbol : class Logger
location: class com.epam.hhsystem.web.controllers.CustomAuthentificationProvider
[ERROR] C:\Users\Nikolay_Tkachev\workspace\HHSystem\UI\src\main\java\com\epam\hhsystem\web\controllers\AbstractController.ja
va:[49,20] cannot find symbol
symbol : method getAllSkills()
location: class com.epam.hhsystem.services.UtilService
[ERROR] C:\Users\Nikolay_Tkachev\workspace\HHSystem\UI\src\main\java\com\epam\hhsystem\web\controllers\CustomAuthentificatio
nProvider.java:[24,32] cannot find symbol
symbol : variable Logger
location: class com.epam.hhsystem.web.controllers.CustomAuthentificationProvider
[ERROR] C:\Users\Nikolay_Tkachev\workspace\HHSystem\UI\src\main\java\com\epam\hhsystem\web\controllers\CustomAuthentificatio
nProvider.java:[59,17] [unchecked] unchecked call to put(K,V) as a member of the raw type java.util.Hashtable
[ERROR] C:\Users\Nikolay_Tkachev\workspace\HHSystem\UI\src\main\java\com\epam\hhsystem\web\controllers\CustomAuthentificatio
nProvider.java:[63,17] [unchecked] unchecked call to put(K,V) as a member of the raw type java.util.Hashtable
[ERROR] C:\Users\Nikolay_Tkachev\workspace\HHSystem\UI\src\main\java\com\epam\hhsystem\web\controllers\CustomAuthentificatio
nProvider.java:[64,17] [unchecked] unchecked call to put(K,V) as a member of the raw type java.util.Hashtable
[ERROR] C:\Users\Nikolay_Tkachev\workspace\HHSystem\UI\src\main\java\com\epam\hhsystem\web\controllers\CustomAuthentificatio
nProvider.java:[65,17] [unchecked] unchecked call to put(K,V) as a member of the raw type java.util.Hashtable
[ERROR] C:\Users\Nikolay_Tkachev\workspace\HHSystem\UI\src\main\java\com\epam\hhsystem\web\controllers\CustomAuthentificatio
nProvider.java:[66,17] [unchecked] unchecked call to put(K,V) as a member of the raw type java.util.Hashtable
[ERROR] C:\Users\Nikolay_Tkachev\workspace\HHSystem\UI\src\main\java\com\epam\hhsystem\web\controllers\VacancyMenuController
.java:[79,20] cannot find symbol
symbol : method getAllSkills()
location: class com.epam.hhsystem.services.UtilService
[INFO] 16 errors
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4.632s
[INFO] Finished at: Wed Oct 23 16:19:42 MSK 2013
[INFO] Final Memory: 22M/257M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.5.1:compile (default-compile) on project ui:
Compilation failure: Compilation failure:
[ERROR] bad path element "": no such file or directory
[ERROR] C:\Users\Nikolay_Tkachev\workspace\HHSystem\UI\src\main\java\com\epam\hhsystem\web\controllers\MyContextListener.jav
a:[8,29] cannot find symbol
[ERROR] symbol : class DatabaseHelper
[ERROR] location: package com.epam.hhsystem.util
[ERROR] C:\Users\Nikolay_Tkachev\workspace\HHSystem\UI\src\main\java\com\epam\hhsystem\web\controllers\MyContextListener.jav
a:[12,1] cannot find symbol
[ERROR] symbol : class DatabaseHelper
[ERROR] location: class com.epam.hhsystem.web.controllers.MyContextListener
[ERROR] C:\Users\Nikolay_Tkachev\workspace\HHSystem\UI\src\main\java\com\epam\hhsystem\web\controllers\MyApplicationListener
.java:[8,29] cannot find symbol
[ERROR] symbol : class DatabaseHelper
[ERROR] location: package com.epam.hhsystem.util
[ERROR] C:\Users\Nikolay_Tkachev\workspace\HHSystem\UI\src\main\java\com\epam\hhsystem\web\controllers\MyApplicationListener
.java:[14,1] cannot find symbol
[ERROR] symbol : class DatabaseHelper
[ERROR] location: class com.epam.hhsystem.web.controllers.MyApplicationListener
[ERROR] C:\Users\Nikolay_Tkachev\workspace\HHSystem\UI\src\main\java\com\epam\hhsystem\web\controllers\ApplicationWebListene
r.java:[9,29] cannot find symbol
[ERROR] symbol : class DatabaseHelper
[ERROR] location: package com.epam.hhsystem.util
[ERROR] C:\Users\Nikolay_Tkachev\workspace\HHSystem\UI\src\main\java\com\epam\hhsystem\web\controllers\ApplicationWebListene
r.java:[14,1] cannot find symbol
[ERROR] symbol : class DatabaseHelper
[ERROR] location: class com.epam.hhsystem.web.controllers.ApplicationWebListener
[ERROR] C:\Users\Nikolay_Tkachev\workspace\HHSystem\UI\src\main\java\com\epam\hhsystem\web\controllers\CustomAuthentificatio
nProvider.java:[12,23] package org.apache.log4j does not exist
[ERROR] C:\Users\Nikolay_Tkachev\workspace\HHSystem\UI\src\main\java\com\epam\hhsystem\web\controllers\CustomAuthentificatio
nProvider.java:[24,16] cannot find symbol
[ERROR] symbol : class Logger
[ERROR] location: class com.epam.hhsystem.web.controllers.CustomAuthentificationProvider
[ERROR] C:\Users\Nikolay_Tkachev\workspace\HHSystem\UI\src\main\java\com\epam\hhsystem\web\controllers\AbstractController.ja
va:[49,20] cannot find symbol
[ERROR] symbol : method getAllSkills()
[ERROR] location: class com.epam.hhsystem.services.UtilService
[ERROR] C:\Users\Nikolay_Tkachev\workspace\HHSystem\UI\src\main\java\com\epam\hhsystem\web\controllers\CustomAuthentificatio
nProvider.java:[24,32] cannot find symbol
[ERROR] symbol : variable Logger
[ERROR] location: class com.epam.hhsystem.web.controllers.CustomAuthentificationProvider
[ERROR] C:\Users\Nikolay_Tkachev\workspace\HHSystem\UI\src\main\java\com\epam\hhsystem\web\controllers\CustomAuthentificatio
nProvider.java:[59,17] [unchecked] unchecked call to put(K,V) as a member of the raw type java.util.Hashtable
[ERROR] C:\Users\Nikolay_Tkachev\workspace\HHSystem\UI\src\main\java\com\epam\hhsystem\web\controllers\CustomAuthentificatio
nProvider.java:[63,17] [unchecked] unchecked call to put(K,V) as a member of the raw type java.util.Hashtable
[ERROR] C:\Users\Nikolay_Tkachev\workspace\HHSystem\UI\src\main\java\com\epam\hhsystem\web\controllers\CustomAuthentificatio
nProvider.java:[64,17] [unchecked] unchecked call to put(K,V) as a member of the raw type java.util.Hashtable
[ERROR] C:\Users\Nikolay_Tkachev\workspace\HHSystem\UI\src\main\java\com\epam\hhsystem\web\controllers\CustomAuthentificatio
nProvider.java:[65,17] [unchecked] unchecked call to put(K,V) as a member of the raw type java.util.Hashtable
[ERROR] C:\Users\Nikolay_Tkachev\workspace\HHSystem\UI\src\main\java\com\epam\hhsystem\web\controllers\CustomAuthentificatio
nProvider.java:[66,17] [unchecked] unchecked call to put(K,V) as a member of the raw type java.util.Hashtable
[ERROR] C:\Users\Nikolay_Tkachev\workspace\HHSystem\UI\src\main\java\com\epam\hhsystem\web\controllers\VacancyMenuController
.java:[79,20] cannot find symbol
[ERROR] symbol : method getAllSkills()
[ERROR] location: class com.epam.hhsystem.services.UtilService
[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
C:\Users\Nikolay_Tkachev\workspace\HHSystem\UI>
The mvn command takes options before the goals. Plus a space is missing between -P and otherOutputDir. So following command should work:
mvn -P otherOutputDir compile

Categories

Resources