You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Alessandro Di Bella <al...@fuurou.org> on 2007/03/17 15:19:54 UTC

Handling non-jar artifacts

Hi,
I'm new to maven 2 and I'm trying to write a project descriptor for a web 
application.

I have a dependency  on an artifact of type "tgz". The file gets downloaded 
without a problem but I need to unpack it into "target/<app-name>/WEB-INF/" 
before the goal "package".

Googling for an answer i found out that I should use the "interceptors" but I 
can't find any documentation in the maven web site.

I would be very grateful for any help.

Also, how do I resolve a dependency into a variable containing the actual path 
of the file? E.g.:

    <dependency>
      <groupId>org.springframework</groupId>
      <artifactId>spring-context</artifactId>
      <version>2.0.2</version>
    </dependency>

into
 
<home>/.m2/repository/org/springframework/spring-context/2.0.2/spring-context-2.0.2.jar


Thank you.

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


Re: Handling non-jar artifacts

Posted by "Henry S. Isidro" <hi...@exist.com>.
On Saturday, March 17, 2007 22:19, Alessandro Di Bella wrote:
> Hi,
> I'm new to maven 2 and I'm trying to write a project descriptor for a web
> application.
>
> I have a dependency  on an artifact of type "tgz". The file gets downloaded
> without a problem but I need to unpack it into "target/<app-name>/WEB-INF/"
> before the goal "package".
>
> Googling for an answer i found out that I should use the "interceptors" but
> I can't find any documentation in the maven web site.

You could take a look at the mven dependency plugin >> 
http://maven.apache.org/plugins/maven-dependency-plugin/usage.html

This would allow you to unpack your dependency.
>

HTH, 

Henry

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