Upload Apogy Repo to bintray
Before we move to the EF, we want to distribute the binaries of Apogy using Bintray.
Comments (12)
-
-
reporter The structure we agreed to is the following eclipse.org/apogy/releases/<streamVersion> will include a composite with all the related builds (e.g. 0.5.0 will include 0.5.0, 0.5.1, etc.) Since we are using git-flow, the content of this repo will be coming from master.
For the stuffs coming from dev it will go to eclipse.org/apogy/nightly/
I've made more progress on the pom.xml to get the desired structure. I'll need to do some cleanups and then try on our real repo.
Also it would be great if dev could be in a working state.
-
reporter code pushed to feature-bintray_support
-
reporter mvn verify -Pdeploy-to-bintray-to-bintray
-
reporter <settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 https://maven.apache.org/xsd/settings-1.0.0.xsd"> <localRepository/> <interactiveMode/> <usePluginRegistry/> <offline/> <pluginGroups/> <mirrors/> <proxies/>
<profiles> <profile> <id>deploy-to-bintray</id> <properties> <bintray.user>apogy</bintray.user> <bintray.key>......</bintray.key> </properties> </profile> </profiles> <activeProfiles/> </settings>
-
Bonjour Pascal,
j'en suis à mes premiers pas avec Maven donc il se peut que j'aie omis quelques étapes.
- J'ai entré les informations du compte bintray dans le fichier settings.xml de maven (username et clé) ($HOME/.m2/settings.xml)
- Dans la racine du repository, je fais d'abord un build complet:
mvn clean package -Dtycho.version=0.24.0 -Declipse.version=mars -Declipse.updates.version=4.5
Ensuite, je fais les commandes suivantes:
cd bundles/ca.gc.asc_csa.apogy.repository mvn verify -Pdeploy-to-bintray
et j'ai l'erreur suivante:
[INFO] Scanning for projects... [INFO] Computing target platform for MavenProject: ca.gc.asc_csa.apogy:ca.gc.asc_csa.apogy.repository:0.5.0-SNAPSHOT @ /home/sgemme/symphony/ca.gc.asc_csa.apogy/bundles/ca.gc.asc_csa.apogy.repository/pom.xml [INFO] Fetching p2.index from http://download.eclipse.org/releases/mars/ (0B at 0B/s) [INFO] Adding repository http://download.eclipse.org/releases/mars [INFO] Fetching p2.index from http://download.eclipse.org/technology/epp/packages/mars/ (0B at 0B/s) [INFO] Fetching p2.index from http://download.eclipse.org/releases/mars/201506241002/ (0B at 0B/s) [INFO] Fetching p2.index from http://download.eclipse.org/releases/mars/201510021000/ (0B at 0B/s) [INFO] Fetching p2.index from http://download.eclipse.org/eclipse/updates/4.5/ (0B at 0B/s) [INFO] Adding repository http://download.eclipse.org/eclipse/updates/4.5 [INFO] Fetching p2.index from http://download.eclipse.org/eclipse/updates/4.5/R-4.5-201506032000/ (0B at 0B/s) [INFO] Fetching p2.index from http://download.eclipse.org/eclipse/updates/4.5/R-4.5.1-201509040015/ (0B at 0B/s) [INFO] Adding repository http://download.eclipse.org/technology/nebula/snapshot [INFO] Adding repository ftp://ftp.asc-csa.gc.ca/users/apogy/pub/apogy_ots/repository/latest [INFO] Fetching content.jar from ftp://ftp.asc-csa.gc.ca/users/apogy/pub/apogy_ots/repository/latest/ (0B at 0B/s) [INFO] Resolving dependencies of MavenProject: ca.gc.asc_csa.apogy:ca.gc.asc_csa.apogy.repository:0.5.0-SNAPSHOT @ /home/sgemme/symphony/ca.gc.asc_csa.apogy/bundles/ca.gc.asc_csa.apogy.repository/pom.xml [INFO] {osgi.os=win32, osgi.ws=win32, org.eclipse.update.install.features=true, osgi.arch=x86} [ERROR] Cannot resolve project dependencies: [ERROR] Software being installed: ca.gc.asc_csa.apogy.repository raw:0.5.0.'SNAPSHOT'/format(n[.n=0;[.n=0;[-S]]]):0.5.0-SNAPSHOT [ERROR] Missing requirement: ca.gc.asc_csa.apogy.repository raw:0.5.0.'SNAPSHOT'/format(n[.n=0;[.n=0;[-S]]]):0.5.0-SNAPSHOT requires 'ca.gc.asc_csa.apogy.feature.feature.group [0.5.0,0.5.1)' but it could not be found [ERROR] [ERROR] See http://wiki.eclipse.org/Tycho/Dependency_Resolution_Troubleshooting for help. [ERROR] Cannot resolve dependencies of MavenProject: ca.gc.asc_csa.apogy:ca.gc.asc_csa.apogy.repository:0.5.0-SNAPSHOT @ /home/sgemme/symphony/ca.gc.asc_csa.apogy/bundles/ca.gc.asc_csa.apogy.repository/pom.xml: See log for details -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MavenExecutionException
-
reporter Le probleme vient de la premiere commande Maven que tu executes. Il faut executer
mvn clean installL'utilisation du "goal" install indique a Maven de stocker dans ta repository maven locale (~/m2/repository) les artifacts produits par le build. Ainsi, lorsque tu invoques la seconde commande, maven sera en mesure de construire l'update site en utilisant les artifacts produits par le build precedent.
-
reporter The code changes are complete. You can see the content of the 0.5 develop repo at https://dl.bintray.com/apogy/Develop/
Note that at this point the configuration the pom.xml is for the Develop stream for version 0.5 To use this in Master you will need to change the values of
- repoName - this is just the user readable name of the composite repo, not too important
- devStream - this is the first two digits of the version number.
- bintray.repo - to have it point to Releases
-
Bonjour Pascal,
nous avons testé et ça fonctionne.
Merci, Sébastien
-
Merci Pascal.
-
- changed title to Upload Apogy Repo to bintray
-
reporter - changed status to resolved
Done
- Log in to comment
Email from Pascal Rapicault (2016-02-22)