Uploaded image for project: 'Dev - Nexus Repo'
  1. Dev - Nexus Repo
  2. NEXUS-3643 Integrate Aether into Nexus
  3. NEXUS-4001

Nexus generates incorrect plugin prefix in metadata

Details

    • Sub-task
    • Resolution: Fixed
    • Critical
    • 1.9
    • 1.8
    • None
    • None
    • nexus 1.8.0, running on a debian server

    Description

      I have a maven package called 'maven-database-plugin'. Here the relevant snippet from the pom.xml:

      	<artifactId>maven-database-plugin</artifactId>
      	<packaging>maven-plugin</packaging>
      	<name>EL4J plugin database</name>
      	<build>
      		<plugins>
      			<plugin>
      				<groupId>org.apache.maven.plugins</groupId>
      				<artifactId>maven-plugin-plugin</artifactId>
      				<configuration>
      					<goalPrefix>db</goalPrefix>
      				</configuration>
      			</plugin>
      
      

      Note that an explicit goalPrefix (db) is defined, and that the default prefix would be 'database'.

      Now the problem is, that nexus uses the default prefix instead of the declared on in maven-metadata.xml. Relevant snippet:

          <plugin>
            <name>EL4J plugin database</name>
            <prefix>database</prefix>
            <artifactId>maven-database-plugin</artifactId>
          </plugin>
      

      Do I have nexus misconfigured or is this indeed a bug?

      Thanks!

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              Anonymous Anonymous
              Peter Lynch Peter Lynch
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                tigCommentSecurity.panel-title