maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Anders Hammar <and...@hammar.net>
Subject Re: Attach sources/javadoc to system-scoped dependency
Date Tue, 01 Feb 2011 13:42:58 GMT
Without going into a discussion regarding the primary artifact, have you
tried adding the sources and javadoc artifacts to the repo manager (under
the correct GAV)? Might work...might not...

/Anders

On Tue, Feb 1, 2011 at 14:34, Hauschild, Klaus (EXT) <
klaus.hauschild.ext@siemens.com> wrote:

> I expected this answer. My current workaround looks like that: manually
> deploying the sourecs-jar and the javadoc-jar into my local repo.
> For jMonkeyEngine it is not possible to convert the jar to a real maven
> artifact. It is mandatory to address this jar file absolute in the machines
> installation. On execution there will be a lookup for native libraries
> relative to jMonkeyEnige3.jar
>
> Is there no other solution?
>
>
> -----Urspr√ľngliche Nachricht-----
> Von: anders.g.hammar@gmail.com [mailto:anders.g.hammar@gmail.com] Im
> Auftrag von Anders Hammar
> Gesendet: Dienstag, 1. Februar 2011 14:20
> An: Maven Users List
> Betreff: Re: Attach sources/javadoc to system-scoped dependency
>
> Add the artifact (including javadoc and sources artifacts) to your
> repository manager and use a normal compile scope. Then it will work
> automatically.
> Using system scope is deprecated and highly discouraged as your build is
> not
> portable.
>
> /Anders
>
> On Tue, Feb 1, 2011 at 14:03, Hauschild, Klaus (EXT) <
> klaus.hauschild.ext@siemens.com> wrote:
>
> > Hi,
> >
> > we're using a system scoped dependency to jMonkeyEngine3 like this:
> >    <dependency>
> >      <groupId>com.jme3</groupId>
> >      <artifactId>jMonkeyEngine3</artifactId>
> >      <version>3</version>
> >      <scope>system</scope>
> >      <systemPath>${env.JME3_HOME}/jMonkeyEngine3.jar</systemPath>
> >    </dependency>
> > The integration by m2e into Eclipse and building packages with Maven are
> > very fine. But in Eclipse there are no sources nor javadoc available
> without
> >  manipulations by hand. I'm looking for an automatic solution.
> >
> > Is there a way?
> >
> > Thanks, Klaus
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message