How to create a repository id in a generated target? [message #1784075] |
Thu, 22 March 2018 05:36  |
Eclipse User |
|
|
|
We define our targlet in Oomph and generate a target definition from it using TargetDefinitionGenerator.
Our build server uses this target definition. In order to access some of the repositories, we need to supply an repository id, so maven can relate this to the correct credentials.
Is there any way to store the ID in Oomph? Currently, we need to adjust the generated target definition manually.
The current generated target definition looks like
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<?pde version="3.8"?>
<target name="Generated from My GIT" sequenceNumber="23">
<locations>
<location includeAllPlatforms="false" includeConfigurePhase="true" includeMode="planner" includeSource="false" type="InstallableUnit">
<unit id="org.eclipse.egit.feature.group" version="4.9.2.201712150930-r"/>
<repository location="https://some/internal/repo/requiring/authentication/"/>
<repository location="http://download.eclipse.org/releases/oxygen"/>
</location>
</locations>
</target>
We need to supply an id to the first repository location:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<?pde version="3.8"?>
<target name="Generated from My GIT" sequenceNumber="23">
<locations>
<location includeAllPlatforms="false" includeConfigurePhase="true" includeMode="planner" includeSource="false" type="InstallableUnit">
<unit id="org.eclipse.egit.feature.group" version="4.9.2.201712150930-r"/>
<!-- ID ADDED-->
<repository id="myCustomId" location="https://some/internal/repo/requiring/authentication/"/>
<repository location="http://download.eclipse.org/releases/oxygen"/>
</location>
</locations>
</target>
If there was no way to do this, we might develop a patch for Oomph. What do you think would be the best way to store the ID within the oomph file? I could imagine extending the internal model for repositories, or creating an annotation for repositories that's recognized by the TargetDefinitionGenerator.
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.24267 seconds