#10422: Move to maven for java builds
-----------------------------+------------------------------
 Reporter:  pierre.labastie  |       Owner:  pierre.labastie
     Type:  enhancement      |      Status:  assigned
 Priority:  normal           |   Milestone:  8.3
Component:  BOOK             |     Version:  SVN
 Severity:  normal           |  Resolution:
 Keywords:                   |
-----------------------------+------------------------------

Comment (by pierre.labastie):

 Two days later: did some progress, but open source documentation is just a
 plague...
 - I was wrong in comment:4. Downloaded files go to a local repository (by
 default $HOME/.m2/repository). If I erase $HOME/.m2, downloads occur
 again, whatever I do. Note that there is nothing wrong with that: maven
 depends on a lot of other projects. There are 1309 files downloaded,
 mainly jars...
 - Maven builder works with "phases". When you ask for a phase (say
 "package", which is roughly equivalent to "install" in other build
 system), all the preceding phases (validate, compile, test, ...) are
 played again. There may be configuration switches to skip some of those...
 Have to read more doc :-(. But it means that if you first do the
 ''compile'' phase, and then as root, the ''package'' phase, all the
 preceding phases will be replayed as root.
 - The default local repository can be changed on the command line, but
 cannot be put into the build directory, unless you skip the validation
 phase with '''-Drat.ignoreErrors=true'''.
 - same for the binary package, which cannot be extracted in tree for the
 same reason.

 So we need two auxiliary directories (the local repo and the maven
 binary), which cannot be put into the build tree. So where to put them?
 ''/tmp'', ''..'', user home? In any case, they have to be removed at the
 end of the build. I'd be inclined to use ..

--
Ticket URL: <http://wiki.linuxfromscratch.org/blfs/ticket/10422#comment:5>
BLFS Trac <http://wiki.linuxfromscratch.org/blfs>
Beyond Linux From Scratch
-- 
http://lists.linuxfromscratch.org/listinfo/blfs-book
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to