Getting latest jar file from maven repository into a library wrapper module

View: New views
2 Messages — Rating Filter:   Alert me  

Getting latest jar file from maven repository into a library wrapper module

by Sreeni :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi ,

  In netbeans module I have a requirement to get latest jar file from a maven repository. Currently
 I am defining library wrapper module for that jar file (static).  I always want to get the latest
 jar from the maven repository. With the current setup whenever the jar file in maven repository is
 updated I have to manually update the library wrapper module.

 Can I use ant task "Get" in my module build.xml to get the latest jar file?.
   Would this voilate netbeans module build system.


Thanks
Sree


Re: Getting latest jar file from maven repository into a library wrapper module

by Jesse Glick :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Sreeni wrote:
> In netbeans module I have a requirement to get latest jar file from a
> maven repository. [...]
>
> Can I use ant task "Get" in my module build.xml to get the latest jar
> file?

Should work. Place the downloaded JAR in ${cluster}/modules/ext. (BTW it
may be easier to use Ivy to retrieve the dependency.) Don't forget to
define extra.module.files in this case so that the NBM fileset is correct.

LightInTheBox - Buy quality products at wholesale price!