Uploaded image for project: 'UIMA'
  1. UIMA
  2. UIMA-6458

Spurious "parsedVersion.osgiVersion" in file names in target

    XMLWordPrintableJSON

Details

    Description

      When building projects that contain Eclipse plugins (e.g. UIMA Java SDK or UIMA Ruta), the profile build eclipse plugins from the parent POM is activated and that sets the finalName to ${project.artifactId}${parsedVersion.osgiVersion}. The ${parsedVersion.osgiVersion} is set during the build process by the maven-build-helper-plugin. It appears that some parts of Maven do not like the finalName being set with the ${parsedVersion.osgiVersion}. In particular, the maven-install-plugin copies the pom.xml file to the target folder under an only partially resolved final name such as org.apache.uima.ruta.example.extensions${parsedVersion.osgiVersion}.pom. However, then the maven-install-plugin installs this file as ${artifactId}${version}.pom (resolved) into the local repository. It seems that the maven-deploy-plugin also correctly deploys the file as ${artifactId}${version}.pom (resolved) into the distribution repository.

      Optimally, it seems we should not set finalName at all. I have a feeling this is a historical artifact any no longer necessary with modern Eclipse, maven-bundle-plugin, tycho, etc.

      Attachments

        Activity

          People

            rec Richard Eckart de Castilho
            rec Richard Eckart de Castilho
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: