alwayswill / run-jetty-run

Automatically exported from code.google.com/p/run-jetty-run
0 stars 0 forks source link

Run Jetty Run not picking class files from maven output folder #145

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I have a maven project imported into Eclipse. The project structure is as 
below. "target/classes" is the output location (default of maven) of the 
project. On running the project inside Eclipse using Run jetty Run, the class 
files under the target/classes folder are not getting picked up. It is 
expecting the classes to be under src/webapp/web-inf/classes.

Project
  src
    main
    resources
    webapp
  target
    classes

Am using Eclipse-Helio, Run-Jetty-Run 1.3.2 in a windows 64 bit machine.

Original issue reported on code.google.com by sms.sri...@gmail.com on 26 Jun 2012 at 9:02

GoogleCodeExporter commented 9 years ago
Please use latest version and "uncheck" the "Exclude test-classes from maven" 
of RunConfiguration.

http://code.google.com/p/run-jetty-run/wiki/RJRConfigurations

Original comment by tonylovejava on 27 Jun 2012 at 6:25

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Tried the same, updated to 1.3.3 version. Also i made sure i have m2eclipse 
plugin as mentioned in the instructions. But i do not see the new options in my 
run configurations.

Aside, my issue is not related to test-classes (i do not have anything under 
test). I am having the problem becuase run-jetty-run is looking for classes 
under src/main/webapp/WEB-INF/, even though it is configured to look in 
target/classes.
If a manually copy class files to webapp/WEB-INF/ things work fine.

Original comment by sms.sri...@gmail.com on 27 Jun 2012 at 3:57

GoogleCodeExporter commented 9 years ago
My bad, I do misunderstood your question .

RJR is designed to read all classpath in your project classpath,
not only WEB-INF/classes.

And it should read target/classes if you do have the source folder and that's a 
correct output folder.

But if it do really not work as properly, 
you could check the Web Classpath tab your run configuration.

To see if anyone disabled the "target/classes" or not.

For more details ,see the "How to add new classpaths to web context ?" secion 
in [Classpath].

Let me know if that works for your. Sorry for the inconvenience.

Original comment by tonylovejava on 28 Jun 2012 at 6:52