Greetings,

To fully understand what the Maven XSD is telling you, I fear that you'll have 
to read some 
www.w3.org documentation.

The wikipedia page is useful (since this isn't a political issue):  
https://en.wikipedia.org/wiki/
XML_Schema_(W3C)[1]  It provides links to the various XML Schema Definition 
recommendation documents.

Bear in mind that "recommendation" by now means "do it this way".  (There are 
alternate 
ways to describe what an XML document should or should not contain; maven 
doesn't use 
them.  The wikipedia link has references to those alternates, but that 
shouldn't concern you 
too much.)


While you'll find those W3C documents rather dense and annoying, I'll point out 
that an 
XML-aware editor will use that information to tell you what stuff you can 
insert into a 
pom.xml file at any given location.  (Well, most of the time; I've been using 
gradle more than 
maven when I can, but I know there are some things that the XSD cannot express. 
 OTOH, 
most maven plugin writers don't do stupid things to make the XSD ambiguous.)

-- 
Mark A. Flacy
/mfl...@verizon.net/

On Saturday, June 22, 2024 4:12:16 PM CDT slipbits wrote:
> Sorry about the late response.
> 
> Thank you all. I looked at the reference site and, sigh, to download the
> book I need to provide my email. I don't do this. Not because I object
> but I object to the endlessly following emails trying to sell me
> something, or tell me something, or encouraging me to do something. So,
> no book.
> 
> But I did find something, "Introducing Maven". It's old but it addresses
> topics in a way that I personally find satisfying. For one, it provides
> a consistent overview of topics, going into enough detail to illustrate
> a single point, and explaining that point, before going on. And to the
> point I have read, there are no errors; and all terms and tags are
> defined. I would add that in that long time past I was told that in
> order to provide a good presentation you should "say what you're going
> to say, say it, tell what you have said", and to this "Introducing
> Maven" does.
> 
> This is a significant departure from the Apache Maven collection in
> which none of the tutorial or referenced material has an overview but
> does have any one or all of errors, incomplete information on a topic,
> use of unexplained tags, endless references to material which suffers
> from the above. This condition exists in every single one of the
> tutorial and non-tutorial material I have looked at.
> 
> I have also looked at other book(s). Of those I have looked at none have
> an overview of the material to be covered.
> 
> I am endlessly grateful for your help.
> 
> thanks
> art
> 
> On 6/2/2024 11:19 PM, Davide Grandi wrote:
> > Right.
> > 
> > 1) get an example
> > 2) mvn clean
> > 3) mvn clean compile
> > 3) mvn clean compile package
> > 4) mvn clean compile package install
> > 
> > you can keep only "clean" and "the last command on he row", the
> > intermediate ones are implied.
> > 
> > welcome on maven !
> > 
> >     Davide
> > 
> >> That's not helpful, because it's about syntax details, google "maven
> >> beginners" or "maven tutorial" and choose one that makes sense.
> >> 
> >> This one is not bad: https://www.baeldung.com/maven
> >> 
> >> (my first hits were on the apache site but these seemed too complex,
> >> despite that I've been using maven for years)
> >> 
> >> Tilman
> >> 
> >> On 03.06.2024 04:11, slipbits wrote:
> >>> I'm just getting into Maven and I'm trying to find a good book that
> >>> describes the POM and Maven. I'm just going through the Apache Maven
> >>> 
> >>> Project POM reference and things like:
> >>>     According to the POM 4.0.0 XSD, the |build| element is
> >>>     conceptually divided into two parts: there is a |BaseBuild| type
> >>>     which contains the set of elements common to both |build|
> >>>     elements (the top-level build element under |project| and the
> >>>     build element under |profiles|, covered below); and there is the
> >>>     
> >>>     |Build| type, which contains the |BaseBuild| set as well as more
> >>>     
> >>>     elements for the top level definition. Let us begin with an
> >>>     analysis of the common elements between the two.
> >>> 
> >>> are a real puzzler.
> >>> 
> >>> If this isn't the correct place to ask then please direct me to the
> >>> correct source.
> >>> 
> >>> thanks



--------
[1] https://en.wikipedia.org/wiki/XML_Schema_(W3C)

Reply via email to