Hello Dieter

(Thanks Steve for letting know that it worked for you - at least for
this time)

Le 19/07/2017 à 10:26, Dieter Stüken a écrit :

> this time
> https://repository.apache.org/(…snip…)/sis-metadata/0.8-jdk8-SNAPSHOT/
> was hit:
>
Yes, I was fearing that something like that would happen.

> Seems to be a problem with the maven build system. How are those
> timestamps and the sequence number generated?
>
It is done by the standard Maven plugin; I do not know their internal.
Normally it is "maven-jar-plugin". In Apache SIS case, we use
"maven-bundle-plugin" instead, which is supposed to do the same thing
with some extra information for OSGi bundles.


> I have the current snapshot checked out. Is it some maven plugin? Can
> I reproduce and analyze such a deployment locally?
>
Yes. You can add the following lines somewhere in the root pom.xml file
(e.g. just before the closing </project> tag):

      <distributionManagement>
        <repository>
          <id>test</id>
          <url>file:///path/to/my/directory</url>
        </repository>
      </distributionManagement>

Then, execution of "mvn deploy" shoud write in the
"/path/to/my/directory". However I'm not sure it will reproduce the
issue, because I suspect that the bug is caused by the delay between the
different files written by Maven, and writing to a local repository
would be may too fast for allowing the bug to show.

I have limited internet connection now because I'm at FOSS4G-Europe, but
next week I should be more reactive. One thing that we may try is to
abandon (for now) the use of "maven-bundle-plugin" and use the more
usual "maven-jar-plugin" instead. We would loose OSGi support on JDK8
branch, but we could keep it on trunk. Anyway, with JDK9 modularisation,
I do not know if it is worth to keep OSGi for Apache SIS.

    Martin


Reply via email to