Taub, Jonathan wrote:
> I’ve been using Maven for a year now and am pretty happy with it.
> It has cons and pros.
> 
> Recently, I decided to introduce some changes into the build process and I 
> was unable to figure out the following:
> * I want to have the final artifact name (.jar, .war, etc) WITHOUT the 
> version number. The application/libraries are not meant to be a third party 
> and version numbers (XXX-snapshot, XXX-1.5) are not needed and I want to have 
> the same name each time regardless of the version. How do I accomplish this?
> * Is it possible to instruct the build process NOT to put any Maven related 
> files inside artifacts?

Yes, have a look at the docs for the Maven Archiver shared component.
This component is used by several plugins, including the Jar Plugin.

http://maven.apache.org/shared/maven-archiver/#class_archive

Adding this configuration should do the trick:

<archive>
  <addMavenDescriptor>false</addMavenDescriptor>
</archive>


> * How do I copy a file in Maven AFTER the build completed SUCCESSFULLY. I was 
> able to do a simple file copy but it ended up copying the file regardless of 
> whether the build was successful or not.
> * Is it possible to have an EXTERNAL properties file? How?


-- 
Dennis Lundberg

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to