Jump to: navigation, search

Difference between revisions of "Getting Tycho"

m
Line 7: Line 7:
 
<pre>
 
<pre>
 
<properties>
 
<properties>
   <tycho-version>0.22.0</tycho-version>
+
   <tycho-version>0.23.0</tycho-version>
 
</properties>
 
</properties>
  

Revision as of 02:42, 8 June 2015

Tycho is a Maven extension, so it doesn't need to be downloaded manually. Instead, Maven will automatically download it from Maven Central when you reference the Tycho build extension or one of the Tycho Extras plugins in your POM.

Obviously, you need to have Maven installed. We recommend to use at least Maven 3.1.1. The minimum required version is 3.0.

To use the Tycho build extension, add the following configuration in your parent POM:

<properties>
   <tycho-version>0.23.0</tycho-version>
</properties>

<build>
   <plugins>
      <plugin>
         <groupId>org.eclipse.tycho</groupId>
         <artifactId>tycho-maven-plugin</artifactId>
         <version>${tycho-version}</version>
         <extensions>true</extensions>
      </plugin>
   </plugins>
</build>

Then you can make use of the Tycho packaging types to build Eclipse plug-ins, features, p2 repositories, and Eclipse-based applications.

See the release notes for a list of all available Tycho versions.


Getting Tycho SNAPSHOTS

If you want to use the latest development version of Tycho 0.23.0-SNAPSHOT, update the tycho-version property accordingly and add the Maven repository containing the Tycho snapshots in your parent POM:

<pluginRepositories>
   <pluginRepository>
      <id>tycho-snapshots</id>
      <url>https://repo.eclipse.org/content/repositories/tycho-snapshots/</url>
   </pluginRepository>
</pluginRepositories>


If you want to make the Tycho development version available in all your builds, you can also add the tycho-snapshots repository in your settings.xml:

<settings>

   <profiles>
      <profile>
         <id>tycho-snapshots</id>
         <pluginRepositories>
            <pluginRepository>
               <id>tycho-snapshots</id>
               <url>https://repo.eclipse.org/content/repositories/tycho-snapshots/</url>
               <releases>
                  <enabled>false</enabled>
               </releases>
            </pluginRepository>
         </pluginRepositories>
      </profile>
   </profiles>

   <activeProfiles>
      <activeProfile>tycho-snapshots</activeProfile>
   </activeProfiles>

</settings>