Thanks for the replies, but all doesn't taste like the maven way.
Gruß __________________________________________________ Dipl.-Inf. (FH) Klaus Hauschild Junior-Architekt stoneball www.stoneball.de i.A.: SIEMENS AG Industry Sector Building Technologies Division I BT LV DS GT Suedstr. 74 04178 Leipzig, Germany Tel. : +49 (341) 4470-657 mailto:[email protected] Siemens Aktiengesellschaft: Chairman of the Supervisory Board: Gerhard Cromme; Managing Board: Peter Loescher, Chairman, President and Chief Executive Officer; Wolfgang Dehen, Brigitte Ederer, Heinrich Hiesinger, Joe Kaeser, Barbara Kux, Hermann Requardt, Siegfried Russwurm, Peter Y. Solmssen; Registered offices: Berlin and Munich, Germany; Commercial registries: Berlin Charlottenburg, HRB 12300, Munich, HRB 6684; WEEE-Reg.-No. DE 23691322 -----Ursprüngliche Nachricht----- Von: Marc Rohlfs [mailto:[email protected]] Gesendet: Dienstag, 1. Februar 2011 16:14 An: Maven Users List Betreff: Re: AW: Attach sources/javadoc to system-scoped dependency What do You need the sources and the download JARs for? Guess You like to be attached to the library in You IDE project, right? For Eclipse I see 2 workarounds: 1. This is evil, but it worked for me in a little test project: Deploy the JARs (main artifact, sources and javadoc) to the repository. Then declare the same dependency twice in Your POM, one with 'system' scope and one with 'provided' scope - the 'system' scoped dependency node should be declared first. 2. Create a user library for the JAR in Eclipse and configure the maven-eclipse-plugin: - use the 'classpathContainers' parameter to add the library to the project classpath. - use the 'excludes' parameter to remove the 'system' scoped library from the project classpath instead. On 01/02/11 14:34, Hauschild, Klaus (EXT) wrote: > Is there no other solution? --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
