Domanda

I have created a profile:

<profiles>
      <!-- Snapshot profile -->
      <profile>
         <id>snapshot-profile</id>
         <activation>
            <property>
               <name>performSnapshot</name>
               <value>true</value>
            </property>
         </activation>
         <properties>
             <cloud.site.url>http://myrepo/${project.groupId}/${project.artifactId}/${project.version}</cloud.site.url>
            <cloud.site.id>xyz-snapshot</cloud.site.id>
            <cloud.site.name>My Repo</cloud.site.name>
            <cloud.site.deploy.url>scp://myrepo/${project.groupId}/${project.artifactId}/${project.version}/</cloud.site.deploy.url>
         </properties>
         <distributionManagement>
            <snapshotRepository>
               <id>rabbit</id>
               <name>rabbit Snapshot Repository</name>
               <url>http://myrepo/fix-snapshot/</url>
               <uniqueVersion>false</uniqueVersion>
            </snapshotRepository>
            <site>
               <id>${cloud.site.id}</id>
               <name>${cloud.site.name}</name>
               <url>${cloud.site.deploy.url}</url>
            </site>
         </distributionManagement>
      </profile>
</profiles>

To run the profile I use the following command : clean site-deploy -DperformSnapshot=true -U

I have jira issue management use for regular site deploy :

<issueManagement>
    <system>JIRA</system>
    <url>http://corporate.fake.corp/browse/rabbit</url>
</issueManagement> 

But I do not want this to be used during my profile site-deploy command. How can I achieve this, any guidance!!!

È stato utile?

Soluzione

You can choose which entries appear under "project information" on your site by configuring the project-info-reports-plugin

  <reporting>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-project-info-reports-plugin</artifactId>
        <version>2.7</version>
        <reportSets>
          <reportSet>
            <reports>
              <report>dependencies</report>
              <report>project-team</report>
              <report>mailing-list</report>
              <report>cim</report>
              <report>license</report>
              <report>scm</report>
            </reports>
          </reportSet>
        </reportSets>
      </plugin>
      ...
    </plugins>
  </reporting>

Include this configuration in you profile, and leave out everything you do not want to be present (issue-reporting) in this case.

Altri suggerimenti

Create another build profile which doesn't have issueManagement.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top