That looks weird, can you post a part of the maven logs?

I guess the `Mail` class is the ancient one, it doesn't exist currently,
and it relates to James Spring product. You can check the
`JamesAppSpringMain.java`.
For a quick running, use `JamesAppSpringMainTest.testServer()`[1] and you
might need to modify a bit the code inside to let the server to not to be
shutdown
after starting up.

That part of the document is quite old I think and some minor parts are no
longer valid. Depend on the real product you use on your production (James
JPA, James Cassandra or the fully Distributed James)
I suggest you test the same product on your local. So, the
`JamesAppSpringMain.java` might not fit with you.

By the way, Starting James by docker compose is not so complicated, and we
already have the `docker-compose.yml` in the project's source, you can
modify a bit in order to debug on remote James [2].

[1] Add a vm option
`-javaagent:"/path-to-your-m2-directory/.m2/repository/org/apache/openjpa/openjpa/3.1.0/openjpa-3.1.0.jar"`
to let the James Spring can start
[2] Add the java run option `-Xdebug
-Xrunjdwp:transport=dt_socket,address=10000,server=y,suspend=n` to your
services.james.entrypoint in side the double quote to enable debugging on
James server
It should look like this:

entrypoint: bash -c "java -Dworking.directory=/root/
-Dlogback.configurationFile=/root/conf/logback.xml -Xdebug
-Xrunjdwp:transport=dt_socket,address=10000,server=y,suspend=n -jar
james-server.jar"

And map the port from host to james service

ports:
  ...
  - "10000:10000"



Vào Th 3, 5 thg 11, 2019 vào lúc 13:24 Jerry Malcolm <
techst...@malcolms.com> đã viết:

> Duc,
>
> Thanks for the info.  Apparently my maven download didn't include all of
> the plugins required.  It says it can't resolve the checkstyle plugin.
> Is there a repository to find and download all of the additional plugins
> required for maven cli?
>
> Regarding running in IDEA, the new James build instructions for IntelliJ
> that Benoit is working on says to just right click on 'Main' and
> run/debug.  But are you saying that won't work?
>
>
> On 11/4/2019 10:22 PM, Đức Trần Tiến wrote:
> > Hi Jerry,
> >
> > You want to build James without IDE, you need to have maven(recommended
> > version > 3.6.1) and Java 11  installed on your computer.
> > Then just need to cd to James repository and `mvn clean install
> -DskipTests
> > -Djib.skip`
> >
> > Remember the parameter -DskipTests is necessary, it helps you ignore the
> > tests goal which I think the reason of your crashed builds.
> >
> > Sorry I have no way to start a complete James server for manual testing
> > purpose by the IDEA.
> > There is an alternative way is starting James by docker-compose, then
> > connect a debug session by IDEA to James server running inside docker.
> > You should be able to put debug points as usual
> >
> > Duc,
> >
> > Vào Th 3, 5 thg 11, 2019 vào lúc 08:33 Jerry Malcolm <
> > techst...@malcolms.com> đã viết:
> >
> >> Thanks.
> >>
> >> I did find the 'install' goal and ran it.  But it failed with a java
> >> compile error and several errors about "OS is Windows with a *nix -
> >> style path" something....  I had to put the IDEA build on hold for a few
> >> days.  I'll circle back to it and see if I can get more info on the
> errors.
> >>
> >> I do have maven also installed directly on my desktop.  What do you mean
> >> by 'flexibility'?  I tried doing a command line build on the same git
> >> extraction, and it crashed and burned horribly.  I'll try it again and
> >> see if I can figure out what the problems were.
> >>
> >> I'm not as concerned specifically with building in IDEA.  I really need
> >> the ability to RUN James in IDEA where I can stop with breakpoints and
> >> single-step and browse variables, etc.  It just about killed me trying
> >> to figure out imap flows on that iPhone issue solely by adding log
> >> statements and recompiling.  I miss my breakpoints.  What is the process
> >> for building outside of IDEA but still running James in IDEA?
> >>
> >>
> >> On 11/4/2019 1:31 AM, Tellier Benoit wrote:
> >>> Hi Jerry,
> >>>
> >>> I suspect https://github.com/linagora/james-project/pull/2821 to be
> >>> directly related to your snapshot issue. Does it help?
> >>>
> >>> Regarding "install" goal, open the maven panel, select the module, you
> >>> will find it in life-cycle section.
> >>>
> >>> However I would strongly encourage you install maven in your
> development
> >>> environment and trigger it via the command line. You will gain more
> >>> flexibility.
> >>>
> >>> Regards,
> >>>
> >>> Benoit
> >>>
> >>> On 01/11/2019 11:35, Jerry Malcolm wrote:
> >>>> Glad to help.  Any idea how to fix: cannot resolve plugin
> >>>> org.apache.james:mailetdocs-maven-plugin:3.5.0-SNAPSHOT and the
> missing
> >>>> "install" goal on the maven panel?
> >>>>
> >>>> On 10/31/2019 11:29 PM, Tellier Benoit wrote:
> >>>>> Hi Jerry!
> >>>>>
> >>>>> Thanks for the precise feedback.
> >>>>>
> >>>>> I updated the pull request accordingly.
> >>>>>
> >>>>> Regards,
> >>>>>
> >>>>> Benoit
> >>>>>
> >>>>> On 01/11/2019 11:08, Jerry Malcolm wrote:
> >>>>>> Tellier,
> >>>>>>
> >>>>>> That's good news.  I'm going to be your first tester.  Is there a
> test
> >>>>>> site that has all of the latest changes to the doc in html format
> with
> >>>>>> all the latest images?
> >>>>>>
> >>>>>> A few things I've hit so far:
> >>>>>>
> >>>>>> -- "In the pop-up window, press the*+*button to add the James code
> >>>>>> repository in the next pop-up." -- There is no "+" in the git
> >> repository
> >>>>>> selection popup.  Looks like a holdover from the subversion
> >>>>>> instructions.
> >>>>>>
> >>>>>> -- The image: intellij-idea/intellij-james-project.png doesn't
> appear
> >> to
> >>>>>> be part of the changed file list.  I looked at the old version on
> the
> >>>>>> web site.  I see a few similarities.  But my workspace doesn't
> really
> >>>>>> look much like that image.  The project tree is significantly
> >> different
> >>>>>> in the image than what shows up today.
> >>>>>>
> >>>>>> -- As soon as IDEA imported the project, I got 4 errors that all say
> >>>>>> "Cannot resolve plugin
> >>>>>> org.apache.james:mailetdocs-maven-plugin:3.5.0-SNAPSHOT".  Is that
> >>>>>> something that should have come down from git, or is it something I
> >> need
> >>>>>> to install additionally?
> >>>>>>
> >>>>>> -- "To build the project, you must open the*Maven Projects*panel.
> Then
> >>>>>> double click on the install goal to run this goal.' There is a maven
> >>>>>> section in the upper right of my workspace.  I assume that is the
> >> maven
> >>>>>> "projects" panel.  But I can't find an 'install' goal anywhere to
> >> click.
> >>>>>> -- "Note that tests can be long and can be skept by toggling/skip
> >> test"
> >>>>>> -- /spelling error: "skept" should be "skipped".  Also I finally
> found
> >>>>>> the 'skip test' button.  But might want to say it's on the control
> bar
> >>>>>> on the maven panel.
> >>>>>>
> >>>>>> -- "That's it. Run or Debug James in Eclipse (right-click on the
> Main
> >>>>>> class) and Have Fun!." -- "Eclipse" should be IntelliJ.   But more
> >>>>>> importantly, finding the "Main" class is quite a task.  It's buried
> >>>>>> pretty deep in one of a hundred sub-projects on the left.  Really
> need
> >>>>>> some navigation/path info for how to find the Main class.
> >>>>>>
> >>>>>> Tellier, sorry to bring all of these things up. But at this point
> I'm
> >> a
> >>>>>> complete rookie at IntelliJ, and at least for now, that makes me a
> >> good
> >>>>>> person to test the instructions.
> >>>>>>
> >>>>>> Thanks.
> >>>>>>
> >>>>>> Jerry
> >>>>>>
> >>>>>> On 10/31/2019 9:32 PM, Tellier Benoit wrote:
> >>>>>>> Hi Jerry,
> >>>>>>>
> >>>>>>> I'm working on a refresh of build instructions for contributors
> [1].
> >>>>>>>
> >>>>>>> IntelliJ (community version) is working great.
> >>>>>>>
> >>>>>>> [1] https://github.com/linagora/james-project/pull/2792
> >>>>>>>
> >>>>>>> Regards,
> >>>>>>>
> >>>>>>> Benoit
> >>>>>>>
> >>>>>>> On 01/11/2019 03:50, Jerry Malcolm wrote:
> >>>>>>>> What is the recommended development environment (IDE) for JAMES
> >>>>>>>> development?  I am an Eclipse user.  I finally got JAMES to build
> in
> >>>>>>>> Eclipse.  But I can't get it to run there.  So I've been relegated
> >> to
> >>>>>>>> adding log statements, build, publish, look at logs, repeat.   As
> I
> >> am
> >>>>>>>> getting deeper and deeper into understanding James and debugging
> >>>>>>>> issues
> >>>>>>>> that I find, I'm looking to do more contributing to JAMES.  But
> I'm
> >>>>>>>> REALLY missing breakpoints and interactive debug.
> >>>>>>>>
> >>>>>>>> I'm not married to eclipse.  If there's a different IDE that
> >> everyone
> >>>>>>>> uses, I can download it and move my development to it. But I don't
> >>>>>>>> want
> >>>>>>>> to spend time moving to another unproven environment.  I think
> >> someone
> >>>>>>>> mentioned IntelliJ.  I've never used it.  But I'm willing to
> >>>>>>>> learn.   So
> >>>>>>>> I just needs a go or no-go on IntelliJ or something else from
> >> someone
> >>>>>>>> that's using it.  And, if the answer is IntelliJ, can I use the
> free
> >>>>>>>> community edition, or do I need to get the Ultimate edition?
> >>>>>>>>
> >>>>>>>> So... what IDE is everybody using for development?
> >>>>>>>>
> >>>>>>>> Thanks.
> >>>>>>>>
> >>>>>>>> Jerry
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >> ---------------------------------------------------------------------
> >>>>>>>> To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org
> >>>>>>>> For additional commands, e-mail: server-dev-h...@james.apache.org
> >>>>>>>>
> >>>>>>>
> ---------------------------------------------------------------------
> >>>>>>> To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org
> >>>>>>> For additional commands, e-mail: server-dev-h...@james.apache.org
> >>>>>>>
> >>>>> ---------------------------------------------------------------------
> >>>>> To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org
> >>>>> For additional commands, e-mail: server-dev-h...@james.apache.org
> >>>>>
> >>>> ---------------------------------------------------------------------
> >>>> To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org
> >>>> For additional commands, e-mail: server-dev-h...@james.apache.org
> >>>>
> >>> ---------------------------------------------------------------------
> >>> To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org
> >>> For additional commands, e-mail: server-dev-h...@james.apache.org
> >>>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org
> >> For additional commands, e-mail: server-dev-h...@james.apache.org
> >>
> >>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org
> For additional commands, e-mail: server-dev-h...@james.apache.org
>
>

Reply via email to