Tony CHEMIT pushed to branch develop at ultreiaio / ird-t3
Commits:
-
68f178ae
by Tony CHEMIT at 2017-04-02T08:16:48+02:00
-
ee9cfe19
by Tony CHEMIT at 2017-04-02T08:21:15+02:00
14 changed files:
- .gitlab-ci.yml
- pom.xml
- src/site/markdown/install.md
- src/site/markdown/installer.md.vm
- src/site/resources/images/logos/argouml-logo.png → src/site/resources/img/argouml-logo.png
- src/site/resources/images/logos/logo-OT_web.png → src/site/resources/img/logo-OT_web.png
- + src/site/resources/img/logo_IntelliJIDEA.png
- src/site/resources/images/logos/logo_ird.png → src/site/resources/img/logo_ird.png
- + src/site/resources/img/maven-feather.png
- + src/site/resources/img/struts2-logo.png
- src/site/resources/images/logos/topia-logo.png → src/site/resources/img/topia-logo.png
- − src/site/resources/site.js
- src/site/site.xml
- t3-installer/src/main/assembly/bin.xml
Changes:
| ... | ... | @@ -12,9 +12,6 @@ stages: |
| 12 | 12 |
- Production
|
| 13 | 13 |
|
| 14 | 14 |
.before_script_default: &before_script_default
|
| 15 |
- tags:
|
|
| 16 |
- - gitlab-org
|
|
| 17 |
- - shared
|
|
| 18 | 15 |
before_script:
|
| 19 | 16 |
- 'which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )'
|
| 20 | 17 |
- 'which zip || ( apt-get update -y && apt-get install zip -y )'
|
| ... | ... | @@ -22,13 +19,12 @@ stages: |
| 22 | 19 |
- ssh-add <(echo "$SSH_PRIVATE_KEY")
|
| 23 | 20 |
- mkdir -p ~/.ssh
|
| 24 | 21 |
- '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config'
|
| 25 |
- - (cd ~ ; git clone ssh://git@gitlab.com/maven.ultreia.io/env.git)
|
|
| 26 |
- - . ~/env/bin/prepare-env.sh "$MAVEN_PRIVATE_KEY" "$CI_PROJECT_PATH" "$CI_PROJECT_NAME"
|
|
| 22 |
+ - git config --global user.name $GITLAB_USER_ID
|
|
| 23 |
+ - git config --global user.email $GITLAB_USER_EMAIL
|
|
| 24 |
+ - (cd ~ ; git clone ssh://git@gitlab.com/ultreiaio/env.git)
|
|
| 25 |
+ - . ~/env/bin/prepare-env.sh
|
|
| 27 | 26 |
|
| 28 | 27 |
.before_script_clone: &before_script_clone
|
| 29 |
- tags:
|
|
| 30 |
- - gitlab-org
|
|
| 31 |
- - shared
|
|
| 32 | 28 |
before_script:
|
| 33 | 29 |
- 'which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )'
|
| 34 | 30 |
- 'which zip || ( apt-get update -y && apt-get install zip -y )'
|
| ... | ... | @@ -36,13 +32,26 @@ stages: |
| 36 | 32 |
- ssh-add <(echo "$SSH_PRIVATE_KEY")
|
| 37 | 33 |
- mkdir -p ~/.ssh
|
| 38 | 34 |
- '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config'
|
| 39 |
- - (cd ~ ; git clone ssh://git@gitlab.com/maven.ultreia.io/env.git)
|
|
| 40 |
- - . ~/env/bin/prepare-env-with-clone.sh "$MAVEN_PRIVATE_KEY" "$CI_PROJECT_PATH" "$CI_PROJECT_NAME"
|
|
| 35 |
+ - git config --global user.name $GITLAB_USER_ID
|
|
| 36 |
+ - git config --global user.email $GITLAB_USER_EMAIL
|
|
| 37 |
+ - (cd ~ ; git clone ssh://git@gitlab.com/ultreiaio/env.git)
|
|
| 38 |
+ - . ~/env/bin/prepare-env-with-clone.sh "$CI_PROJECT_PATH" "$CI_PROJECT_NAME"
|
|
| 39 |
+ |
|
| 40 |
+.env_test: &env_test
|
|
| 41 |
+ environment:
|
|
| 42 |
+ name: test
|
|
| 43 |
+ |
|
| 44 |
+.env_staging: &env_staging
|
|
| 45 |
+ environment:
|
|
| 46 |
+ name: staging
|
|
| 47 |
+ |
|
| 48 |
+.env_production: &env_production
|
|
| 49 |
+ environment:
|
|
| 50 |
+ name: production
|
|
| 41 | 51 |
|
| 42 | 52 |
.deploy_site: &deploy_site
|
| 43 | 53 |
script:
|
| 44 |
- - mvn install -DskipTests
|
|
| 45 |
- - mvn site-deploy -DperformRelease
|
|
| 54 |
+ - mvn clean install site -DperformRelease scm-publish:publish-scm
|
|
| 46 | 55 |
|
| 47 | 56 |
.deploy_demo_latest: &deploy_demo_latest
|
| 48 | 57 |
stage: Test
|
| ... | ... | @@ -61,18 +70,6 @@ build: |
| 61 | 70 |
except:
|
| 62 | 71 |
- triggers
|
| 63 | 72 |
|
| 64 |
-.env_test: &env_test
|
|
| 65 |
- environment:
|
|
| 66 |
- name: test
|
|
| 67 |
- |
|
| 68 |
-.env_staging: &env_staging
|
|
| 69 |
- environment:
|
|
| 70 |
- name: staging
|
|
| 71 |
- |
|
| 72 |
-.env_production: &env_production
|
|
| 73 |
- environment:
|
|
| 74 |
- name: production
|
|
| 75 |
- |
|
| 76 | 73 |
.test_manual: &test_manual
|
| 77 | 74 |
stage: Test
|
| 78 | 75 |
<<: *before_script_default
|
| ... | ... | @@ -87,7 +84,11 @@ stage: |
| 87 | 84 |
<<: *test_manual
|
| 88 | 85 |
<<: *before_script_clone
|
| 89 | 86 |
script:
|
| 90 |
- - . ~/env/bin/stage.sh "$MASTER" "$DEVELOP" "$STAGE"
|
|
| 87 |
+ - wget -O - https://gitlab.com/ultreiaio/pom/raw/master/bin/close-milestone.sh | bash
|
|
| 88 |
+ - wget -O - https://gitlab.com/ultreiaio/pom/raw/master/bin/create-stage.sh | bash
|
|
| 89 |
+ - wget -O - https://gitlab.com/ultreiaio/pom/raw/master/bin/update-staging-changelog.sh | sed 's/$1/frirdobserve/' | bash
|
|
| 90 |
+ - wget -O - https://gitlab.com/ultreiaio/pom/raw/master/bin/create-milestone.sh | bash
|
|
| 91 |
+ - wget -O - https://gitlab.com/ultreiaio/pom/raw/master/bin/close-stage.sh | sed 's/$1/frirdobserve/' | bash
|
|
| 91 | 92 |
|
| 92 | 93 |
latest-site:
|
| 93 | 94 |
<<: *env_test
|
| ... | ... | @@ -132,7 +133,7 @@ nightly-demo: |
| 132 | 133 |
staging-demo:
|
| 133 | 134 |
<<: *staging
|
| 134 | 135 |
script:
|
| 135 |
- - mvn install -am -p t3-web -DskipTests -Pdeploy-demo -DperformRelease
|
|
| 136 |
+ - mvn install -am -pl t3-web -DskipTests -Pdeploy-demo -DperformRelease
|
|
| 136 | 137 |
|
| 137 | 138 |
staging-site:
|
| 138 | 139 |
<<: *staging
|
| ... | ... | @@ -142,7 +143,13 @@ release: |
| 142 | 143 |
<<: *staging
|
| 143 | 144 |
when: manual
|
| 144 | 145 |
script:
|
| 145 |
- - . ~/env/bin/close_stage.sh "$STAGE"
|
|
| 146 |
+ - wget -O - https://gitlab.com/ultreiaio/pom/raw/master/bin/release-stage.sh | sed 's/$1/frirdobserve/' | bash
|
|
| 147 |
+ |
|
| 148 |
+drop:
|
|
| 149 |
+ <<: *staging
|
|
| 150 |
+ when: manual
|
|
| 151 |
+ script:
|
|
| 152 |
+ - wget -O - https://gitlab.com/ultreiaio/pom/raw/master/bin/drop-stage.sh | sed 's/$1/frirdobserve/' | bash
|
|
| 146 | 153 |
|
| 147 | 154 |
production:
|
| 148 | 155 |
stage: Production
|
| ... | ... | @@ -26,7 +26,7 @@ |
| 26 | 26 |
<parent>
|
| 27 | 27 |
<groupId>io.ultreia.maven</groupId>
|
| 28 | 28 |
<artifactId>pom</artifactId>
|
| 29 |
- <version>2</version>
|
|
| 29 |
+ <version>9</version>
|
|
| 30 | 30 |
</parent>
|
| 31 | 31 |
|
| 32 | 32 |
<groupId>fr.ird.t3</groupId>
|
| ... | ... | @@ -36,7 +36,7 @@ |
| 36 | 36 |
|
| 37 | 37 |
<name>T3</name>
|
| 38 | 38 |
<description>Projet T3+</description>
|
| 39 |
- <url>http://t3.ultreia.io</url>
|
|
| 39 |
+ <url>https://ultreiaio.gitlab.io/ird-t3</url>
|
|
| 40 | 40 |
<inceptionYear>2010</inceptionYear>
|
| 41 | 41 |
<organization>
|
| 42 | 42 |
<name>IRD</name>
|
| ... | ... | @@ -84,31 +84,26 @@ |
| 84 | 84 |
</developerConnection>
|
| 85 | 85 |
</scm-->
|
| 86 | 86 |
<scm>
|
| 87 |
- <url>https://gitlab.com/ultreia.io/ird-observe</url>
|
|
| 88 |
- <connection>scm:git:git@gitlab.com:ultreia.io/ird-observe.git</connection>
|
|
| 89 |
- <developerConnection>scm:git:ssh://git@gitlab.com:ultreia.io/ird-observe.git</developerConnection>
|
|
| 87 |
+ <url>https://gitlab.com/ultreiaio/ird-t3</url>
|
|
| 88 |
+ <connection>scm:git:git@gitlab.com:ultreiaio/ird-t3.git</connection>
|
|
| 89 |
+ <developerConnection>scm:git:ssh://git@gitlab.com:ultreiaio/ird-t3.git</developerConnection>
|
|
| 90 | 90 |
</scm>
|
| 91 |
- <issueManagement>
|
|
| 92 |
- <system>gitlab</system>
|
|
| 93 |
- <url>https://gitlab.com/ultreia.io/ird-observe</url>
|
|
| 94 |
- </issueManagement>
|
|
| 95 | 91 |
<distributionManagement>
|
| 96 | 92 |
<site>
|
| 97 |
- <id>doc.ultreia.io</id>
|
|
| 93 |
+ <id>gitlab.com</id>
|
|
| 94 |
+ <url>scm:git:https://git@gitlab.com/${organizationId}/${projectId}.git</url>
|
|
| 98 | 95 |
</site>
|
| 99 | 96 |
</distributionManagement>
|
| 100 | 97 |
|
| 101 | 98 |
<properties>
|
| 102 | 99 |
|
| 103 |
- <organizationId>ultreia.io</organizationId>
|
|
| 100 |
+ <organizationId>ultreiaio</organizationId>
|
|
| 104 | 101 |
<projectId>ird-t3</projectId>
|
| 105 | 102 |
|
| 106 | 103 |
<t3-data.version>1.1</t3-data.version>
|
| 107 | 104 |
|
| 108 | 105 |
<!-- libraries version -->
|
| 109 | 106 |
|
| 110 |
- <gitlabPluginVersion>1.0.4</gitlabPluginVersion>
|
|
| 111 |
- |
|
| 112 | 107 |
<eugenePluginVersion>2.6.2</eugenePluginVersion>
|
| 113 | 108 |
<topiaVersion>2.8.1.3</topiaVersion>
|
| 114 | 109 |
<nuitonUtilsVersion>2.6.12</nuitonUtilsVersion>
|
| ... | ... | @@ -138,14 +133,12 @@ |
| 138 | 133 |
<locales>fr</locales>
|
| 139 | 134 |
<generateSitemap>true</generateSitemap>
|
| 140 | 135 |
<relativizeDecorationLinks>false</relativizeDecorationLinks>
|
| 141 |
- <siteSourcesType>md</siteSourcesType>
|
|
| 142 |
- <helper.distributionSiteUrlPrefix>scpexe://ultreia.io/var/www/t3</helper.distributionSiteUrlPrefix>
|
|
| 143 | 136 |
|
| 144 | 137 |
<!--Gitlab configuration-->
|
| 145 | 138 |
<gitlab.changesTitle>T3 changelog</gitlab.changesTitle>
|
| 146 | 139 |
<gitlab.changesAuthor>Tony Chemit</gitlab.changesAuthor>
|
| 147 | 140 |
<gitlab.changesAuthorEmail>dev@tchemit.fr</gitlab.changesAuthorEmail>
|
| 148 |
- <gitlab.trackers>Anomalie,Evolution,Tache</gitlab.trackers>
|
|
| 141 |
+ <gitlab.trackers>Anomalie,Evolution,Tâche</gitlab.trackers>
|
|
| 149 | 142 |
|
| 150 | 143 |
<commonsCollectionsVersion>3.2.1</commonsCollectionsVersion>
|
| 151 | 144 |
<commonsLang3Version>3.1</commonsLang3Version>
|
| ... | ... | @@ -520,6 +513,24 @@ |
| 520 | 513 |
</configuration>
|
| 521 | 514 |
</plugin>
|
| 522 | 515 |
|
| 516 |
+ <plugin>
|
|
| 517 |
+ <artifactId>maven-scm-publish-plugin</artifactId>
|
|
| 518 |
+ <configuration>
|
|
| 519 |
+ <pubScmUrl>${project.distributionManagement.site.url}</pubScmUrl>
|
|
| 520 |
+ <scmBranch>pages</scmBranch>
|
|
| 521 |
+ <content>${project.reporting.outputDirectory}</content><!-- mono-module doesn't require site:stage -->
|
|
| 522 |
+ </configuration>
|
|
| 523 |
+ <executions>
|
|
| 524 |
+ <execution>
|
|
| 525 |
+ <id>scm-publish</id>
|
|
| 526 |
+ <phase>site-deploy</phase><!-- deploy site with maven-scm-publish-plugin -->
|
|
| 527 |
+ <goals>
|
|
| 528 |
+ <goal>publish-scm</goal>
|
|
| 529 |
+ </goals>
|
|
| 530 |
+ </execution>
|
|
| 531 |
+ </executions>
|
|
| 532 |
+ </plugin>
|
|
| 533 |
+ |
|
| 523 | 534 |
</plugins>
|
| 524 | 535 |
</pluginManagement>
|
| 525 | 536 |
|
| ... | ... | @@ -662,19 +673,6 @@ |
| 662 | 673 |
</executions>
|
| 663 | 674 |
</plugin>
|
| 664 | 675 |
|
| 665 |
- <plugin>
|
|
| 666 |
- <groupId>org.nuiton</groupId>
|
|
| 667 |
- <artifactId>helper-maven-plugin</artifactId>
|
|
| 668 |
- <executions>
|
|
| 669 |
- <execution>
|
|
| 670 |
- <id>compute-distribution-site-url</id>
|
|
| 671 |
- <goals>
|
|
| 672 |
- <goal>compute-distribution-site-url</goal>
|
|
| 673 |
- </goals>
|
|
| 674 |
- <phase>pre-site</phase>
|
|
| 675 |
- </execution>
|
|
| 676 |
- </executions>
|
|
| 677 |
- </plugin>
|
|
| 678 | 676 |
</plugins>
|
| 679 | 677 |
</build>
|
| 680 | 678 |
</profile>
|
| ... | ... | @@ -14,7 +14,7 @@ Elle se déroule en deux étapes : |
| 14 | 14 |
|
| 15 | 15 |
## Récupération de l'application
|
| 16 | 16 |
|
| 17 |
-Récupérez la dernière application depuis [la page des téléchargements](https://gitlab.com/ultreia.io/ird-t3/blob/develop/CHANGELOG.md).
|
|
| 17 |
+Récupérez la dernière application depuis [la page des téléchargements](https://gitlab.com/ultreiaio/ird-t3/blob/develop/CHANGELOG.md).
|
|
| 18 | 18 |
|
| 19 | 19 |
## Préparation de la configuration
|
| 20 | 20 |
|
| ... | ... | @@ -7,7 +7,7 @@ Présentation de l'outil utilitaire pour installer une base T3+. |
| 7 | 7 |
## Téléchargement
|
| 8 | 8 |
|
| 9 | 9 |
L'installeur est disponible sous la forme d'une archive zip (**t3-xxx.zip**) sur la
|
| 10 |
-[page des téléchargements](https://gitlab.com/ultreia.io/ird-t3/blob/develop/CHANGELOG.md).
|
|
| 10 |
+[page des téléchargements](https://gitlab.com/ultreiaio/ird-t3/blob/develop/CHANGELOG.md).
|
|
| 11 | 11 |
|
| 12 | 12 |
## Lancement
|
| 13 | 13 |
|
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
| 1 |
-/*-
|
|
| 2 |
- * #%L
|
|
| 3 |
- * ObServe
|
|
| 4 |
- * %%
|
|
| 5 |
- * Copyright (C) 2008 - 2017 IRD, Code Lutin, Ultreia.io
|
|
| 6 |
- * %%
|
|
| 7 |
- * This program is free software: you can redistribute it and/or modify
|
|
| 8 |
- * it under the terms of the GNU Affero General Public License as published by
|
|
| 9 |
- * the Free Software Foundation, either version 3 of the License, or
|
|
| 10 |
- * (at your option) any later version.
|
|
| 11 |
- *
|
|
| 12 |
- * This program is distributed in the hope that it will be useful,
|
|
| 13 |
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
| 14 |
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
| 15 |
- * GNU General Public License for more details.
|
|
| 16 |
- *
|
|
| 17 |
- * You should have received a copy of the GNU Affero General Public License
|
|
| 18 |
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
| 19 |
- * #L%
|
|
| 20 |
- */
|
|
| 21 |
-$(document).ready(function () {
|
|
| 22 |
- |
|
| 23 |
- var metas = $('#mavenProjectProperties');
|
|
| 24 |
- |
|
| 25 |
- if (metas.length == 0) {
|
|
| 26 |
- return;
|
|
| 27 |
- }
|
|
| 28 |
- |
|
| 29 |
- $.debugOn = function () {
|
|
| 30 |
- $('#mavenProjectProperties').attr('DEBUG', true);
|
|
| 31 |
- };
|
|
| 32 |
- |
|
| 33 |
- $.debugOff = function () {
|
|
| 34 |
- $('#mavenProjectProperties').attr('DEBUG', null);
|
|
| 35 |
- };
|
|
| 36 |
- |
|
| 37 |
- var debug = function (metas) {
|
|
| 38 |
- return metas.attr('DEBUG');
|
|
| 39 |
- };
|
|
| 40 |
- |
|
| 41 |
- var urlParameters = decodeURIComponent(window.location.search.slice(1))
|
|
| 42 |
- .split('&')
|
|
| 43 |
- .reduce(function _reduce(a, b) {
|
|
| 44 |
- b = b.split('=');
|
|
| 45 |
- a[b[0]] = b[1];
|
|
| 46 |
- return a;
|
|
| 47 |
- }, {});
|
|
| 48 |
- |
|
| 49 |
- if (urlParameters.debug) {
|
|
| 50 |
- $.debugOn();
|
|
| 51 |
- }
|
|
| 52 |
- |
|
| 53 |
- var projectId = metas.attr('projectId');
|
|
| 54 |
- var version = metas.attr('version');
|
|
| 55 |
- var locale = metas.attr('locale');
|
|
| 56 |
- |
|
| 57 |
- var rootUrl= 'http://' + window.location.hostname ;
|
|
| 58 |
- var useDocUrl = false;
|
|
| 59 |
- var localeInPath = window.location.pathname.indexOf('/' + locale + '/') > -1;
|
|
| 60 |
- |
|
| 61 |
- var DEBUG = debug(metas);
|
|
| 62 |
- |
|
| 63 |
- if (DEBUG) {
|
|
| 64 |
- console.info("localeInPath: " + localeInPath);
|
|
| 65 |
- }
|
|
| 66 |
- |
|
| 67 |
- var addVersion = function (metas) {
|
|
| 68 |
- |
|
| 69 |
- var DEBUG = debug(metas);
|
|
| 70 |
- |
|
| 71 |
- var versionsUrl = rootUrl + '/versions';
|
|
| 72 |
- |
|
| 73 |
- $.get(versionsUrl)
|
|
| 74 |
- .fail(function () {
|
|
| 75 |
- console.error("can't load url: " + versionsUrl);
|
|
| 76 |
- })
|
|
| 77 |
- .done(function (allVersions) {
|
|
| 78 |
- |
|
| 79 |
- if (DEBUG) {
|
|
| 80 |
- console.info("Versions url: " + versionsUrl);
|
|
| 81 |
- console.info("All versions: " + allVersions);
|
|
| 82 |
- }
|
|
| 83 |
- |
|
| 84 |
- var labels;
|
|
| 85 |
- if ('en' == locale) {
|
|
| 86 |
- labels = {develop: 'in progress', latest: 'latest release'};
|
|
| 87 |
- } else {
|
|
| 88 |
- labels = {develop: 'en cours', latest: 'dernière stable'};
|
|
| 89 |
- }
|
|
| 90 |
- var versions = allVersions.split(' ');
|
|
| 91 |
- if (DEBUG) {
|
|
| 92 |
- console.info("Versions : " + versions);
|
|
| 93 |
- console.info("version : " + version);
|
|
| 94 |
- }
|
|
| 95 |
- var versionsHtml = "<select id='versions' class='versions pull-left'>";
|
|
| 96 |
- $(versions).each(function (index, value) {
|
|
| 97 |
- value = value.trim();
|
|
| 98 |
- var label;
|
|
| 99 |
- if ('develop' == value || 'latest' == value) {
|
|
| 100 |
- label = labels[value];
|
|
| 101 |
- } else {
|
|
| 102 |
- label = value;
|
|
| 103 |
- }
|
|
| 104 |
- |
|
| 105 |
- if (DEBUG) {
|
|
| 106 |
- console.info("Version to add " + label + " (" + value + ")");
|
|
| 107 |
- }
|
|
| 108 |
- versionsHtml += "<option value='" + value + "'";
|
|
| 109 |
- if (version == value) {
|
|
| 110 |
- versionsHtml += " selected='selected'";
|
|
| 111 |
- }
|
|
| 112 |
- versionsHtml += ">Version " + label + "</option>";
|
|
| 113 |
- });
|
|
| 114 |
- versionsHtml += "</select><span class='divider'>»</span>";
|
|
| 115 |
- |
|
| 116 |
- $('#breadcrumbs').find('> ul > li:nth-child(2)').html(versionsHtml);
|
|
| 117 |
- $('#versions').change(function () {
|
|
| 118 |
- var DEBUG = debug(metas);
|
|
| 119 |
- var newVersion = $(this).val();
|
|
| 120 |
- var newUrl = rootUrl + '/' + newVersion;
|
|
| 121 |
- if (localeInPath) {
|
|
| 122 |
- newUrl += "/" + locale;
|
|
| 123 |
- }
|
|
| 124 |
- if (DEBUG) {
|
|
| 125 |
- console.info("Change to version: " + newUrl);
|
|
| 126 |
- }
|
|
| 127 |
- window.location = newUrl;
|
|
| 128 |
- });
|
|
| 129 |
- |
|
| 130 |
- });
|
|
| 131 |
- |
|
| 132 |
- };
|
|
| 133 |
- |
|
| 134 |
- var addScmwebeditor = function (metas) {
|
|
| 135 |
- |
|
| 136 |
- var editorUrl = 'https://scmwebeditor.nuiton.org/scmwebeditor/edit.action';
|
|
| 137 |
- |
|
| 138 |
- if ('develop' != version) {
|
|
| 139 |
- return;
|
|
| 140 |
- }
|
|
| 141 |
- |
|
| 142 |
- var skipDefaultFiles = [
|
|
| 143 |
- "project-info.html",
|
|
| 144 |
- "team-list.html",
|
|
| 145 |
- "mail-lists.html",
|
|
| 146 |
- "integration.html",
|
|
| 147 |
- "issue-tracking.html",
|
|
| 148 |
- "license.html",
|
|
| 149 |
- "source-repository.html",
|
|
| 150 |
- "dependencies.html",
|
|
| 151 |
- "dependency-info.html",
|
|
| 152 |
- "dependency-convergence.html",
|
|
| 153 |
- "plugin-management.html",
|
|
| 154 |
- "plugins.html",
|
|
| 155 |
- "dependency-management.html",
|
|
| 156 |
- "project-summary.html",
|
|
| 157 |
- "project-reports.html",
|
|
| 158 |
- "dev-activity.html",
|
|
| 159 |
- "file-activity.html",
|
|
| 160 |
- "changelog.html",
|
|
| 161 |
- "surefire-report.html",
|
|
| 162 |
- "third-party-report.html",
|
|
| 163 |
- "sonar.html",
|
|
| 164 |
- "dependency-updates-report.html",
|
|
| 165 |
- "plugin-updates-report.html",
|
|
| 166 |
- "property-updates-report.html",
|
|
| 167 |
- "changes-report.html",
|
|
| 168 |
- "redmine-report.html",
|
|
| 169 |
- "application-config-report.html"
|
|
| 170 |
- ];
|
|
| 171 |
- |
|
| 172 |
- var DEBUG = debug(metas);
|
|
| 173 |
- |
|
| 174 |
- var scm = 'https://gitlab.com/ultreia.io/observe.git';
|
|
| 175 |
- |
|
| 176 |
- if (DEBUG) {
|
|
| 177 |
- console.info('scm: ' + scm);
|
|
| 178 |
- }
|
|
| 179 |
- |
|
| 180 |
- var sourcesType = metas.attr('sourcesType');
|
|
| 181 |
- |
|
| 182 |
- var pathname = document.location.pathname;
|
|
| 183 |
- |
|
| 184 |
- // remove prefix
|
|
| 185 |
- if (useDocUrl) {
|
|
| 186 |
- pathname = pathname.replace('/' + projectId + '/develop', '');
|
|
| 187 |
- } else {
|
|
| 188 |
- pathname = pathname.replace('/develop', '');
|
|
| 189 |
- }
|
|
| 190 |
- |
|
| 191 |
- if (DEBUG) {
|
|
| 192 |
- console.info('pathname: ' + pathname);
|
|
| 193 |
- }
|
|
| 194 |
- |
|
| 195 |
- var path;
|
|
| 196 |
- if (pathname.indexOf('target/site') > 0) {
|
|
| 197 |
- path = pathname.substr(pathname.indexOf('/site')). replace('/site/', '');
|
|
| 198 |
- } else {
|
|
| 199 |
- if (pathname == '/' || pathname == '') {
|
|
| 200 |
- // on / page
|
|
| 201 |
- path = 'index.html';
|
|
| 202 |
- } else {
|
|
| 203 |
- path = pathname;
|
|
| 204 |
- }
|
|
| 205 |
- }
|
|
| 206 |
- |
|
| 207 |
- if (localeInPath) {
|
|
| 208 |
- |
|
| 209 |
- // locale detected in path (means not default locale)
|
|
| 210 |
- // remove locale from path
|
|
| 211 |
- path = path.substr(('/' + locale).length);
|
|
| 212 |
- }
|
|
| 213 |
- |
|
| 214 |
- if (DEBUG) {
|
|
| 215 |
- console.info('path: ' + path);
|
|
| 216 |
- }
|
|
| 217 |
- if ($.inArray(path, skipDefaultFiles) > -1) {
|
|
| 218 |
- // skip this file
|
|
| 219 |
- if (DEBUG) {
|
|
| 220 |
- console.info('skipDefaultFiles: ' + path);
|
|
| 221 |
- }
|
|
| 222 |
- return;
|
|
| 223 |
- }
|
|
| 224 |
- |
|
| 225 |
- var skipFiles = metas.attr('scmwebeditor_skipFiles');
|
|
| 226 |
- if (skipFiles && skipFiles.indexOf(',' + path + ',') > -1) {
|
|
| 227 |
- // skip this file
|
|
| 228 |
- if (DEBUG) {
|
|
| 229 |
- console.info('skipFiles: ' + path);
|
|
| 230 |
- }
|
|
| 231 |
- return;
|
|
| 232 |
- }
|
|
| 233 |
- |
|
| 234 |
- path = path.replace('.html', '');
|
|
| 235 |
- if (path.indexOf('/') == 0) {
|
|
| 236 |
- path = path.substr(1);
|
|
| 237 |
- }
|
|
| 238 |
- |
|
| 239 |
- var vmFiles = metas.attr('scmwebeditor_vmFiles');
|
|
| 240 |
- |
|
| 241 |
- // add vm on vmFiles
|
|
| 242 |
- if (vmFiles && vmFiles.indexOf(',' + path + ',') > -1) {
|
|
| 243 |
- if (DEBUG) {
|
|
| 244 |
- console.info("Found vm file: " + path);
|
|
| 245 |
- }
|
|
| 246 |
- path += '.' + sourcesType + '.vm';
|
|
| 247 |
- } else {
|
|
| 248 |
- if (DEBUG) {
|
|
| 249 |
- console.info("Not found vm file: " + path);
|
|
| 250 |
- }
|
|
| 251 |
- path += '.' + sourcesType;
|
|
| 252 |
- }
|
|
| 253 |
- |
|
| 254 |
- if (DEBUG) {
|
|
| 255 |
- console.info('final path: ' + path);
|
|
| 256 |
- }
|
|
| 257 |
- |
|
| 258 |
- var address = scm + "/src/site";
|
|
| 259 |
- if (localeInPath) {
|
|
| 260 |
- address += '/' + locale;
|
|
| 261 |
- }
|
|
| 262 |
- address += '/' + sourcesType + '/' + path;
|
|
| 263 |
- if (DEBUG) {
|
|
| 264 |
- console.info('address: ' + address);
|
|
| 265 |
- }
|
|
| 266 |
- var url = editorUrl + "?scmType=Git&selectedBranch=develop&repositoryRoot=" + scm + "&address=" + address;
|
|
| 267 |
- |
|
| 268 |
- if (DEBUG) {
|
|
| 269 |
- console.info('edit url: ' + url);
|
|
| 270 |
- }
|
|
| 271 |
- |
|
| 272 |
- $('#publishDate').prepend(
|
|
| 273 |
- "<li class='pull-right'><a target='edit' href='" + url +
|
|
| 274 |
- "'>Éditer la page</a></li>" +
|
|
| 275 |
- "<li class='divider pull-right'>|</li>"
|
|
| 276 |
- );
|
|
| 277 |
- |
|
| 278 |
- };
|
|
| 279 |
- |
|
| 280 |
- addScmwebeditor(metas);
|
|
| 281 |
- |
|
| 282 |
- addVersion(metas);
|
|
| 283 |
- |
|
| 284 |
-});
|
| ... | ... | @@ -22,14 +22,14 @@ |
| 22 | 22 |
|
| 23 | 23 |
|
| 24 | 24 |
<project name="${project.name}"
|
| 25 |
- xmlns="http://maven.apache.org/DECORATION/1.4.0"
|
|
| 25 |
+ xmlns="http://maven.apache.org/DECORATION/1.7.0"
|
|
| 26 | 26 |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
| 27 |
- xsi:schemaLocation="http://maven.apache.org/DECORATION/1.4.0 http://maven.apache.org/xsd/decoration-1.4.0.xsd">
|
|
| 27 |
+ xsi:schemaLocation="http://maven.apache.org/DECORATION/1.7.0 http://maven.apache.org/xsd/decoration-1.7.0.xsd">
|
|
| 28 | 28 |
|
| 29 | 29 |
<skin>
|
| 30 | 30 |
<groupId>org.apache.maven.skins</groupId>
|
| 31 | 31 |
<artifactId>maven-fluido-skin</artifactId>
|
| 32 |
- <version>1.4</version>
|
|
| 32 |
+ <version>1.6</version>
|
|
| 33 | 33 |
</skin>
|
| 34 | 34 |
|
| 35 | 35 |
<custom>
|
| ... | ... | @@ -48,40 +48,28 @@ |
| 48 | 48 |
|
| 49 | 49 |
<bannerLeft>
|
| 50 | 50 |
<name>${project.name}</name>
|
| 51 |
- <src>${project.url}/${siteDeployClassifier}/images/logos/logo-OT_web.png</src>
|
|
| 51 |
+ <src>./img/logo-OT_web.png</src>
|
|
| 52 | 52 |
<href>index.html</href>
|
| 53 | 53 |
</bannerLeft>
|
| 54 | 54 |
|
| 55 | 55 |
<poweredBy>
|
| 56 |
- <logo href="http://maven.apache.org" name="Maven"
|
|
| 57 |
- img="http://maven-site.nuiton.org/public/images/logos/maven-feather.png"/>
|
|
| 58 |
- |
|
| 59 |
- <logo href="http://struts.apache.org/" name="Struts 2"
|
|
| 60 |
- img="${project.url}/${siteDeployClassifier}/images/logos/struts2-logo.png"/>
|
|
| 61 |
- |
|
| 62 |
- <logo href="http://topia.nuiton.org" name="ToPIA"
|
|
| 63 |
- img="${project.url}/${siteDeployClassifier}/images/logos/topia-logo.png"/>
|
|
| 64 |
- |
|
| 65 |
- <logo href="http://argouml.tigris.org/" name="ArgoUML"
|
|
| 66 |
- img="${project.url}/${siteDeployClassifier}/images/logos/argouml-logo.png"/>
|
|
| 67 | 56 |
|
| 57 |
+ <logo href="http://maven.apache.org/" name="Maven" img="./img/maven-feather.png"/>
|
|
| 58 |
+ <logo href="http://struts.apache.org/" name="Struts 2" img="./img/struts2-logo.png"/>
|
|
| 59 |
+ <logo href="http://topia.nuiton.org" name="ToPIA" img="./img/topia-logo.png"/>
|
|
| 60 |
+ <logo href="http://argouml.tigris.org/" name="ArgoUML" img="./img/argouml-logo.png"/>
|
|
| 61 |
+ <logo href="https://www.jetbrains.com/idea" name="IntelliJ" img="./img/logo_IntelliJIDEA.png"/>
|
|
| 68 | 62 |
</poweredBy>
|
| 69 | 63 |
|
| 70 | 64 |
<body>
|
| 71 | 65 |
|
| 72 |
- <head>
|
|
| 73 |
- <script type="text/javascript" src="site.js"> </script>
|
|
| 74 |
- <link rel="stylesheet" type="text/css" href="http://common.nuiton.org/dev/css/mavenpom-site.css"/>
|
|
| 75 |
- </head>
|
|
| 76 |
- |
|
| 77 | 66 |
<links>
|
| 78 |
- <item name="Forge" href="https:/gitlab.com/ultreia.io/ird-t3"/>
|
|
| 67 |
+ <item name="GitLab" href="https:/gitlab.com/ultreiaio/ird-t3"/>
|
|
| 79 | 68 |
<item name="Ultreia.io" href="http://ultreia.io"/>
|
| 80 | 69 |
</links>
|
| 81 | 70 |
|
| 82 | 71 |
<breadcrumbs>
|
| 83 | 72 |
<item name="${project.name}" href="${project.url}/index.html"/>
|
| 84 |
- <item name="${project.version}" href="${project.url}/v/${siteDeployClassifier}/index.html"/>
|
|
| 85 | 73 |
</breadcrumbs>
|
| 86 | 74 |
|
| 87 | 75 |
<menu name="Utilisateur">
|
| ... | ... | @@ -103,12 +91,5 @@ |
| 103 | 91 |
|
| 104 | 92 |
<menu ref="reports"/>
|
| 105 | 93 |
|
| 106 |
- <footer>
|
|
| 107 |
- <div id='mavenProjectProperties' locale='fr'
|
|
| 108 |
- projectId='${project.projectId}'
|
|
| 109 |
- version='${project.siteDeployClassifier}'
|
|
| 110 |
- sourcesType='md'
|
|
| 111 |
- scmwebeditor_vmFiles=",install,installer,"/>
|
|
| 112 |
- </footer>
|
|
| 113 | 94 |
</body>
|
| 114 | 95 |
</project>
|
| ... | ... | @@ -21,22 +21,26 @@ |
| 21 | 21 |
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
| 22 | 22 |
#L%
|
| 23 | 23 |
-->
|
| 24 |
-<assembly>
|
|
| 24 |
+<assembly xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
| 25 |
+ xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.3 http://maven.apache.org/xsd/assembly-1.1.3.xsd">
|
|
| 25 | 26 |
<id>bin</id>
|
| 26 | 27 |
<formats>
|
| 27 | 28 |
<format>zip</format>
|
| 28 | 29 |
</formats>
|
| 29 |
- <dependencySets>
|
|
| 30 |
- <dependencySet>
|
|
| 31 |
- <outputDirectory>lib</outputDirectory>
|
|
| 32 |
- <scope>runtime</scope>
|
|
| 33 |
- </dependencySet>
|
|
| 34 |
- </dependencySets>
|
|
| 35 | 30 |
|
| 36 | 31 |
<fileSets>
|
| 37 | 32 |
|
| 38 | 33 |
<fileSet>
|
| 39 |
- <directory>target</directory>
|
|
| 34 |
+ <directory>${project.build.directory}/lib</directory>
|
|
| 35 |
+ <outputDirectory>lib</outputDirectory>
|
|
| 36 |
+ <fileMode>0755</fileMode>
|
|
| 37 |
+ <includes>
|
|
| 38 |
+ <include>*.jar</include>
|
|
| 39 |
+ </includes>
|
|
| 40 |
+ </fileSet>
|
|
| 41 |
+ |
|
| 42 |
+ <fileSet>
|
|
| 43 |
+ <directory>${project.build.directory}</directory>
|
|
| 40 | 44 |
<outputDirectory/>
|
| 41 | 45 |
<fileMode>0755</fileMode>
|
| 42 | 46 |
<includes>
|
| ... | ... | @@ -45,7 +49,7 @@ |
| 45 | 49 |
</fileSet>
|
| 46 | 50 |
|
| 47 | 51 |
<fileSet>
|
| 48 |
- <directory>target/classes</directory>
|
|
| 52 |
+ <directory>${project.build.outputDirectory}</directory>
|
|
| 49 | 53 |
<outputDirectory/>
|
| 50 | 54 |
<includes>
|
| 51 | 55 |
<include>THIRD-PARTY.txt</include>
|