0

以下の方法を使用して機能をインストールしようとしました ( https://docs.wso2.org/display/Carbon420/Installing+Features+using+pom+Files )

(UI ではなく) この方法を使用して機能をインストールしたい

Maven を使用してビルドしている間、機能とプラグインは対応するフォルダー構造に適切に挿入されますが、platform.xml と bundles.info ファイルは更新されません。

誰でもこれについて私を助けることができます...このMavenインストールにはバグがあると思います

私を助けてください ...

以下は私のpom.xml構成です

`<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/maven-v4_0_0.xsd">
    <modelVersion>4.0.0</modelVersion>
    <groupId>org.wso2.sample</groupId>
    <artifactId>sample-feature-installation</artifactId>
    <version>1.0.0</version>
    <packaging>pom</packaging>
    <name>Creating custom distribution</name>

    <build>
        <plugins>
            <plugin>
                <groupId>org.wso2.maven</groupId>
                <artifactId>carbon-p2-plugin</artifactId>
                <version>1.5.1</version>
                <executions>
                    <execution>
                        <id>feature-install</id>
                        <phase>package</phase>
                        <goals>
                            <goal>p2-profile-gen</goal>
                        </goals>
                        <configuration>
                            <profile>default</profile>
                            <metadataRepository>file://D:/p2-repo/</metadataRepository>
                            <artifactRepository>file://D:/p2-repo/</artifactRepository>
                            <destination>wso2carbon-4.2.0/wso2carbon-4.2.0/repository/components</destination>
                            <deleteOldProfileFiles>true</deleteOldProfileFiles>
                            <features>
                                <feature>
                                    <id>org.wso2.carbon.student.mgt.feature.group</id>
                                    <version>4.2.0</version>
                                </feature>
                            </features>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-antrun-plugin</artifactId>
                <version>1.1</version>
                <executions>
                    <execution>
                        <phase>package</phase>
                        <configuration>
                            <tasks>
                                <replace token="false" value="true" dir="wso2carbon-4.2.0/wso2carbon-4.2.0/repository/components/default/configuration/org.eclipse.equinox.simpleconfigurator">
                                    <include name="**/bundles.info"/>
                                </replace>
                            </tasks>
                        </configuration>
                        <goals>
                            <goal>run</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>
    <repositories>
        <repository>
            <id>wso2-nexus</id>
            <name>WSO2 internal Repository</name>
            <url>http://maven.wso2.org/nexus/content/groups/wso2-public/</url>
            <releases>
                <enabled>true</enabled>
                <updatePolicy>daily</updatePolicy>
                <checksumPolicy>ignore</checksumPolicy>
            </releases>
        </repository>
    </repositories>
    <pluginRepositories>
        <pluginRepository>
            <id>wso2-maven2-repository</id>
            <url>http://dist.wso2.org/maven2</url>
        </pluginRepository>
        <pluginRepository>
            <id>wso2-maven2-repository2</id>
            <url>http://dist.wso2.org/snapshots/maven2</url>
        </pluginRepository>
    </pluginRepositories>
</project>`

mvn clean install .buildを使用している間、成功していますが、私が言ったように、機能とプラグインフォルダーのみが更新されています... bundles.info(D:\Carbon.com\wso2carbon-4.2.0\wso2carbon-4.2. 0\repository\components\default\configuration\org.eclipse.equinox.simpleconfigurator\bundles.info) およびplatform.xml(D:\Carbon.com\wso2carbon-4.2.0\wso2carbon-4.2.0\repository\components\default\configuration \org.eclipse.update\platform.xml)

デフォルトの内部ではなく、ここ (D:\Carbon.com\wso2carbon-4.2.0\wso2carbon-4.2.0\repository\components) 内に構成を作成したフォルダーがあります。

これについて私を助けてください....

4

0 に答える 0