Sorry, let me rephrase it all a bit (keep in mind that I am not saying it works, I am currently unable to test anything in Maven!):
You need to configure the dependency-plugin to extract the ZIP and only AFTER that, try to unpack the RAR -- in a separate step. I believe there are a couple of phases that run WITHOUT Maven checking for the dependencies and crying about a missing one. If I can get around to playing with my laptop a bit, I might test this out and report back to you. In the mean-time, feel free to try this. One question that just popped into my mind: do you have to be in a certain phase when extracting or is any phase right for you? Roland On 11-05-11 21:46, EJ Ciramella wrote: > Hmmm - kinda. > > Again, I'd like to unpack a rar that is nested within a zip. > > The dependency unpack bits even if it's a system scoped dependency will try > and resolve that and it won't be there. > > :-/ > > I think I just need to "shell out" to ant... > > -----Original Message----- > From: Asmann, Roland [mailto:[email protected]] > Sent: Wednesday, May 11, 2011 12:04 PM > To: Maven Users List > Subject: Re: Nested artifacts > > Not 100% sure about this one, but you could try it with the > dependency-plugin [1]. I believe it does not allow system-dependencies > in its configuration, but judging from the sentence > > "The artifact version is optional. If not set, the plugin will attempt > to resolve it from the project dependencies and then the > dependencyManagement section." [2] > > I think that if you add that dependency to your > dependency(-management)-list with the correct path, it should work. > > Roland > > > [1] http://maven.apache.org/plugins/maven-dependency-plugin/unpack-mojo.html > [2] > http://maven.apache.org/plugins/maven-dependency-plugin/usage.html#The_dependency:unpack_mojo > > > > On 20:59, EJ Ciramella wrote: >> Is there a simple way to unpack a dependency then unpack an artifact that >> lives inside that dependency? >> >> We have several third party utilities stored in Nexus and referenced as >> dependencies, but I'd like to unpack a rar that is nested within a zip. >> >> Is there a maven 2 way or do I just rely on an ant task? >> >> Thanks in advance! >> >> ________________________________ >> CONFIDENTIALITY NOTICE: This e-mail and the information transmitted within >> including any attachments is only for the recipient(s) to which it is >> intended and may contain confidential and/or privileged material. Any >> review, retransmission, dissemination or other use of; or taking of any >> action in reliance upon this information by persons or entities other than >> the intended recipient is prohibited. If you received this in error, please >> send the e-mail back by replying to the sender and permanently delete the >> entire message and its attachments from all computers and network systems >> involved in its receipt. > > -- > Roland Asmann > Senior Software Engineer > > adesso Austria GmbH > Floridotower 26. Stock T +43 1 2198790-27 > Floridsdorfer Hauptstr. 1 F +43 1 2198790-927 > A-1210 Wien M +43 664 88657566 > E [email protected] > W www.adesso.at > > ------------------------------------------------------------- > >>> business. people. technology.<<< > ------------------------------------------------------------- > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > > CONFIDENTIALITY NOTICE: This e-mail and the information transmitted within > including any attachments is only for the recipient(s) to which it is > intended and may contain confidential and/or privileged material. Any review, > retransmission, dissemination or other use of; or taking of any action in > reliance upon this information by persons or entities other than the intended > recipient is prohibited. If you received this in error, please send the > e-mail back by replying to the sender and permanently delete the entire > message and its attachments from all computers and network systems involved > in its receipt. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > -- Roland Asmann Senior Software Engineer adesso Austria GmbH Floridotower 26. Stock T +43 1 2198790-27 Floridsdorfer Hauptstr. 1 F +43 1 2198790-927 A-1210 Wien M +43 664 88657566 E [email protected] W www.adesso.at ------------------------------------------------------------- >>> business. people. technology. <<< ------------------------------------------------------------- --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
