<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<br>
<div class="moz-cite-prefix">On 7/18/14, 4:48 PM, Cantor, Scott
wrote:<br>
</div>
<blockquote cite="mid:CFEF0009.5255C%25cantor.2@osu.edu" type="cite">
<pre wrap="">
I think some people have, but I've run the code myself in V2 and it seemed
to work. I don't know how or why. It's extremely convoluted, presumably
for the purpose of avoiding having to maintain a version string, but
sometimes manual is the simplest.
</pre>
</blockquote>
<br>
Agreed, see below, I think we already have this for free...<br>
<br>
<blockquote cite="mid:CFEF0009.5255C%25cantor.2@osu.edu" type="cite">
<pre wrap="">
I finally re-tracked it down, the way it works is with a maven-jar-plugin,
it injects the version manifest into the built jar, it's not in the source
tree. So the version is derived from the POM at build-time.
</pre>
</blockquote>
<br>
I've never quite understood how that stuff worked in v3, using the
Java package implementation manifest stuff.<br>
<br>
<blockquote cite="mid:CFEF0009.5255C%25cantor.2@osu.edu" type="cite">
<pre wrap="">
And this doesn't work for V3 right now because the idp-conf POM never
actually builds a jar.</pre>
</blockquote>
<br>
<br>
I have wondered if it would not be simpler to just use the Maven POM
data that it puts in the jar(s), and just pull the version string
out. It's already there, so we get it for free. For example, from
idp-core jar:<br>
<br>
META-INF/maven/net.shibboleth.idp/idp-core/pom.xml<br>
META-INF/maven/net.shibboleth.idp/idp-core/pom.properties<br>
<br>
There's a 'version' property right in the properties file. Would
probably be only a few lines of code to read that in as a Property
resource and pluck that out. Unless I'm missing something.<br>
<br>
<br>
</body>
</html>