| Summary: | JSP support depends on a gaggle of jars that are not on maven central | ||
|---|---|---|---|
| Product: | [RT] Jetty | Reporter: | benson margulies <bimargulies> |
| Component: | other | Assignee: | Jesse McConnell <jesse.mcconnell> |
| Status: | CLOSED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | gregw, jesse.mcconnell |
| Version: | unspecified | ||
| Target Milestone: | 7.1.x | ||
| Hardware: | PC | ||
| OS: | Mac OS X - Carbon (unsup.) | ||
| Whiteboard: | |||
|
Description
benson margulies
benson, hey we are doing the best we can and are constant advocates for ALL jars to be available in maven central. But let me check the exact status of those jars and I'll respond in more detail soon. You should be able to get JSP as a maven dependency by depending on org.eclipse.jetty:jetty-jsp-2.1, which has the following dependency tree: [INFO] org.eclipse.jetty:jetty-jsp-2.1:jar:7.2.2-SNAPSHOT [INFO] +- org.eclipse.jetty:jetty-util:jar:7.2.2-SNAPSHOT:provided [INFO] +- org.mortbay.jetty:jsp-2.1-glassfish:jar:2.1.v20100127:provided [INFO] | +- org.eclipse.jdt.core.compiler:ecj:jar:3.5.1:provided [INFO] | +- org.mortbay.jetty:jsp-api-2.1-glassfish:jar:2.1.v20100127:provided [INFO] | \- ant:ant:jar:1.6.5:provided [INFO] \- javax.servlet:servlet-api:jar:2.5:provided which are available from maven: http://repo2.maven.org/maven2/org/mortbay/jetty/jsp-2.1-glassfish/ The exact jars we ship in lib/jsp are a little different from these, because we need to ship versions that are IP cleared by eclipse foundation, and these are not available in maven - only orbit: http://download.eclipse.org/jetty/orbit/ We'll put an explanation on the wiki I don't see those dependencies on jetty-jsp-2.1 when I state it as a dependency. The reason is that the dependencies are marked 'provided' in your POM, so they aren't inherited by things that state this artifact as a dependency. It would be nice if there was 'something to depend on' (jetty-jsp-2.1-embedded, e.g.) that had these as plain dependencies. However, sure enough, adding this list to the wiki would have spared me. Also, 'embedding' page points to the page that talks about start.jar, but start.jar is really not relevant to embedding. I made a comment on the jetty embedding page about this. also you ought to be able to depend on one of the aggregates and get the jsp support, if that doesn't work then its a legit bug we'll have to iron out as the aggregates are meant to give you a one stop shop for embedding. http://repo2.maven.org/maven2/org/eclipse/jetty/aggregate/jetty-all-server/ Did you remove the 'provided' notations, or add non-provided deps to the aggregates? is the suggestion of http://repo2.maven.org/maven2/org/eclipse/jetty/aggregate/jetty-all-server/ to tell me to just depend on that instead of the smaller pieces I've been depending on so far? |