<html><head><style>body{font-family:Helvetica,Arial;font-size:13px}</style></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;">Hi all,</div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;"><br></div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;">I’ve got an OSGi Java application from which I’m trying to build a snap to support both the amd64 and armhf architectures. The application is built via a Maven POM whose output is a directory structure containing JAR files, config files, executable shell script, etc.</div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;"><br></div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;">I’ve created a snapcraft.yaml for the project and am having trouble getting things to build correctly. I’ve tried two different approaches...</div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;"><br></div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;">Approach #1</div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;"><br></div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;">parts:</div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;"> myapp:</div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;"> plugin: maven</div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;"> source: .</div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;"><br></div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;">Using this approach, snapcraft fails saying it can’t find any JAR files. Again, the output of my build is a directory structure containing many files.</div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;"><br></div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;">Approach #2</div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;"><br></div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;">parts:</div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;"> jdk:</div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;"> plugin: jdk</div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;"> source: .</div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;"> myapp:</div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;"> plugin: copy</div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;"> files:</div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;"> ...</div><div class="bloop_container"><div class="bloop_frame"> </div></div><div><br></div><div>This approach seems to work fine for the amd64 architecture (which is the hardware I’m running snapcraft on). However, when I change the architectures section of snapcraft.yml to armhf, it still puts the amd64 version of the JDK in my snap and I get errors when I try to run the snap on my armhf device.</div><div><br></div><div>Any ideas on how best to solve this issue?</div><div><br></div><div>Thanks.</div><br><div id="bloop_sign_1455669360288753920" class="bloop_sign"><div style="font-family:helvetica,arial;font-size:13px"><b style="font-family: Helvetica; font-size: 12px; line-height: normal; orphans: 2; widows: 2;">Daniel Noguerol, Owner </b><span style="font-family: Helvetica; font-size: 12px; line-height: normal; orphans: 2; widows: 2;">|</span><b style="font-family: Helvetica; font-size: 12px; line-height: normal; orphans: 2; widows: 2;"> </b><a href="http://www.whizzosoftware.com/" style="font-family: Helvetica; font-size: 12px; line-height: normal; orphans: 2; widows: 2; color: rgb(0, 0, 0);">Whizzo Software LLC</a><br style="font-family: Helvetica; font-size: 12px; line-height: normal; orphans: 2; widows: 2;"><font color="#767676" style="font-family: Helvetica; font-size: 12px; line-height: normal; orphans: 2; widows: 2;"><a href="tel://O: (888) 212-4941">O: (888) 212-4941</a> | <a href="tel://M: (303) 570-3113">M: (303) 570-3113</a></font></div></div></body></html>