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


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

Re: need help with maven

Path csiph.com!eternal-september.org!feeder.eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From Daniele Futtorovic <da.futt.news@laposte-dot-net.invalid>
Newsgroups comp.lang.java.programmer
Subject Re: need help with maven
Date Tue, 26 Nov 2019 18:46:42 +0100
Organization A noiseless patient Spider
Lines 25
Message-ID <qrjoe3$926$1@dont-email.me> (permalink)
References <42591719-d10c-40fd-9a62-1aa81a8fb696@googlegroups.com>
Mime-Version 1.0
Content-Type text/plain; charset=utf-8
Content-Transfer-Encoding 7bit
Injection-Date Tue, 26 Nov 2019 17:46:43 -0000 (UTC)
Injection-Info reader02.eternal-september.org; posting-host="c2188f5024d439c61e571774fa3f4a1c"; logging-data="9286"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/oMp/8W12mb/MM6u5BSbAO"
User-Agent Mozilla/5.0 (Windows NT 6.1; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.9.1
Cancel-Lock sha1:J9XOzaeld84fFk/QBYbas8Vlmuo=
In-Reply-To <42591719-d10c-40fd-9a62-1aa81a8fb696@googlegroups.com>
X-Antivirus-Status Clean
Content-Language en-US
X-Antivirus AVG (VPS 191125-0, 11/25/2019), Outbound message
Xref csiph.com comp.lang.java.programmer:39186

Show key headers only | 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