You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by bj...@accenture.com on 2007/02/09 11:41:55 UTC

Remove the version number from the final jar

Hi

First of all, I know this isn't 'very good', but we really need this.  When we run mvn install, we want to have a jar in the repository with no version attached to the filename.  finalName only influences the naming of the jar in the target-folder.  I've looked around on the net, but haven't found a solution yet.  The reason why we want to do this, is we want to reference the jar-file in our web.xml for a tld.  Otherwise we have to change the web.xml every time we have a new version (and it's not very likely that version will increment in the future).  Is there a way to configure the jar-plugin or any other thing?

tia



This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information.  If you have received it in error, please notify the sender immediately and delete the original.  Any other use of the email by you is prohibited.

Re: Remove the version number from the final jar

Posted by Wendy Smoak <ws...@gmail.com>.
On 2/9/07, bjorn.de.bakker@accenture.com <bj...@accenture.com> wrote:

> First of all, I know this isn't 'very good', but we really need this.  When we run mvn install, we want to have a jar in the repository with no version attached to the filename.  finalName only influences the naming of the jar in the target-folder.  I've looked around on the net, but haven't found a solution yet.  The reason why we want to do this, is we want to reference the jar-file in our web.xml for a tld.  Otherwise we have to change the web.xml every time we have a new version (and it's not very likely that version will increment in the future).  Is there a way to configure the jar-plugin or any other thing?

Can you give an example of what you have in web.xml?  I don't see why
you'd need the jar file name in the <taglib> element.

In fact, unless you're working with Servlet 2.2/JSP 1.1, you typically
don't need <taglib> elements at all.  The container will discover tlds
contained in jar files, all you need to do us use the correct uri.

I doubt you can change the filename in the repository, but you can get
Maven to filter properties into web.xml so things match.

Or try renaming the jar after it lands in
target/webappname/WEB-INF/lib, but before it gets packaged.

-- 
Wendy

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Remove the version number from the final jar

Posted by Graham Leggett <mi...@sharp.fm>.
On Fri, February 9, 2007 12:41 pm, bjorn.de.bakker@accenture.com wrote:

> First of all, I know this isn't 'very good', but we really need this.
> When we run mvn install, we want to have a jar in the repository with no
> version attached to the filename.  finalName only influences the naming of
> the jar in the target-folder.  I've looked around on the net, but haven't
> found a solution yet.  The reason why we want to do this, is we want to
> reference the jar-file in our web.xml for a tld.  Otherwise we have to
> change the web.xml every time we have a new version (and it's not very
> likely that version will increment in the future).

If you are not very likely to have a new version in the future, surely
naming the jar + the version in the web.xml would work for you?

As you say, stripping the version isn't very good indeed.

Regards,
Graham
--



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Remove the version number from the final jar

Posted by Stephane Nicoll <st...@gmail.com>.
On 2/9/07, bjorn.de.bakker@accenture.com <bj...@accenture.com> wrote:
> Hi
>
> First of all, I know this isn't 'very good', but we really need this.  When we run mvn install, we want to have a jar in the repository with no version attached to the filename.  finalName only influences the naming of the jar in the target-folder.  I've looked around on the net, but haven't found a solution yet.  The reason why we want to do this, is we want to reference the jar-file in our web.xml for a tld.  Otherwise we have to change the web.xml every time we have a new version (and it's not very likely that version will increment in the future).  Is there a way to configure the jar-plugin or any other thing?
>

Why don't you add a token in your web.xml and you filter it with the
version of your dependencies. I know we've been working on a Mojo that
would allow to expose those system properties. If not, it's very easy
to build one.

HTH,
Stéphane

> tia
>
>
>
> This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information.  If you have received it in error, please notify the sender immediately and delete the original.  Any other use of the email by you is prohibited.
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org