Publish raw assets
Upload JDK, JRE and tool archives, and the resource archives Dassault ships.
Two kinds of artifact reach the repository outside the normal publication flow: the raw assets that set up a development environment, and the resource archives Dassault ships with the tool.
Raw assets
Arrange the JDK, JRE, tool archives and user presets as the asset layout describes, then upload the whole folder:
./gradlew publishAsset -Psource=path/to/your-folder/publishAsset accepts a single file as well as a directory, and takes an optional
-Pdestination=<path> to place the upload somewhere other than the mirrored source path.
The upload targets the repository named by
com.mbseconsulting.forge.assets.repository, which is a raw repository in Nexus or a generic
repository in Artifactory. From there downloadJdk, downloadJre and downloadCatiaMagic read it
back.
Vendor resource archives
CATIA Magic ships its own resources and plugins as ZIP archives, found under
data/resourcemanager/distribution in a tool installation. Publishing them turns them into Maven
artifacts that projects can depend on.
Collect the archives in a folder — its internal shape does not matter — and point the project at it:
forge {
externalZips.from(fileTree("path/to/your/folder/"))
}Then build the registry:
./gradlew createRegistryTwo tasks run. createExternalZipIndex parses every archive in the folder, extracts the resources
and plugins it finds, and writes external-index.json. createRegistry then combines that index
with what the remote repository already holds and writes registry.json, which is what makes
publication possible.
Publish the result:
./gradlew publishAllExpected resolution errors
A partially populated repository produces errors like these:
✗ com.3ds.resources:cameo-data-modeler:2022.1.0: Could not resolve plugins dependency id='com.nomagic.magicdraw.ce', name='Code Engineering', semver='2022.1.0'
✗ com.3ds.resources:information-system-for-training-organization:2021.0.0: Could not resolve resources dependency id='1480', name='Cameo Requirements Modeler', semver='2021.0.0'
✗ com.3ds.plugins:cameo-simulation-toolkit:2021.1.0: Could not resolve plugins dependency id='com.nomagic.magicdraw.plugins.impl.sysml', name='', semver='2021.1.0'Each line names a resource or plugin whose own dependencies are absent from both the folder and the repository. The archives that did resolve are published; the rest are skipped.
Getting a complete repository means assembling a folder with the resources and plugins from every CATIA Magic version you support — 2024x and onwards — and running the steps above again. Each pass resolves more, because the previous pass added the artifacts the next one needs.