title: gradle - how to declare a dependency of a jar in a jar
body: <p>Using gradle, I am consuming a build from an archiva repository.  One of the jars (<code>javax.jms_1.1.0.200810061358.jar</code>) has the following content:</p>
  
  <pre><code>about.html
  about_files
  LICENSE.txt
  jms.jar
  META-INF
  MANIFEST.MF
  </code></pre>
  
  <p>The jar I need is actually the jms.jar inside this <code>javax.jms_1.1.0.200810061358.jar</code></p>
  
  <p>The only way I've been able to consume this jar is by pulling jms.jar
  out of the repository's <code>javax.jms_1.1.0.200810081358.jar</code> and saving it
  to the file system and consuming it via: </p>
  
  <pre><code>repositories { flatDir: my_dir_with_jms.jar_in_it}
  </code></pre>
  
  <p>someone on the gradle list suggested using an Ivy packager resolver.  </p>
  
  <p>I looked at this <a href="http://ivyroundup.googlecode.com/svn/wiki/files/packager.html" rel="nofollow noreferrer">link</a> and was
  left very confused.  I do have other ivy resolvers set up like this:</p>
  
  <pre><code>addIvyPattern 'http://archivaserver:8080/archiva/repository/osgi-internal/[organisation]/[module]/[revision]/ivy_[revision].xml'
     addArtifactPattern
  "http://archivaserver:8080/archiva/repository/osgi-official/[organisation]/[organisation]/[module]_[revision](-[classifier]).[ext]"
  </code></pre>
  
  <p>Anyone know of a good solution to this?</p>