How to configure Maven project to use separate output folders in Eclipse

XMLWordPrintable

    • Type: Suggestion
    • Resolution: Invalid
    • None
    • Component/s: None
    • None
    • Environment:
      WinXP, Eclipse 3.5, m2eclipse plugin 0.0.9.200912160759

      I've followed the instructions at http://m2eclipse.sonatype.org/project-faq.html#8.
      When I
      Rightclick Eclipse project.
      Choose Run As Maven build...
      Enter "install" as the target.
      Enter "eclipse" as the profile.
      Select skipTests
      and then run that configuration,
      I can see sources are compiled in target-eclipse\classes.
      However the jar/war/ear files are still being generated to the target directory. E.g.:
      [INFO] [jar:jar]
      [INFO] Building jar: C:\projects\x\y\modules\backend\target\y-backend-1.0.jar
      I would have expected the jar/war/ears to also be generated underneath target-eclipse.

      Is this a bug ? Is there a workaround ?

      Thanks,
      EDH

            Assignee:
            Unassigned
            Reporter:
            Edwin Dhondt
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: