Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Vorto » Java Build Error(Missing library error on build)
Java Build Error [message #1739158] Wed, 27 July 2016 21:16 Go to next message
Frank Blau is currently offline Frank BlauFriend
Messages: 4
Registered: July 2016
Junior Member
I'm new to Vorto... trying to build the sample Web UI Application.

I get the following error on build:

Description Resource Path Location Type
Missing artifact java.example:java.example.model:jar:1.0.0-SNAPSHOT pom.xml /webdevice.example line 37 Maven Dependency Problem

I can't find how to build or create that .jar file online.

Any ideas?

Frank
Re: Java Build Error [message #1739251 is a reply to message #1739158] Fri, 29 July 2016 00:32 Go to previous messageGo to next message
Alexander Edelmann is currently offline Alexander EdelmannFriend
Messages: 35
Registered: January 2015
Member
Hi Frank,

the web ui generator is depending on the output of the vorto javabean generator. Please invoke that as well and it should resolve your problem.

Thanks for this input. We will add this into the documentation of the web ui generator.

Alex
Re: Java Build Error [message #1739268 is a reply to message #1739251] Fri, 29 July 2016 08:30 Go to previous messageGo to next message
Frank Blau is currently offline Frank BlauFriend
Messages: 4
Registered: July 2016
Junior Member
Thanks... that seems to move it forward... but when I try and do a Maven Build with a jetty:run goal, I get:

[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Sample project generated from WeatherStation 1.0.0
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] >>> jetty-maven-plugin:9.3.11.v20160721:run (default-cli) > test-compile @ weatherstation-webapp >>>
[WARNING] The POM for java.example:java.example.model:jar:1.0.0-SNAPSHOT is missing, no dependency information available
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.408 s
[INFO] Finished at: 2016-07-29T10:27:48+02:00
[INFO] Final Memory: 11M/245M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project weatherstation-webapp: Could not resolve dependencies for project org.eclipse.vorto.examples:weatherstation-webapp:war:1.0.0: Could not find artifact java.example:java.example.model:jar:1.0.0-SNAPSHOT -> [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/DependencyResolutionException

Re: Java Build Error [message #1739274 is a reply to message #1739268] Fri, 29 July 2016 08:57 Go to previous messageGo to next message
Frank Blau is currently offline Frank BlauFriend
Messages: 4
Registered: July 2016
Junior Member
Also this error in the debug:

Caused by: org.apache.maven.plugin.PluginExecutionException: Execution default-cli of goal org.eclipse.jetty:jetty-maven-plugin:9.3.11.v20160721:run failed: A required class was missing while executing org.eclipse.jetty:jetty-maven-plugin:9.3.11.v20160721:run: org/apache/jasper/servlet/JasperInitializer


I am guessing this all has to with Jetty not being installed/configured correctly... But it does show as installed.
Re: Java Build Error [message #1739323 is a reply to message #1739274] Fri, 29 July 2016 16:15 Go to previous messageGo to next message
Frank Blau is currently offline Frank BlauFriend
Messages: 4
Registered: July 2016
Junior Member
Here is the full error:

[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Sample project generated from WeatherStation 1.0.0
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] >>> jetty-maven-plugin:9.3.11.v20160721:run (default-cli) > test-compile @ weatherstation-webapp >>>
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ weatherstation-webapp ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO] Copying 6 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ weatherstation-webapp ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 6 source files to /Users/frankblau/Documents/workspace/webdevice.example/target/classes
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ weatherstation-webapp ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /Users/frankblau/Documents/workspace/webdevice.example/src/test/resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ weatherstation-webapp ---
[INFO] No sources to compile
[INFO]
[INFO] <<< jetty-maven-plugin:9.3.11.v20160721:run (default-cli) < test-compile @ weatherstation-webapp <<<
[INFO]
[INFO] --- jetty-maven-plugin:9.3.11.v20160721:run (default-cli) @ weatherstation-webapp ---
[INFO] Configuring Jetty for project: Sample project generated from WeatherStation
[INFO] webAppSourceDirectory not set. Trying src/main/webapp
[INFO] webAppSourceDirectory /Users/frankblau/Documents/workspace/webdevice.example/src/main/webapp does not exist. Trying /Users/frankblau/Documents/workspace/webdevice.example/target/webapp-tmp
[INFO] Reload Mechanic: automatic
[INFO] Classes = /Users/frankblau/Documents/workspace/webdevice.example/target/classes
[INFO] Logging initialized @2412ms
[INFO] Context path = /
[INFO] Tmp directory = /Users/frankblau/Documents/workspace/webdevice.example/target/tmp
[INFO] Web defaults = org/eclipse/jetty/webapp/webdefault.xml
[INFO] Web overrides = none
[INFO] web.xml file = null
[INFO] Webapp directory = /Users/frankblau/Documents/workspace/webdevice.example/target/webapp-tmp
[INFO] jetty-9.3.11.v20160721
[INFO] Jetty server exiting.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.827 s
[INFO] Finished at: 2016-07-29T18:12:21+02:00
[INFO] Final Memory: 27M/273M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.eclipse.jetty:jetty-maven-plugin:9.3.11.v20160721:run (default-cli) on project weatherstation-webapp: Failure: Multiple exceptions: org/apache/jasper/servlet/JasperInitializer: org.apache.jasper.servlet.JasperInitializer -> [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
Re: Java Build Error [message #1740346 is a reply to message #1739323] Fri, 12 August 2016 06:29 Go to previous messageGo to next message
Alexander Edelmann is currently offline Alexander EdelmannFriend
Messages: 35
Registered: January 2015
Member
Hi Frank,
Before building your webapp bundle, please run "mvn clean install" for the generated java bundle first. Like I mentioned before, the webapp depends on the java bundle and maven would search for it in your local m2 repository to resolve this dependency.
This might resolve your other issue too.

Cheers, Alex
Re: Java Build Error [message #1740593 is a reply to message #1740346] Tue, 16 August 2016 05:14 Go to previous message
Nagavijay Sivakumar is currently offline Nagavijay SivakumarFriend
Messages: 11
Registered: August 2015
Junior Member
Minor: It would prefer if the java module which is generated (also maven dependencies) has the coordinates with groupId would be "org.eclipse.vorto.models" instead of "java.example" and artifactId as "java-vorto-models" instead of "java.example.model".
Previous Topic:Naming of FBs
Next Topic:[SOLVED]Unresolved requirement in Vorto IDE for contributor
Goto Forum:
  


Current Time: Wed Sep 19 03:05:30 GMT 2018

Powered by FUDForum. Page generated in 0.02271 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top