Java

NAVIGATION
CATEGORIES
REFERRENCE
LINKS
  • Two questions about install:install-file

    2 answers - 735 bytes - related search similar search Add To My Delicious Add To My Stumble Upon Add To My Google Mark Add To My Facebook Add To My Digg Add To My Reddit

    I frequently install stuff like this in my local repository:
    mvn install:install-file -DgroupId=org.springframework
    -DartifactId=spring \
    -Dversion=2.0-RC4 -Dpackaging=jar -Dfile=/path/to/file
    In this case I'm installing spring, which also comes with a
    spring-src.jar. Is it possible to install the sources too using the
    above command?
    Is it possible to specify an alternative repository location? I tried
    the undocumented localRepository option (setting it to /tmp or
    file:///tmp) but that did not have any effect.
    S.
    To unsubscribe, e-mail: users-unsubscribe (AT) maven (DOT) apache.org
    For additional commands, e-mail: users-help (AT) maven (DOT) apache.org
  • No.1 | | 561 bytes | |

    Stefan Arentz wrote:

    In this case I'm installing spring, which also comes with a
    spring-src.jar. Is it possible to install the sources too using the
    above command?

    No need to. Simply drop them into the right directory. Using
    install:install-file is only required for the usual jar's and pom's,
    because the metadata files are possibly modified.

    Jochen

    To unsubscribe, e-mail: users-unsubscribe (AT) maven (DOT) apache.org
    For additional commands, e-mail: users-help (AT) maven (DOT) apache.org
  • No.2 | | 797 bytes | |

    If you prefer doing it through maven, I think you do another
    install:install-file with "-Dclassifier=sources" to install your sources jar

    9/19/06, Jochen Wiedmann <jochen.wiedmann (AT) gmail (DOT) comwrote:

    Stefan Arentz wrote:

    In this case I'm installing spring, which also comes with a
    spring-src.jar. Is it possible to install the sources too using the
    above command?

    No need to. Simply drop them into the right directory. Using
    install:install-file is only required for the usual jar's and pom's,
    because the metadata files are possibly modified.
    --
    Jochen

    To unsubscribe, e-mail: users-unsubscribe (AT) maven (DOT) apache.org
    For additional commands, e-mail: users-help (AT) maven (DOT) apache.org
    --

Re: Two questions about install:install-file


max 4000 letters.
Your nickname that display:
In order to stop the spam: 8 + 8 =
QUESTION ON "Java"

EMSDN.COM