-
Notifications
You must be signed in to change notification settings - Fork 119
Extra parent level in ch-multi example code #25
Comments
I agree I had the same issue-- thanks for pointing it out. |
This is a requirement from the publishing point of view. I might be able to change that if I try to refactor the publishing process. Let me think about this for a bit. |
Anything new? At least this bug shows up when searching for "org.sonatype.mavenbook.multi:parent:pom:0.8-SNAPSHOT" when people encuounter this problem. Workaround by @apjanke worked :) Thanks. |
@Zaijo I was able to run jetty but I know from Chapter 5 that the yahoo weather api changed. If you are using weather.yahooapis.com as your weather endpoint, it is retiring soon. Please update your apps to use weather via YQL https://query.yahooapis.com. So you will have to change two files to make it work: YahooRetriever (https://gist.github.com/fabeliflow/ef8e499a892d1b276e4d05f6b8bfe20b) and YahooParser (https://gist.github.com/fabeliflow/f5396e66ca40434e0ad566770b53c51c). I hope this helps! The book is great (and free) but it needs some updates! Fabio |
@apjanke And thanks for not letting me waste a day trying to figure that out! This proves that you really have to follow Maven's convention! Once you do, then it runs smooth! |
same problem, half a day wasted :( |
In the chapter on Multi-Module Projects, it describes a parent project in
simple-parent
, and two submodules underneath it. The example POMs in the chapter text itself reflect this structure. But in theexamples/ch-multi
code, there are three levels of modules: thesimple-parent
project itself is a submodule underneath the topch-multi
directory, which has its own POM.This also has the effect of breaking the
mvn jetty:run
example for me if I'm following the examples in the book exactly. In the section "Building the Multimodule Project", it has you runmvn clean install
from thesimple-parent
directory. But if I do this, the latermvn jetty:run
call from withinsimple-webapp/
will fail with an error like this.I think this is because it's not finding that extra top-level artifact. If I move up to
ch-multi
and domvn clean install
from there, then themvn jetty:run
example works.This seems a little confusing. Should the
examples
code be changed to match the two-level structure in the chapter text?The text was updated successfully, but these errors were encountered: