| 
"I don't believe you can configure Tycho to pull in jars from a repository into your lib folder at build time..."  
 
 This might be done with plain maven: use the dependency maven plugin (with the copy goal) to copy the jars from the repository to the libs folder (bind it to the generate-resources phase) 
 
  > To: tycho-user@xxxxxxxxxxx > From: jonathan.x.buck@xxxxxxxx > Date: Fri, 13 May 2011 12:12:06 +0100 > Subject: Re: [tycho-user] Bundles with internal jars >  > Ok so as long as your bundle has a Libs folder containing the jars you want > to include, your build.properties for that bundle is set to include the > Libs folder and your manifest is configured correctly to expose those jars > on the classpath (i.e runtime tab in manifest editor) then Tycho will build > the bundle correctly... >  > I don't believe you can configure Tycho to pull in jars from a repository > into your lib folder at build time... >  > Regards, > Jon >  >  >                                                                                                                                      >   From:       Joerg Erdmenger <joerge@xxxxxxxxx>                                                                                     >                                                                                                                                      >   To:         Tycho user list <tycho-user@xxxxxxxxxxx>                                                                               >                                                                                                                                      >   Date:       13/05/2011 12:04                                                                                                       >                                                                                                                                      >   Subject:    Re: [tycho-user] Bundles with internal jars                                                                            >                                                                                                                                      >   Sent by:    tycho-user-bounces@xxxxxxxxxxx                                                                                         >                                                                                                                                      >  >  >  >  >  > Maybe I wasn't clear enough: what I'd like to achieve is the following: >  > I have a bundle project which -let's say - has a libs folder and adds those > libs to its Bundle-ClassPath. Now ideally I'd like to have these libs > managed by maven and have them packaged in the final build artefact. >  > Jörg >  > 2011/5/13 <jonathan.x.buck@xxxxxxxx> >   In my experience you don't need to do anything specific or special to >   achieve this... Tycho simply uses the eclipse files such as the Manifest >   and build.properties to generate the artifacts so as long as those files >   are set-up correctly and you have a pom which specifies the packaging >   type >   as 'eclipse-plugin' it should generate the plugin correctly... >  >   Regards >   Jon >  >  >  >  >  >    From:       Davy Meers <davymeers@xxxxxxxxxxx> >  >    To:         <tycho-user@xxxxxxxxxxx> >  >    Date:       13/05/2011 09:22 >  >    Subject:    Re: [tycho-user] Bundles with internal jars >  >    Sent by:    tycho-user-bounces@xxxxxxxxxxx >  >  >  >  >  >  >   Hello, >  >   I do not have a lot of  maven and tycho experience either, but the >   following could be one way to achieve it: >  >   You can use the goal "copy" of the dependency maven plugin ( >   http://maven.apache.org/plugins/maven-dependency-plugin/copy-mojo.html) >   to >   copy an artifact from the repository to a defined location. >   You probably need to bind that plugin to the generate-resources phase and >   reference the location where the artifacts are copied from within your >   build.properties. >  >   Note: i do not know if eclipse / m2eclipse is able to handle this >   situation. >  >   Regards, >   Davy >  >  >  >   Date: Fri, 13 May 2011 09:54:49 +0200 >   From: joerge@xxxxxxxxx >   To: tycho-user@xxxxxxxxxxx >   Subject: [tycho-user] Bundles with internal jars >  >   I'm new to tycho, though I have some maven experience. In my company we >   are >   currently evaluating moving our builds to tycho. Now we have some bundles >   that for various reasons carry some jars within them, rather then using >   their classes via OSGI dependencies. >   Now here is the question: would it be possible to dependeny resolve these >   jars via maven in the build alongside using tycho to drive the main OSGI >   bundle build? >   I've looked through the samples and searched the mailing list but >   couldn't >   find any pointers to any such scenario. I'd be more than happy to get a >   quick indication whether something like this is at all possible or >   whether >   something like this is deemed so silly as to avoid it under all >   circumstances. >   Thanks in advance >  >   Jörg >  >   _______________________________________________ tycho-user mailing list >   tycho-user@xxxxxxxxxxx >   https://dev.eclipse.org/mailman/listinfo/tycho-user >   _______________________________________________ >   tycho-user mailing list >   tycho-user@xxxxxxxxxxx >   https://dev.eclipse.org/mailman/listinfo/tycho-user >  >  >  >   ----------------------------------------- >   SAVE PAPER - THINK BEFORE YOU PRINT! >  >   This E-mail is confidential. >  >   It may also be legally privileged. If you are not the addressee you >   may not copy, forward, disclose or use any part of it. If you have >   received this message in error, please delete it and all copies >   from your system and notify the sender immediately by return >   E-mail. >  >   Internet communications cannot be guaranteed to be timely secure, >   error or virus-free. The sender does not accept liability for any >   errors or omissions. >   _______________________________________________ >   tycho-user mailing list >   tycho-user@xxxxxxxxxxx >   https://dev.eclipse.org/mailman/listinfo/tycho-user > _______________________________________________ > tycho-user mailing list > tycho-user@xxxxxxxxxxx > https://dev.eclipse.org/mailman/listinfo/tycho-user >  >  >  > ----------------------------------------- > SAVE PAPER - THINK BEFORE YOU PRINT! >  > This E-mail is confidential.                       >                                                    > It may also be legally privileged. If you are not the addressee you > may not copy, forward, disclose or use any part of it. If you have > received this message in error, please delete it and all copies > from your system and notify the sender immediately by return > E-mail.                      >                                                    > Internet communications cannot be guaranteed to be timely secure, > error or virus-free. The sender does not accept liability for any > errors or omissions. > _______________________________________________ > tycho-user mailing list > tycho-user@xxxxxxxxxxx > https://dev.eclipse.org/mailman/listinfo/tycho-user
   		 	   		  
 |