I'm using Maven 2.2.1 + Nexus 1.4.1 (open source edition), and I have a
system where, for each artifact that gets built and uploaded to Nexus, I
insert a row into a local database with that build's information using the
sql-maven-plugin.

With most of my projects, this works terrifically, because I can use the
maven-assembly-plugin to control the finalName, and leave off the
uniqueVersion. However, with one project in particular, I must include the
uniqueVersion with the filename. 

So now, for every finished build for that particular project, I have to
scroll through its build log, find the uploaded artifact name (which is
usually something like "myprog-1.0-060910.123432.jar"), and manually write a
SQL statement to insert into the local DB.

My question is, how can I access that very final filename with the
uniqueVersion? Is there some built-in variable where I can access that
"myprog-1.0-060910.123432.jar" filename? If not 

${project.build.finalName} doesn't work, because it doesn't have the
uniqueVersion. 

Combining ${project.build.finalName}-${uniqueVersion} doesn't work either --
that results in "myprog-1.0-SNAPSHOT-${uniqueVersion}."

I noticed that the actual final filename of the uploaded artifact seems to
drop the "SNAPSHOT", and just attach the uniqueVersion starting after the
numeric part of the ${version}. So instead of it being
myprog-1.0-SNAPSHOT-timestamp, it becomes myprog-1.0-timestamp.

Any assistance with this would be greatly appreciated. Thanks a lot in
advance!
-- 
View this message in context: 
http://maven.40175.n5.nabble.com/How-can-I-get-the-freshly-uploaded-artifact-filename-with-Maven-tp243527p243527.html
Sent from the Maven - Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to