nar-download not downloading other architectures

61 views
Skip to first unread message

Brice Copy

unread,
Sep 13, 2017, 3:59:15 AM9/13/17
to NAR Maven plugin
Hello,

I'm having a problem with nar-download and hoping someone can point me in the right direction.

I have an assembly build that worked fine with NAR plugin version 2.
Now, it only downloads the NAR packages that match the machine's AOL.

For instance, I specify :

      <plugin>
        <groupId>com.github.maven-nar</groupId>
        <artifactId>nar-maven-plugin</artifactId>
        <version>3.5.2</version>
        <configuration>
          <classifiers>
             <classifier>amd64-Linux-gpp-jni</classifier>
             <classifier>amd64-Linux-gpp-shared</classifier>
             <classifier>amd64-Windows-msvc-jni</classifier>
             <classifier>amd64-Windows-msvc-shared</classifier>
          </classifiers>
        </configuration>

        <extensions>true</extensions>
        <executions>
          <execution>
            <goals>
              <goal>nar-download</goal>
              <goal>nar-unpack</goal>
              <goal>nar-assembly</goal>
            </goals>
          </execution>
        </executions>
        
      </plugin>

But on a linux machine, only the amd64-Linux-gpp classifiers get downloaded.
On a Windows machine, only the amd64-Windows-msvc ones get downloaded.


The build log does say :

[DEBUG] Configuring mojo 'com.github.maven-nar:nar-maven-plugin:3.5.2:nar-download' with basic configurator -->
[DEBUG]   (f) baseDir = /home/scada/workspace/dip-clean/modules/build/modules/distribution
[DEBUG]   (f) classesDirectory = /home/scada/workspace/dip-clean/modules/build/modules/distribution/target/classes
[DEBUG]   (f) classifiers = [amd64-Linux-gpp-jni, amd64-Linux-gpp-shared, amd64-Windows-msvc-jni, amd64-Windows-msvc-shared]
[DEBUG]   (f) ignore = false
[DEBUG]   (f) layout = com.github.maven_nar.NarLayout21

But the binaries for other AOLs do not get downloaded.

Where can I start looking ?


Brice Copy

unread,
Dec 4, 2017, 12:49:36 PM12/4/17
to NAR Maven plugin
Note that this is a possible regression, as I tested it with plugin version


<plugin>
  <groupId>org.codeswarm</groupId>
  <artifactId>maven-nar-plugin</artifactId>
  <version>20121119</version>
</plugin>

And the build works fine - it downloads other architectures, not just the current aol one.

Brice Copy

unread,
Dec 4, 2017, 12:50:07 PM12/4/17
to NAR Maven plugin

Greg Domjan

unread,
Dec 4, 2017, 10:28:43 PM12/4/17
to NAR Maven plugin
Hi Brice,

Most of the function for dependency management is in AbstractDependencyMojo

It looks like the process of getting nar dependencies is no longer using the function in NarManager which resolved with classifiers
com.github.maven_nar.NarManager#getAttachedNarDependencies(java.util.List, java.lang.String[])

HTH
Greg
Reply all
Reply to author
Forward
0 new messages