Hi, thanks for your help,
At first: in fact this is only one artifact. The full jar contains all classes of the dependecies, the api a reduced set (using filtern in the shade plugin). Even if I split that up into 2 projects, I cannot define modules then in the pom, right? I need to do s/t like that: - Build up all modules (to be sure that everything is up to date) - Build the shaded artifacts - cross-compile them (using ikvm) - put the artifact with some other stuff (doc, examples, dlls, etc).into one zip (in fact three: windows, linux, mac) - deploy all artifacts into nexus (or maybe somewhere else using wagon) Thanks again! Jan Mit freundlichen Grüßen / Best regards Jan Engler Central Research & Development SICK AG Erwin-Sick-Str. 1 79183 Waldkirch, Germany Phone +49 7681 202-3214 mailto:[email protected] http://www.sick.com Von: Joachim Durchholz <[email protected]> An: [email protected] Datum: 28.02.2013 15:38 Betreff: Re: Maven Shade Plugin Am 28.02.2013 14:50, schrieb Jan Engler: > As you might have seen, I want to have 4 artifacts: api.jar, > api-sources.jar, full.jar, full-sources.jar. Which of these are supposed to be used as dependencies in other projects? Each project can supply exactly 1 artifact for dependent Maven builds. Other software may make use of more artifacts, that's why foo-sources.jar is so commonplace - IDEs typically can use multiple artifacts, one for binaries, one for sources, one for javadoc. But only 1 binaries artifact for inclusion in other projects via the dependencies, that's it. This looks as if you need two projects, one that generates api.jar and api-sources.jar, and one that generates full.jar and full-sources.jar. Hope this points you in the right direction. Regards, Jo --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] SICK AG - Sitz: Waldkirch i. Br. - Handelsregister: Freiburg i. Br. HRB 280355 Vorstand: Dr. Robert Bauer (Vorsitzender) - Reinhard Bösl - Dr. Martin Krämer - Markus Paschmann - Markus Vatter Aufsichtsrat: Gisela Sick (Ehrenvorsitzende) - Klaus M. Bukenberger (Vorsitzender)
