Re: Including Maven Dependencies in Build

Dennis Putnam <[email protected]>
Newsgroups gmane.comp.jakarta.ant.user
Message-ID <[email protected]>
On 12/7/2018 12:10 AM, Jaikiran Pai wrote:
> Hello Dennis,
>
>
> On 07/12/18 1:15 AM, Dennis Putnam wrote:
>>         <artifact:dependencies filesetid="maven-dependencies">
>>
> I don't see this fileset being used in the rest of the target(s) which
> generate your jar file. Maybe you missed using it to copy over the
> dependency files? Take a look at section "Using FileSets and the Version
> Mapper" of http://maven.apache.org/ant-tasks/examples/dependencies.html
> for an example on how you could use it.
>
> -Jaikiran

Hi Jaikiran,

Thanks for the reply. I thought it must have been some thing like that.
After reading your link and as a maven noob and not much better with
ant, I see I have to copy those dependencies. But it is not clear where
they need to be copied to. The example shows "lib" but I don't see how
javac knows to look there unless it is by default. My build directory is
a local git repository so the structure is "bin" and "src" in that
directory. There is no "lib" at the present time. That is also were I
have the build xml file for ant along with some files for obtaining some
information during the ant build. The output file for the jar is in a
directory in "/tmp" which is later copied to its final location.
signature.asc (application/pgp-signature, 196 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (MingW32)

iEYEARECAAYFAlwK1LoACgkQ/fiWYqZ2tVQJUACg8AOOsdpk4KwUsOF1BOIE7LGt
c3wAnifgbeGtdoDEIHUOY4MYthZiTcKk
=Klrj
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.