Uploaded image for project: 'Continuum'
  1. Continuum
  2. CONTINUUM-1740

Problems with working directory and maven2 multiprojects

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Incomplete
    • 1.1
    • None
    • None
    • None
    • Patch

    Description

      I experieced problems with maven2 multiprojects in continuum, hen modules are referencing each other relatvely. So I made the following change to class DefaultWorkingDirectoryService of project continuum-commons:
      if ( project.getWorkingDirectory() == null || project.getWorkingDirectory().equals(Integer.toString( project.getId() )))

      { // project.setWorkingDirectory( Integer.toString( project.getId() ) ); project.setWorkingDirectory(project.getProjectGroup().getName() + '/' + project.getArtifactId()); }

      This assumes that every project group in a continuum installation has a unique name and that an artifact is only once in a project group. I think this is realistic.

      But in any case it would be nice to change working dir handling to meet the following rules:

      • all modules of a multoproject are located in the same working directory
      • the directories of the modules are named after their artifactId

      So the working dir structure used by continuum is the same as it would be normally for a deveopper.

      Attachments

        Issue Links

          Activity

            People

              brett Brett Porter
              lucien@wellernet.ch Lucien Weller
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: