Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #39186

Re: need help with maven

From Daniele Futtorovic <da.futt.news@laposte-dot-net.invalid>
Newsgroups comp.lang.java.programmer
Subject Re: need help with maven
Date 2019-11-26 18:46 +0100
Organization A noiseless patient Spider
Message-ID <qrjoe3$926$1@dont-email.me> (permalink)
References <42591719-d10c-40fd-9a62-1aa81a8fb696@googlegroups.com>

Show all headers | View raw


On 2019-11-25 20:17, Eric Douglas wrote:
> I inherited a maven project and I'm having trouble understanding how it works.
> I run the build and it creates a runnable jar with some values in the manifest such as 'Built-By' and 'Start-Class'.  I open the pom.xml and I don't see these values.
> I'm not sure if this is a maven thing, a spring boot thing, or a little of both?  While the pom.xml file has no reference to a main class or start class, Eclipse opens it with 5 tabs.  The tab labeled 'Effective POM' has this:
> <mainClass>${start-class}</mainClass>
> So it's using some sort of variables but where does it go from there?  I don't see where variables are defined or assigned.
> 

It's not surprising you don't see any variables, for if you did, it
wouldn't show up as '${start-class}', but would have been resolved in
the effective POM.

If the variable is in the POM, it's a Maven thing (or a CI server thing
-- but not a spring-boot thing).

Now as to what the original intent was, it's hard to tell. It may be
that it was passed as an argument in the build environment - although
considering the name of the variable, that seems somewhat unlikely,
albeit not impossible.

What's the context of that variable (the lines around it) and what's
your problem with it?

-- 
DF.

Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

need help with maven Eric Douglas <e.d.programmer@gmail.com> - 2019-11-25 11:17 -0800
  Re: need help with maven Wayne <wayne@nospam.invalid> - 2019-11-26 02:47 -0500
    Re: need help with maven Eric Douglas <e.d.programmer@gmail.com> - 2019-11-26 05:19 -0800
  Re: need help with maven Joerg Meier <joergmmeier@arcor.de> - 2019-11-26 11:41 +0100
  Re: need help with maven Daniele Futtorovic <da.futt.news@laposte-dot-net.invalid> - 2019-11-26 18:46 +0100
    Re: need help with maven Eric Douglas <e.d.programmer@gmail.com> - 2019-11-26 11:05 -0800

csiph-web