> -----Message d'origine----- > De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] De la part de Stuart > McCulloch > Envoyé : jeudi 29 mai 2008 21:17 > À : users@felix.apache.org > Objet : Re: obr for felix bundles? > > 2008/5/30 Clement Escoffier <[EMAIL PROTECTED]>: > > > Hi, > > > > I finally merge the goal that I created with the deploy AND the > deploy-file > > goals. In fact, I add to merge with both because the deploy-file goal > does > > not support multi-module projects (and it's normal, just I don't > expect to > > have this issue yesterday). > > > > Finally, the resulting plug-in is very similar to the actual one: > > > > The deploy goal can take an prefix attribute used to compute absolute > URLs. > > This allows deploying an OBR file with pointing on bundles located on > > another server (the configured deployment repository and the > > altDeploymentRepository attribute are generally used to deploy the > OBR > > file, > > but I add an url attribute to differentiate the two potential > locations). > > If > > the prefix is not specified, the process is executed normally and the > url > > attribute is ignored. > > > > The deploy-file goal checks if a project is attached to the build. If > it > > is, > > it uses this project. This allows simplifying the usage (no more need > to > > specify the pom file and the obr.xml file). The url attribute (giving > > information to upload the repository file) supports the maven syntax > too. > > Absolute URLs are computed if the bundleURL (that can be an absolute > url) > > attribute and file attribute are not specified. In this case, the > prefix > > attribute is used to computes the URL. This attribute has a default > value > > pointing on repo1.maven.org/maven2. > > > > The repository file http://oscar-osgi.sf.net/obr-repo/releases.xml > was > > generated with the plugin. > > > > I commit the modifications in my sandbox : > > > > https://svn.apache.org/repos/asf/felix/sandbox/clement/obr- > utils/maven-bundl > > e-plugin<https://svn.apache.org/repos/asf/felix/sandbox/clement/obr- > utils/maven-bundle-plugin> > > . > > > > WDYT? > > > > the patch looks good in general, but there are a couple of > minor fixes needed (e.g. when you don't have a pom.xml > Maven actually provides its own super-pom, so the check > for a local project in deploy-file needs tweaking) > It goes past my weak knowledge about Maven :-)
> could you create a JIRA issue for this work, and attach your > current patch, so we can track this new feature - thanks! > I open the following issue, and attach the patch: https://issues.apache.org/jira/browse/FELIX-580 Clement > > > > > > > -----Message d'origine----- > > > De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] De la part de > Stuart > > > McCulloch > > > Envoyé : mercredi 28 mai 2008 09:10 > > > À : users@felix.apache.org > > > Objet : Re: obr for felix bundles? > > > > > > On 28/05/2008, Clement Escoffier <[EMAIL PROTECTED]> > wrote: > > > > > > > > > -----Message d'origine----- > > > > > De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] De la part de > > > Stuart > > > > > McCulloch > > > > > Envoyé : mercredi 28 mai 2008 08:15 > > > > > > > > > À : users@felix.apache.org > > > > > Objet : Re: obr for felix bundles? > > > > > > > > > > > > > > 2008/5/28 Felix Meschberger <[EMAIL PROTECTED]>: > > > > > > > > > > > Hi Richard, > > > > > > > > > > > > Am Dienstag, den 27.05.2008, 21:55 -0400 schrieb Richard S. > Hall: > > > > > > > Felix, > > > > > > > > > > > > > > I don't have a problem with this approach (or any approach > for > > > that > > > > > > matter). > > > > > > > > > > > > > > My only request is that we devise a method that is easy for > us > > > to > > > > > update > > > > > > > any time we have a new release. > > > > > > > > > > > > That would be mine, too. Clement seems to be working on a > maven > > > > > plugin > > > > > > to update repository.xml files, with entries of deployed > > > artifacts > > > > > with > > > > > > absolute URIs such that the repository.xml need not be > located at > > > the > > > > > > maven repository root. > > > > > > > > > > > > > > > > note that this is already possible, just use the bundle:deploy- > file > > > > > goal... > > > > > > > > > > > > > > > http://felix.apache.org/site/apache-felix-maven-bundle-plugin- > > > > > bnd.html#ApacheFelixMavenBundlePlugin(BND)-bundle%3Adeployfile > > > > > > > > > > you can set the bundle URL separately from the repository > location. > > > > > > > > > > > > I agree, the goal that I'm developing is very close of the > deploy- > > > file > > > > goal. > > > > In fact it's a mix between the deploy and the deploy-file goals. > > > Instead of > > > > giving the absolute bundle URL (required in the deploy-file if > you > > > want > > > > absolute URL), the goal computes the URL from a given prefix > > > > (http://repo1.maven.org or can be specified by the user) and from > the > > > > artifact. You don't have to specify the pom file to use, as it > uses > > > the > > > > project pom file. The repository file access is given by > following > > > the > > > > "maven way" (name::default::url). > > > > > > > > In fact, it's just a specific kind of deploy-file goal. Right > now, > > > it's a > > > > separate goal, but it is easily "mergeable" with the deploy-file > > > goal. > > > > > > > > > sounds like a useful addition, if it reduces configuration :) > > > > > > Clement > > > > > > > > > > -- > > > Cheers, Stuart > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > -- > Cheers, Stuart --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]