Дерево страниц

Сравнение версий

Ключ

  • Эта строка добавлена.
  • Эта строка удалена.
  • Изменено форматирование.
панель

Отображение дочерних
alltrue
depth4

Свойства страницы
Статус

Статус
colourGreen
titleГОТОВО

Комментарий

Разрабатываемые компоненты


НазваниеМаска версийПример
CMJSRV-<release>.<build>

SRV-7.0.0.148

SRV-7.0.0.m12

Заказной CMJ проект<project>-SRV-<release>.<build>PR-SRV-6.3.0.148
Палитра<project>-<release>.plt.<build>

PR-7.0.0.plt.204

PR-rel.7.0.0.plt.12

CM-7.0.0.148

Отчеты<project>-<release>.Rep.<build>

PR-7.0.0.Rep.22

PR-rel.7.0.0.Rep.12

Интеграционное решение<project>-CMI.<solution>.<release>.<build>

PR-CMI.Post.1.7

PR-CMI.EP.1.20

CM-CMI.MEDO.1.25

Подсказка

project - аббревиатура проекта
release - номер релиза проекта
solution - аббревиатура решения
build - номер cборки

Конфигурация maven-проекта Палитры XML и Отчетов



Схема проектаТиповаяЗаказной проект ПТ
<project name>\cmpalette\src\main\resources

В папке находится вся конфигация палитры XML в следующей структуре

  • catalog
  • links
  • notice
  • search
  • tuning
  • xsd

В папке находится доработанные компоненты конфигация палитры XML в следующей структуре:

  • override
    • catalog
    • links
    • notice
    • search
    • tuning
  • xsd
<project name>\cmpalette\pom.xml 
Блок кода
languagexml
titlecmpalette \ pom.xml 
collapsetrue
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>

    <artifactId>cmpalette</artifactId>

    <parent>
        <groupId>ru.intertrust.cmj</groupId>
        <artifactId>cm-custom</artifactId>
        <version>CM-7.1.2.plt.264</version>
    </parent>
</project>
Блок кода
languagexml
titlecmpalette \ pom.xml 
collapsetrue
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>

    <artifactId>cmpltpackage</artifactId>

    <parent>
        <groupId>ru.intertrust.cmj</groupId>
        <artifactId>cm-custom-{project}</artifactId>
        <version>NPI-7.1.2.plt.126</version>
    </parent>

    <dependencies>
        <!--Типовая палитра-->
        <dependency>
            <groupId>ru.intertrust.cmj</groupId>
            <artifactId>cmpalette</artifactId>
            <version>${cmpalette.version}</version>
        </dependency>
    </dependencies>

    <build>
        <!--Включаем в собранный jar только override, чтобы соседние папки, которые могут
                создать игнорировались и не создавали коллизий-->
        <resources>
            <resource>
                <directory>src/main/resources</directory>
                <includes>
                    <include>override/**</include>
                </includes>
                <filtering>false</filtering>
            </resource>
        </resources>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-shade-plugin</artifactId>
                <version>3.2.4</version>
                <executions>
                    <execution>
                        <phase>package</phase>
                        <goals>
                            <goal>shade</goal>
                        </goals>
                        <configuration>
                            <!-- Фильтр артефактов, которые нужно включить в uber jar, нужен, чтобы при возникновении
                            новых dependency они не подтянулись в uber jar -->
                            <artifactSet>
                                <includes>
                                    <include>ru.intertrust.cmj:cmpalette</include>
                                </includes>
                            </artifactSet>
                            <filters>
                                <!-- Исключаем импорт из корневого jar META-INF и папки override-->
                                <filter>
                                    <artifact>ru.intertrust.cmj:cmpalette</artifact>
                                    <excludes>
                                        <exclude>META-INF/**</exclude>
                                        <exclude>override/**</exclude>
                                    </excludes>
                                </filter>
                            </filters>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
			<!-- Проверка XML по XSD-схемам -->
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-antrun-plugin</artifactId>
                <version>3.0.0</version>
                <executions>
                    <execution>
                        <id>validate-xml</id>
                        <phase>install</phase>
                        <goals>
                            <goal>run</goal>
                        </goals>
                        <configuration>
                            <target>
                                <resourcecount property="xml.count">
                                    <fileset dir="src/main/resources">
                                        <include name="**/*.xml"/>
                                        <exclude name="**/collection/"/>
                                        <exclude name="**/search/"/>
                                    </fileset>
                                </resourcecount>
                                <fail message="fileset does not match any xml file (use same fileset for actual validation)">
                                    <condition>
                                        <equals arg1="${xml.count}" arg2="0"/>
                                    </condition>
                                </fail>
                                <echo message="validating ${xml.count} xml files"/>
                                <schemavalidate failonerror="false">
                                    <schema namespace="http://www.intertrust.ru/schema/palette/cat-ui" file="src/main/resources/xsd/cat-ui-1.0.xsd"/>
                                    <schema namespace="http://www.intertrust.ru/schema/palette/tn-ui" file="src/main/resources/xsd/tn-ui-1.0.xsd"/>
                                    <schema namespace="http://www.intertrust.ru/schema/palette/tn-schema" file="src/main/resources/xsd/tn-schema-1.0.xsd"/>
                                    <schema namespace="http://www.intertrust.ru/schema/palette/pkd" file="src/main/resources/xsd/pkd-1.0.xsd"/>
                                    <schema namespace="http://www.intertrust.ru/schema/palette/links" file="src/main/resources/xsd/links-1.0.xsd"/>
                                    <schema namespace="http://www.intertrust.ru/schema/palette/notifications" file="src/main/resources/xsd/notifications-1.0.xsd"/>
                                    <fileset dir="src/main/resources">
                                        <include name="**/*.xml"/>
                                        <exclude name="**/collection/"/>
                                        <exclude name="**/search/"/>
                                    </fileset>
                                </schemavalidate>
                                <schemavalidate failonerror="true">
                                    <schema namespace="http://www.intertrust.ru/schema/palette/cat-ui" file="src/main/resources/xsd/cat-ui-1.0.xsd"/>
                                    <schema namespace="http://www.intertrust.ru/schema/palette/tn-ui" file="src/main/resources/xsd/tn-ui-1.0.xsd"/>
                                    <schema namespace="http://www.intertrust.ru/schema/palette/tn-schema" file="src/main/resources/xsd/tn-schema-1.0.xsd"/>
                                    <schema namespace="http://www.intertrust.ru/schema/palette/pkd" file="src/main/resources/xsd/pkd-1.0.xsd"/>
                                    <schema namespace="http://www.intertrust.ru/schema/palette/links" file="src/main/resources/xsd/links-1.0.xsd"/>
                                    <schema namespace="http://www.intertrust.ru/schema/palette/notifications" file="src/main/resources/xsd/notifications-1.0.xsd"/>
                                    <fileset dir="src/main/resources">
                                        <include name="**/*.xml"/>
                                        <exclude name="**/collection/"/>
                                        <exclude name="**/search/"/>
                                    </fileset>
                                </schemavalidate>
                                <echo message="all ${xml.count} xml documents are valid"/>
                            </target>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>
</project>
<project name>\reports\src\main\resources

В папке находятся отчеты и их конфигурация

  • csv
  • reports
  • report-import-config.xml


В папке находятся отчеты и их конфигурация

  • csv
  • reports
  • report-import-config.xml
<project name>\reports\pom.xml 
Блок кода
languagexml
titlereports \ pom.xml 
collapsetrue
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>

    <artifactId>cmrptpackage</artifactId>
    <version>CM-7.1.2.Rep.35</version>

    <parent>
        <artifactId>cm-custom</artifactId>
        <groupId>ru.intertrust.cmj</groupId>
        <version>CM-7.1.2.plt.264</version>
    </parent>
</project>
Блок кода
languagexml
titlereports \ pom.xml 
collapsetrue
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>

    <artifactId>cmrptpackage</artifactId>
    <version>{project}-7.1.2.Rep.21</version>

    <parent>
        <artifactId>cm-custom-{project}</artifactId>
        <groupId>ru.intertrust.cmj</groupId>
        <version>{project}-7.1.2.plt.126</version>
    </parent>
</project>
<project name>\pom.xml 
Блок кода
languagexml
title<project name> \ pom.xml 
collapsetrue
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>

    <groupId>ru.intertrust.cmj</groupId>
    <artifactId>cm-custom</artifactId>
    <version>CM-7.1.2.plt.264</version>
    <packaging>pom</packaging>
    <name>Parent POM for CM-7.0.0</name>
    <description>Корневой POM для сборки проекта CM-7.0.0</description>

    <modules>
        <module>cmpalette</module>
        <module>reports</module>
    </modules>

    <organization>
        <name>InterTrust</name>
        <url>http://www.intertrust.ru</url>
    </organization>
    <licenses>
        <license>
            <name>Proprietary software license</name>
            <distribution>repo</distribution>
            <comments>Copyright (c) 2013 InterTrust. All rights reserved.</comments>
        </license>
    </licenses>
    <mailingLists>
        <mailingList>
            <name>Техническая поддержка</name>
            <post>techsupport@intertrust.ru</post>
        </mailingList>
    </mailingLists>
    <issueManagement>
        <system>jira</system>
        <url>http://jira.inttrust.ru/browse/cmsix</url>
    </issueManagement>
    <scm>
        <connection>scm:git:ssh://git@stash.inttrust.ru:7999/cmj/cm-palette-config.git</connection>
        <developerConnection>scm:git:ssh://git@stash.inttrust.ru:7999/cmj/cm-palette-config.git</developerConnection>
        <tag>HEAD</tag>
    </scm>
    <ciManagement>
        <system>jenkins</system>
        <url>https://jenkins.inttrust.ru/job/Builds/job/cm-palette-config/job/master/</url>
    </ciManagement>

    <properties>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
    </properties>

    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-jar-plugin</artifactId>
                <version>2.3.2</version>
                <configuration>
                    <archive>
                        <manifest>
                            <addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
                        </manifest>
                        <manifestEntries>
                            <Implementation-Title>${project.name}</Implementation-Title>
                            <Implementation-Version>${project.version}</Implementation-Version>
                            <Implementation-Vendor-Id>${project.groupId}</Implementation-Vendor-Id>
                            <Implementation-Vendor>${project.organization.name}</Implementation-Vendor>
                        </manifestEntries>
                    </archive>
                </configuration>
            </plugin>

            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-release-plugin</artifactId>
                <version>2.4.1</version>
                <configuration>
                    <releaseProfiles>release</releaseProfiles>
                    <preparationGoals>clean install</preparationGoals>
                    <goals>deploy</goals>
                    <autoVersionSubmodules>true</autoVersionSubmodules>
                    <pushChanges>false</pushChanges>
                    <autoVersionSubmodules>true</autoVersionSubmodules>
                    <localCheckout>true</localCheckout>
                    <tagNameFormat>CM-7.0.0.plt.@{project.version}</tagNameFormat>
                </configuration>
            </plugin>
        </plugins>
    </build>

    <repositories>
        <repository>
            <id>intertrust.releases</id>
            <snapshots><enabled>true</enabled></snapshots>
            <url>http://sup.inttrust.ru:8081/nexus/content/groups/public/</url>
        </repository>
    </repositories>
    <pluginRepositories>
        <pluginRepository>
            <id>intertrust.releases</id>
            <url>http://sup.inttrust.ru:8081/nexus/content/groups/public/</url>
        </pluginRepository>
    </pluginRepositories>
    <distributionManagement>
        <repository>
            <id>intertrust.releases</id>
            <url>http://sup.inttrust.ru:8081/nexus/content/repositories/releases</url>
            <uniqueVersion>false</uniqueVersion>
        </repository>
        <snapshotRepository>
            <id>intertrust.snapshots</id>
            <url>http://sup.inttrust.ru:8081/nexus/content/repositories/snapshots</url>
            <uniqueVersion>false</uniqueVersion>
        </snapshotRepository>
    </distributionManagement>

</project>
Блок кода
languagexml
title<project name> \ pom.xml 
collapsetrue
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>

    <groupId>ru.intertrust.cmj</groupId>
    <artifactId>cm-custom-{project}</artifactId>
    <version>{project}-7.1.2.plt.126</version>
    <packaging>pom</packaging>
    <name>Parent POM for {project} CM-7.1.2</name>
    <description>Корневой POM для сборки проекта {project} CM-7.1.2</description>

    <modules>
        <module>cmpalette</module>
        <module>reports</module>
    </modules>
    <organization>
        <name>Programma-T</name>
        <url>http://www.programma-t.ru</url>
    </organization>
    <licenses>
        <license>
            <name>Proprietary software license</name>
            <distribution>repo</distribution>
            <comments>Copyright (c) 2013 InterTrust. All rights reserved.</comments>
        </license>
    </licenses>
    <mailingLists>
        <mailingList>
            <name>Техническая поддержка</name>
            <post>support@programma-t.ru</post>
        </mailingList>
    </mailingLists>
    <issueManagement>
        <system>jira</system>
        <url>http://jira.programma-t.ru/browse/{project}</url>
    </issueManagement>
    <scm>
        <url>https://gitlab.programma-t.ru/npi/cm/cm-plt.git</url>
        <connection>scm:git:https://gitlab.programma-t.ru/npi/cm/cm-plt.git</connection>
        <developerConnection>scm:git:https://git@gitlab.programma-t.ru/npi/cm/cm-plt.git</developerConnection>
        <tag>HEAD</tag>
    </scm>

    <properties>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
        <!--Версия типовой палитры -->
        <cmpalette.version>CM-7.1.2.plt.263</cmpalette.version>
    </properties>
    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-jar-plugin</artifactId>
                <version>2.3.2</version>
                <configuration>
                    <archive>
                        <manifest>
                            <addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
                        </manifest>
                        <manifestEntries>
                            <Implementation-Title>${project.name}</Implementation-Title>
                            <Implementation-Version>${project.version}</Implementation-Version>
                            <Implementation-Vendor-Id>${project.groupId}</Implementation-Vendor-Id>
                            <Implementation-Vendor>${project.organization.name}</Implementation-Vendor>
                            <Base-Palette-Verion>${cmpalette.version}</Base-Palette-Verion>
                        </manifestEntries>
                    </archive>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-release-plugin</artifactId>
                <version>2.4.1</version>
                <configuration>
                    <releaseProfiles>release</releaseProfiles>
                    <preparationGoals>clean install</preparationGoals>
                    <goals>deploy</goals>
                    <autoVersionSubmodules>true</autoVersionSubmodules>
                    <pushChanges>false</pushChanges>
                    <autoVersionSubmodules>true</autoVersionSubmodules>
                    <localCheckout>true</localCheckout>
                    <tagNameFormat>{project}-7.1.2.plt.@{project.version}</tagNameFormat>
                </configuration>
            </plugin>
        </plugins>
    </build>
    <repositories>
        <repository>
            <id>nexus</id>
            <snapshots>
                <enabled>true</enabled>
            </snapshots>
            <url>https://nexus.inttrust.ru/nexus/content/repositories/releases</url>
        </repository>
    </repositories>
</project>