Skip to content

Databus 2.x Migration Notes

JJ-Author edited this page Jun 28, 2023 · 18 revisions

POM and configuration changes 1.x-> 2.0.x

In group or artifact POM

  • change plugin version snapshot number to 2.0 <version>2.0-SNAPSHOT</version>

provide new parameters in settings.xml artifact POM

the new 2.1 plugin needs (new) config parameters to be changed that can be either defined in the POM xml or (recommended) provided as a profile e.g in the settings.xml

  • provide API key via new fielddatabus.apiKey
  • provide Databus Endpoint to use with new field databus.deployRepoURL
  • change databus.publisher to Databus account URI (need to discuss)

this can be done on global or user-level by configuring settings.xml in e.g. 2 ways

<activeProfiles>
        <activeProfile>dev-deploy</activeProfile>
    </activeProfiles>


    <profiles>
        <profile>
            <id>dev-deploy</id>
            <properties>
                <databus.apiKey>
                    [your api key]
                </databus.apiKey>
                <databus.deployRepoURL>
                    https://dev.databus.dbpedia.org/api/publish
                </databus.deployRepoURL>
                <databus.publisher>https://dev.databus.dbpedia.org/[<<<<<<<<<<youruser>>>>>>>>>>]#this</databus.publisher>
            </properties>
        </profile>
    </profiles>

or in a even more flexible way using a file that indicates on publisher or group or artifact level which profile is to be used

      <profiles>
          <profile>
                <id>dev-databus-dnkg-user</id>
                <activation>
                        <file><exists>../_use-account-dev-databus-dnkg_</exists></file>
                </activation>
                <properties>
                        <databus.apiKey>0217f085-121e-4364-aee8-e3002fdbbd1a</databus.apiKey>
                        <databus.deployRepoURL>https://dev.databus.dbpedia.org/api/publish</databus.deployRepoURL>
                        <databus.publisher>https://dev.databus.dbpedia.org/dnkg#this</databus.publisher>
                </properties>
          </profile>
      </profiles>

Legacy need to check seems not necessary anymore

-    <databus.downloadUrlPath>https://vdbpedia.informatik.uni-leipzig.de/repo/${databus.publisher.name}/${project.groupId}/${project.artifactId}/${project.version}/</databus.downloadUrlPath>
+    <databus.downloadUrlPath>https://dev.databus.dbpedia.org/${databus.publisher.name}/${project.groupId}/${project.artifactId}/${project.version}/</databus.downloadUrlPath>
+    <databus.absoluteDCATDownloadUrlPath>https://vdbpedia.informatik.uni-leipzig.de/${databus.publisher.name}/${project.groupId}/${project.artifactId}/${project.version}/</databus.absoluteDCATDownloadUrlPath>