WSO2 Carbon 4.2.0을 설치했습니다. 온라인 제품 설명서에 따라“기능 관리-> 기능 설치-> UI를 통한 기능 설치”를 사용하여 다양한 제품을 설치하려고했지만 모든 제품을 성공적으로 설치하지 못했습니다.
http://dist.wso2.org/p2/carbon/releases/turing/으로 저장소를 추가 하고 나열된 기능을 설치 한 후 프로세스가 실패합니다. UI를 통한 설치 후 시스템이 의존성을 해결할 수없고 설치된 컴포넌트 버전을 종료하는 것 같으므로 POM (Maven)을 통한 설치를 권장합니다. 그러나 WSO2 Carbon 4.2.0에 설치할 모든 WSO2 제품을 나열하는 POM을 만드는 방법에 대해서는 더 이상 문서화되지 않았습니다.
모든 제품 (또는 목록 호환 제품)을 설치하는 것에 대해 생각하십니까?
또한 Carbon 4.2.0 P2 (.ZIP) 파일을 사용하여 제품을 설치하려고했습니다. 즉, 리포지토리 관리에서 로컬 리포지토리를 사용하여 리포지토리를 추가했지만 다음 예외와 함께 설치에 실패했습니다. webapp-classloading-environments.xml이 언급되지 않았 음을 확인했습니다. 폴더 :
[2014-02-01 14:34:55,665] ERROR {org.wso2.carbon.feature.mgt.services.prov.ProvisioningAdminService} -
Error occurred while performing provisioning actionorg.wso2.carbon.feature.mgt.core.ProvisioningException:
NLS missing message: Phase_Configure_Error in: org.eclipse.equinox.internal.p2.engine.messages
NLS missing message: session_context in: org.eclipse.equinox.internal.p2.engine.messages
Error while executing AddXMLElementAction touchpoint
C:\wso2.com\WSO2-Servers\wso2carbon-4.2.0\repository\components\default\..\..\..\repository\conf\tomcat\webapp-classloading-environments.xml (The system cannot find the file specified)
at org.wso2.carbon.feature.mgt.core.util.ProvisioningUtils.performProvisioningAction(ProvisioningUtils.java:77)
at org.wso2.carbon.feature.mgt.core.util.ProvisioningUtils.performProvis............
다음은 제품을 결합하는 데 사용할 수있는 샘플 pom 파일입니다. 다음 단계는 사용 방법을 설명합니다.
원하는 기능을 pom.xml에 추가하십시오. 샘플에는 org.wso2.carbon.webapp.mgt.feature.group 및 org.wso2.carbon.logging.mgt.feature.group의 두 가지 기능이 포함되어 있습니다. 기능 목록은 다음과 같아야합니다.
<feature>
<id>org.wso2.carbon.webapp.mgt.feature.group</id>
<version>${carbon.platform.version}</version>
</feature>
각 제품에 필요한 기능은 p2-profile-gen / pom.xml에서 찾을 수 있습니다. 예를 들어. AS 기능은 https://svn.wso2.org/repos/wso2/carbon/platform/branches/turing/products/as/5.2.1/modules/p2-profile-gen/pom.xml 에서 찾을 수 있습니다.
mvn clean install
샘플 pom.xml-
<?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/maven-v4_0_0.xsd">
<parent>
<groupId>org.wso2.appserver</groupId>
<artifactId>wso2appserver-parent</artifactId>
<version>5.2.0</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>wso2product-p2-gen</artifactId>
<packaging>pom</packaging>
<name>WSO2 Product Profile Generation</name>
<url>http://wso2.org</url>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>2.8</version>
<inherited>false</inherited>
<executions>
<execution>
<id>1-unpack-p2-agent-distribution</id>
<phase>test</phase>
<goals>
<goal>unpack</goal>
</goals>
<configuration>
<artifactItems>
<artifactItem>
<groupId>org.wso2.carbon</groupId>
<artifactId>wso2carbon-core</artifactId>
<version>${carbon.kernel.version}</version>
<type>zip</type>
<overWrite>true</overWrite>
<outputDirectory>target</outputDirectory>
</artifactItem>
</artifactItems>
</configuration>
</execution>
<execution>
<id>unpack-equinox-executable</id>
<phase>test</phase>
<goals>
<goal>unpack</goal>
</goals>
<configuration>
<artifactItems>
<artifactItem>
<groupId>org.eclipse.equinox</groupId>
<artifactId>org.eclipse.equinox.executable</artifactId>
<version>3.5.0.v20110530-7P7NFUFFLWUl76mart</version>
<type>zip</type>
<overWrite>true</overWrite>
<outputDirectory>target</outputDirectory>
</artifactItem>
</artifactItems>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.wso2.maven</groupId>
<artifactId>carbon-p2-plugin</artifactId>
<version>${carbon.p2.plugin.version}</version>
<executions>
<execution>
<id>3-p2-profile-generation</id>
<phase>package</phase>
<goals>
<goal>p2-profile-gen</goal>
</goals>
<configuration>
<profile>default</profile>
<metadataRepository>file:${basedir}/p2-repo</metadataRepository>
<artifactRepository>file:${basedir}/p2-repo</artifactRepository>
<destination>
${basedir}/target/wso2carbon-core-${carbon.kernel.version}/repository/components
</destination>
<deleteOldProfileFiles>true</deleteOldProfileFiles>
<features>
<feature>
<id>org.wso2.carbon.logging.mgt.feature.group</id>
<version>${carbon.platform.version}</version>
</feature>
<feature>
<id>org.wso2.carbon.webapp.mgt.feature.group</id>
<version>${carbon.platform.version}</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="target/wso2carbon-core-${carbon.kernel.version}/repository/components">
<include name="**/bundles.info"/>
</replace>
</tasks>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
<properties>
<carbon.platform.version>4.2.0</carbon.platform.version>
<carbon.kernel.version>4.2.0</carbon.kernel.version>
</properties>
<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-1</id>
<url>http://dist.wso2.org/maven2</url>
</pluginRepository>
<pluginRepository>
<id>wso2-maven2-repository-2</id>
<url>http://dist.wso2.org/snapshots/maven2</url>
</pluginRepository>
</pluginRepositories>
이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.
침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제
몇 마디 만하겠습니다