These are chat archives for fiji/fiji

23rd
Mar 2018
Jean-Yves Tinevez
@tinevez
Mar 23 2018 16:31
Hi all.
I am having troubles creating a new update site for Fiji.
I successfully created the TrackMateCSVImporteraccount on the wiki, and validated my email. But when I try to create the corresponding update site in Fiji updater, it does not work.
I cliked on Add my site in the updater, and input TrackMateCSVImporter as account name. The updater then asks me for my password, but it rejects it and this message appears in the console:
Did not get a token!
Did I do something wrong?
Jan Eglinger
@imagejan
Mar 23 2018 16:40
You did set the upload password in addition to your wiki password, right?
Jean-Yves Tinevez
@tinevez
Mar 23 2018 16:40

And another question: (sorry for the spam).
I meet a enforcer-related compile error for this very project.
It depends on the bioformats_plugin artifact, and it generate the following error:

[WARNING] Rule 3: org.apache.maven.plugins.enforcer.BanDuplicateClasses failed with message:
No Duplicate Classes Allowed!
- For duplicate transitive dependencies, add dependency exclusions.
- For duplications between direct dependencies, resolve or add
  ignored classes to this rule's configuration.

  Found in:
    commons-io:commons-io:jar:2.6:compile
    ch.systems.cisd:jhdf5:jar:14.12.0:compile
  Duplicate classes:
    org/apache/commons/io/FileCleaningTracker.class
    org/apache/commons/io/comparator/SizeFileComparator.class
    org/apache/commons/io/output/ProxyWriter.class

which is fine I guess. But how to skip this?

@imagejan .... no
Where do you do this?
Jan Eglinger
@imagejan
Mar 23 2018 16:44
Also note that it's better to ask @ctrueden to add upload permissions to your existing personal account, instead of creating a new account...
Sorry, on mobile. ...
Jean-Yves Tinevez
@tinevez
Mar 23 2018 16:44
ok.
Jan Eglinger
@imagejan
Mar 23 2018 16:45
Special page set upload password on the wiki.
Jean-Yves Tinevez
@tinevez
Mar 23 2018 16:45
aaaaaaah
Jan Eglinger
@imagejan
Mar 23 2018 16:46
Re enforcer: you can add exclude statements to your pom, no?
It should all be documented somewhere on the wiki :smile:
Jean-Yves Tinevez
@tinevez
Mar 23 2018 16:49
this one is a tough nut to crack even with google.
Curtis Rueden
@ctrueden
Mar 23 2018 16:53
<properties><enforcer.skip>true</enforcer.skip></properties>
But then we come to your house with torches and pitchforks.
For testing and development, it is temporarily OK. But better to fix with exclusions as mentioned in the error message.
The problem is that ch.systems.cisd:jhdf5 is an uber-JAR.

You can avoid the error by adding:

<exclusions>
  <exclusion>
    <groupId>commons-io</groupId>
    <artifactId>commons-io</artifactId>
  </exclusion>
</exclusions>

in the <dependency> block of whatever dependency is pulling in commons-io.

Best fix would be for us to deploy a new jhdf5 that does not do this evilness.
Jean-Yves Tinevez
@tinevez
Mar 23 2018 16:57
ok thanks this is clear.
Curtis Rueden
@ctrueden
Mar 23 2018 16:57
Regarding the update site: as @imagejan said, I can create whatever update site you want, without you needing to make a wiki account, if you ask. And I can grant JeanYvesTinevez and/or other users permission to push to it .
Jean-Yves Tinevez
@tinevez
Mar 23 2018 16:57
I did not know. What do you favor?
Curtis Rueden
@ctrueden
Mar 23 2018 16:58
I have a weak preference to avoid creating dummy wiki accounts solely for the side effect of making an update site. But I do not care a lot—I fully appreciate that you can do it right now without waiting for other humans by doing that.
Jean-Yves Tinevez
@tinevez
Mar 23 2018 17:00
Agreed.
Curtis Rueden
@ctrueden
Mar 23 2018 17:01
@tinevez It looks like you already were able to successfully upload to TrackMateCSVImporter?
But just in case, I granted JeanYvesTinevez user the permission as well, for the future.
Jean-Yves Tinevez
@tinevez
Mar 23 2018 17:02
yep. I had forgotten about the upload password. @imagejan reminded me and everything rolled.
Jean-Yves Tinevez
@tinevez
Mar 23 2018 17:08
The exclusions fix does not have an effect. I think I may have to live with -Dskip.enforcer=true for a while.
Curtis Rueden
@ctrueden
Mar 23 2018 18:31
I'd suggest checking the dependency tree using the Dependency Hierarchy tab of the pom.xml in Eclipse.
You can search it for where the commons-io is coming in.
You need to plug all holes in your metaphorical boat.