facebook

Maven and Jar file destination

  1. MyEclipse IDE
  2.  > 
  3. Maven for MyEclipse (Maven4MyEclipse)
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #296242 Reply

    Hobi
    Member

    I have set up a auto generated jar file upon code change using “Edit
    lunch configuration properties” window.
    It’s working fine but I would like to change the destination for jar that
    has been created. Right now, it’s putting under the project default dir.
    C:\WorkspaceMyEclipse\HRTrainingPersistence\target. What would be the
    arguments to change jar destination dir so instead of putting the jar under
    target dir, I want to change it to T:\java\lib dir somthing like that.

    Please advise.
    Hobi

    [/url]

    #296357 Reply

    Loyal Water
    Member

    Hobi,
    I’m afraid I don’t know the arguments to change the jar destination. Maybe some other user on the forum could help you out with this.

    #298612 Reply

    How about
    mvn install:install-file
    -Dfile=<path-to-file>
    -DgroupId=<group-id>
    -DartifactId=<artifact-id>
    -Dversion=<version>
    -Dpackaging=<packaging>
    -DgeneratePom=true
    ?
    Here is the link:
    http://maven.apache.org/general.html#importing-jars

    #298617 Reply

    You can change you folder by specifying different build directory:

      <build>
        <directory>some folder</directory>
      </build>

    Or by configuring jar plugin – see details here – http://maven.apache.org/plugins/maven-jar-plugin/jar-mojo.html

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: Maven and Jar file destination

You must be logged in to post in the forum log in