IDEMPIERE-5314 Add support to create local target platform mirror (#1362)

This commit is contained in:
hengsin 2022-06-22 22:30:01 +08:00 committed by GitHub
parent 006d47ce6a
commit a49e00520c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
10 changed files with 5045 additions and 0 deletions

View File

@ -0,0 +1,14 @@
# How to Create iDempiere Target Platform Mirror
* With following layout:
* {workspace}/idempiere/pom.xml
* {workspace}/idempiere/org.adempiere.base
* {workspace}/idempiere/org.idempiere.p2.targetplatform.mirror
* {workspace}/idempiere/org.idempiere.p2.targetplatform.mirror.feature
* {workspace}/idempiere/org.idempiere.p2.targetplatform.mirror.aggregator
* ...
* At {workspace}/idempiere, run "mvn verify"
* At {workspace}/idempiere/org.idempiere.p2.targetplatform.mirror.aggregator, run "mvn verify"
* Mirror repository will be created at {workspace}/org.idempiere.p2.targetplatform.mirror/target/repository
* Archive of mirror repository will be created at {workspace}/org.idempiere.p2.targetplatform.mirror with name org.idempiere.p2.targetplatform.mirror-{version}-SNAPSHOT.zip
(replace {version} with current version of the build, for e.g 10.0.0)
* The generated mirror repository can be used as folder base target platform for development work

View File

@ -0,0 +1,21 @@
<?xml version="1.0" encoding="UTF-8"?>
<project
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<groupId>org.idempiere</groupId>
<artifactId>org.idempiere.p2.targetplatform.mirror.aggregator</artifactId>
<packaging>pom</packaging>
<parent>
<groupId>org.idempiere</groupId>
<artifactId>org.idempiere.parent</artifactId>
<version>${revision}</version>
<relativePath>../org.idempiere.parent/pom.xml</relativePath>
</parent>
<modules>
<module>../org.idempiere.p2.targetplatform</module>
<module>../org.idempiere.p2.targetplatform.mirror</module>
<module>../org.idempiere.p2.targetplatform.mirror.feature</module>
</modules>
</project>

View File

@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>org.idempiere.p2.targetplatform.mirror.feature</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.pde.FeatureBuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.pde.FeatureNature</nature>
</natures>
</projectDescription>

View File

@ -0,0 +1,11 @@
# How to Update feature.xml
* Setup iDempiere development workspace for Eclipse. The Eclipse workspace should have no build errors.
* Using the feature project wizard, create a new feature for the target platform. You will remove this project at the end so just give it an arbitrary name.
* In the plugin selection page, the plugins listed are the ones in your target platform together with your workspace plugin projects.
* Select Initialize from the plugin list and Select all plugins.
* De-select your workspace plugins(org.idempiere.*, org.adempiere.*, org.compiere.*, org.apache.ecs, etc).
* De-select platform launcher plugins (macos, linux and win32).
* At feature.xml editor, switch to Included Features tab and add org.eclipse.equinox.executable feature.
* Replace includes and plugin entries in feature.xml with include and plugin entries from the newly created feature.xml.
* Remove the newly created feature project.

View File

@ -0,0 +1 @@
bin.includes = feature.xml

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,12 @@
<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>org.idempiere</groupId>
<artifactId>org.idempiere.p2.targetplatform.mirror.feature</artifactId>
<packaging>eclipse-feature</packaging>
<parent>
<groupId>org.idempiere</groupId>
<artifactId>org.idempiere.parent</artifactId>
<version>${revision}</version>
<relativePath>../org.idempiere.parent/pom.xml</relativePath>
</parent>
</project>

View File

@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>org.idempiere.p2.targetplatform.mirror</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.pde.UpdateSiteBuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.pde.UpdateSiteNature</nature>
</natures>
</projectDescription>

View File

@ -0,0 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<site>
<feature url="features/org.idempiere.p2.targetplatform.mirror.feature_10.0.0.qualifier.jar" id="org.idempiere.p2.targetplatform.mirror.feature" version="10.0.0.qualifier"/>
</site>

View File

@ -0,0 +1,12 @@
<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>org.idempiere</groupId>
<artifactId>org.idempiere.p2.targetplatform.mirror</artifactId>
<packaging>eclipse-repository</packaging>
<parent>
<groupId>org.idempiere</groupId>
<artifactId>org.idempiere.parent</artifactId>
<version>${revision}</version>
<relativePath>../org.idempiere.parent/pom.xml</relativePath>
</parent>
</project>