I noticed that I can't build certain modules separately though: mvn install -P allModules,unpacked,mysql -pl openmeetings-core -Dwicket.configuration=DEVELOPMENT -DskipTests -Dmaven.site.skip=true -DgenerateReports=false -Dmaven.javadoc.skip=true -Dmaven.mpir.skip=true
[INFO] Scanning for projects... [ERROR] [ERROR] Could not find the selected project in the reactor: openmeetings-core -Dwicket.configuration=DEVELOPMENT @ [ERROR] Could not find the selected project in the reactor: openmeetings-core -Dwicket.configuration=DEVELOPMENT -> [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/MavenExecutionException That works with other modules like openmeetings-web. Or openmeetings-remote I think too. But openmeetings-core doesnt work. @Maxim Solodovnik <[email protected]> Do you know why ? I tried to compare pom files, but they look identical. Cheers Seb Sebastian Wagner https://www.linkedin.com/in/sebastianwagner/ On Wed, 22 Apr 2020 at 09:08, [email protected] <[email protected]> wrote: > mvn clean install -P > allModules,unpacked,mysql -Dwicket.configuration=DEVELOPMENT -DskipTests > -Dmaven.site.skip=true *-DgenerateReports=false* > * -Dmaven.javadoc.skip=true -Dmpir.skip=true* > > may even go faster. Unfortunate maven.site.skip=true and mpir.skip > doesn't have much effect it seems. You can see it being executed in the > console. > I think the <configuration> section overwrites the maven command line > arguments. > > And running this then says: > [WARNING] The requested profile "mysql -Dwicket.configuration=DEVELOPMENT" > could not be activated because it does not exist. > > After that I run: > export MAVEN_OPTS='-Xdebug > -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n' > > And then > cd openmeetings-web > and > mvn install -P allModules,unpacked,mysql -DskipTests jetty:run-exploded > > And then run Eclipse => Debug => Attach to 8787. > > Havn't tried putting breakpoints into AjaxHandlers yet though. > > > > > Sebastian Wagner > https://www.linkedin.com/in/sebastianwagner/ > > > On Tue, 21 Apr 2020 at 13:17, Maxim Solodovnik <[email protected]> > wrote: > >> On Tue, 21 Apr 2020 at 03:51, [email protected] >> <[email protected]> wrote: >> > >> > I did run development mode. >> > >> > I guess I'm just confused. >> > >> > So you say I can attache a debug session via Eclipse and set a >> breakpoint >> > on this code: >> > >> https://github.com/apache/openmeetings/blob/master/openmeetings-web/src/main/java/org/apache/openmeetings/web/room/RoomPanel.java#L178 >> >> Yes sure :) >> I do it all the time :) >> >> to start debugabble version I'm doing >> 1) build `reset && mvn clean install -P allModules,unpacked,mysql >> -Dwicket.configuration=DEVELOPMENT -DskipTests -Dmaven.site.skip=true` >> unpacked version once >> 2) go to `cd openmeetings-server/target/server` >> 3) build `reset && cd ../../../; mvn install -pl openmeetings-web -pl >> openmeetings-server -P allModules,quick,mysql -o; cd >> openmeetings-server/target/server; rm -rf work; >> JAVA_OPTS="-DDATA_DIR=/home/solomax/work/openmeetings/data" >> JPDA_ADDRESS=localhost:8787 ./bin/catalina.sh jpda run` quick >> iterative build >> >> Attach to port 8787 with Eclipse (Remote Java Application) >> >> > >> > and it should stop ?! Cause I tried and didn't succeed. And then I got >> > slightly confused as the code is executed in AJax and triggers >> Javascript >> > code? >> > >> > I guess the other confusing part is that I think I remember seeing a >> Wicket >> > JavaScript Logger Dialog before (not Inspector), where you could log JS >> > messages from Wicket. >> > Is that now all moved into console.log and Wicket also logs to that >> part ? >> >> console is now supported by all browsers - I would use it :) >> There some OM specific log methods >> >> https://github.com/apache/openmeetings/blob/master/openmeetings-web/src/main/java/org/apache/openmeetings/web/common/main.js#L54 >> >> >> > >> > Cheers >> > Seb >> > >> > Sebastian Wagner >> > https://www.linkedin.com/in/sebastianwagner/ >> > >> > >> > On Tue, 21 Apr 2020 at 03:22, Maxim Solodovnik <[email protected]> >> wrote: >> > >> > > You can run OM in DEVELOPMENT mode (you need to modify web.xml >> > > /DEPLOYMENT/DEVELOPMENT/g ) >> > > And restart OM >> > > >> > > JS messages will be visible in JS console >> > > >> > > On Mon, 20 Apr 2020 at 22:16, Daniel Baker < >> [email protected]> >> > > wrote: >> > > >> > >> Maybe it would be more useful for everyone to see the log >> > >> information in OM front end . Moodle does something like this >> and is >> > >> very useful for making correlations between user input and errors. >> > >> Here is an example from moodle : >> > >> >> > >> >> > >> On 20/04/2020 05:46, Maxim Solodovnik wrote: >> > >> >> > >> Hello Sebastian, >> > >> >> > >> this question is a bit confusing :( >> > >> >> > >> logging from Java code == logging on server? - you can see logs in >> > >> terminal any time already >> > >> Wicket debug bar is already available in DEVELOPMENT mode (it in >> upper >> > >> right corner) >> > >> But IMO it is useful for checking AJAX responses only (But these days >> > >> browser console Network tab provides more info) >> > >> >> > >> In JS you can add `debugger` (don't forget to it later) and >> > >> console.log/info/error etc. >> > >> Also there are OM specific helpers ... >> > >> >> > >> On Mon, 20 Apr 2020 at 11:25, [email protected]< >> [email protected]> <[email protected]> wrote: >> > >> >> > >> Is there a way to enable the Wicket Debug window so you can do >> logging from >> > >> the Java code ? >> > >> >> > >> Cheers >> > >> Seb >> > >> >> > >> Sebastian Wagnerhttps://www.linkedin.com/in/sebastianwagner/ >> > >> >> > >> >> > > >> > > -- >> > > Best regards, >> > > Maxim >> > > >> >> >> >> -- >> Best regards, >> Maxim >> >
