Question

I downloaded the glass-java-starter from github and followed all of the instructions on the glass developers site. I got it imported into Eclipse as a Maven existing project as instructed and I changed the oAuth file ID and Secret as specified. When I try to start the project or debug the project I am getting the following exception: Source not found for http://cwiki.apache.org/confluence/display/MAVEN/NoGoalSpecifiedException. The instructions give a command line command for running the project, $ mvn jetty, but nothing for Eclipse. How do I debug this project with Eclipse?

Was it helpful?

Solution

You will need to use one of the maven plugins available for Eclipse to initiate the run:jetty goal.

There are a few available. One of them is Eclipse m2e.

  1. Install the plugin
  2. Create a new run configuration of type Maven Build
  3. Specify a goal of jetty:run

OTHER TIPS

Other solution would be:

set jetty debug port:

export MAVEN_OPTS='-Xdebug -Xrunjdwp:transport=dt_socket,address=4000,server=y,suspend=y'

then run jetty through maven command line

mvn jetty:jetty

After that use Eclipse remote debugger on port 4000.

The war file, product that mvn produce in this sample app is compatible with tomcat or any other standalone server, so just build a war to "webapp" directory of standalone tomcat or jetty or "deploy" directory of standalone JBoss. Eclipse has plenty of plugins to run those in debug mode.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top