Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] Adding additional manifest entries with Tycho

We’re using the built-in support for generating Eclipse-SourceReferences manifest header

 

http://www.eclipse.org/tycho/sitedocs/tycho-packaging-plugin/package-plugin-mojo.html#sourceReferences

 

https://wiki.eclipse.org/Tycho/FAQ#How_to_generate_Eclipse-SourceReferences_MANIFEST_header.3F

 

 

From: tycho-user-bounces@xxxxxxxxxxx [mailto:tycho-user-bounces@xxxxxxxxxxx] On Behalf Of Jim Klo
Sent: Thursday, June 23, 2016 4:04 PM
To: Tycho user list <tycho-user@xxxxxxxxxxx>
Subject: [EXTERNAL] Re: [tycho-user] Adding additional manifest entries with Tycho

 

Thanks,

 

That seems to “mostly” work.  Only “mostly” because each module's artifactId get appended the $scm.url defined in the parent pom when doing this - and maybe a solution on how to prevent it?

 

- Jim

 

On Jun 23, 2016, at 1:45 PM, Justin Georgeson <JGeorgeson@xxxxxxx> wrote:

 

We do this with the tycho-packaging-plugin, which takes the same archive [1] configuration parameter

 

[1] https://eclipse.org/tycho/sitedocs/tycho-packaging-plugin/package-plugin-mojo.html#archive

 

From: tycho-user-bounces@xxxxxxxxxxx [mailto:tycho-user-bounces@xxxxxxxxxxx] On Behalf Of Jim Klo
Sent: Thursday, June 23, 2016 3:34 PM
To: Tycho user list <tycho-user@xxxxxxxxxxx>
Subject: [EXTERNAL] [tycho-user] Adding additional manifest entries with Tycho

 

Hi, 

 

I’d like to add a custom metadata section into my MANIFEST.MF files during our CI build process.  When building standard JAR libraries, I just add the following profile and it just works:

 

          <profile>

               <id>with-scm-info</id>

               <activation>

                 <property><name>scm-revision</name></property>

               </activation>

               <build>

                 <plugins>

                   <plugin>

                     <groupId>org.apache.maven.plugins</groupId>

                     <artifactId>maven-jar-plugin</artifactId>

                     <version>2.6</version>

                     <configuration>

                       <archive>

                         <manifest>

                           <addDefaultImplementationEntries>true</addDefaultImplementationEntries>

                         </manifest>

                         <manifestSections>

                           <manifestSection>

                             <name>Sunflower</name>

                             <manifestEntries>

                               <scm-url>${project.scm.url}</scm-url>

                               <scm-revision>${scm-revision}</scm-revision>

                             </manifestEntries>

                           </manifestSection>

                         </manifestSections>

                       </archive>

                     </configuration>

                   </plugin>

                 </plugins>

               </build>

             </profile>

 

 

Now I want to add the same information into the bundle manifest.  And not sure how to do this as the tycho-packaging:package-plugin goal seems to be what handle this step.

 

Any suggestions?

 

Thanks,

 

- Jim

 

Jim Klo

Senior Software Engineer

Center for Software Engineering

SRI International

t.            @nsomnac

 


This e-mail, including any attached files, may contain confidential and privileged information for the sole use of the intended recipient. Any review, use, distribution, or disclosure by others is strictly prohibited. If you are not the intended recipient (or authorized to receive information for the intended recipient), please contact the sender by reply e-mail and delete all copies of this message.

_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/tycho-user

 


Back to the top