Petals Studio

Component creation results in errors if the Maven repository is not in ~/.m2

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: 1.1.1
  • Fix Version/s: 1.2.0
  • Component/s: Petals Tools
  • Security Level: Public
  • Description:
    Hide

    When someone creates a new component or shared library in the studio, the studio delegates the work to Maven.
    It executes the Maven commands to create the artifacts and then perform a mvn eclipse:eclipse on the project.
    Eventually, it imports the project in the workspace. And if the M2_REPO variable is not set, it defines it.

    By default, it assumes the Maven repository is in ~/.m2.
    However, it may happen that a user puts his repository somewhere else. In that case, the wizard results in errors.
    In fact, the wizard should look at the the settings.xml file in ~/.m2.

    If it contains something like

    <localRepository>D:/InstallationLogiciels/Maven/repository</localRepository>

    then the studio should use this value. Otherwise, it can keep the default default value of ~/.m2.

    Show
    When someone creates a new component or shared library in the studio, the studio delegates the work to Maven. It executes the Maven commands to create the artifacts and then perform a mvn eclipse:eclipse on the project. Eventually, it imports the project in the workspace. And if the M2_REPO variable is not set, it defines it. By default, it assumes the Maven repository is in ~/.m2. However, it may happen that a user puts his repository somewhere else. In that case, the wizard results in errors. In fact, the wizard should look at the the settings.xml file in ~/.m2. If it contains something like
    <localRepository>D:/InstallationLogiciels/Maven/repository</localRepository>
    then the studio should use this value. Otherwise, it can keep the default default value of ~/.m2.
  • Environment:
    All.

People

Dates

  • Created:
    Thu, 26 May 2011 - 20:54:46 +0200
    Updated:
    Fri, 27 May 2011 - 11:37:23 +0200
    Resolved:
    Fri, 27 May 2011 - 11:37:18 +0200