Skip to content

Commit

Permalink
Add mojo as a replacement for the rp2.emove-iu and task
Browse files Browse the repository at this point in the history
  • Loading branch information
laeubi committed May 12, 2024
1 parent e82043c commit 348a355
Show file tree
Hide file tree
Showing 3 changed files with 56 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
# Category
# Repositories

Repositories (also knows as P2 Updatesites) contain artifacts and metadata to install content into eclipse or use them in a Tycho build.

## Create Repositories using category.xml

A category.xml file can be used to define which content is placed into a p2 repository.
It can also specify how to display the content in the p2 installation dialog.
Expand Down Expand Up @@ -68,3 +72,15 @@ The following is an example, demonstrating a complex category definition.
```

You can read more about P2 Query Syntax [here](https://wiki.eclipse.org/Equinox/p2/Query_Language_for_p2).

## Managing Repositories

Tycho offers some tools to manage existing repositories as a replacement for the ant-tasks described [here](https://help.eclipse.org/latest/topic/org.eclipse.platform.doc.isv/guide/p2_repositorytasks.htm)

### repo2runnable

See [tycho-p2-repository:repo-to-runnable](tycho-p2-repository-plugin/repo-to-runnable-mojo.html)

### remove.iu

See [tycho-p2-repository:remove-iu](tycho-p2-repository-plugin/remove-iu-mojo.html)
4 changes: 4 additions & 0 deletions src/site/site.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,11 @@
</item>
<item name="Tycho CI Friendly Versions" href="TychoCiFriendly.html" />
<item name="Creating update sites using category.xml" href="Category.html">
</item>
<item name="Repositories" href="Repositories.html">
<item name="Tycho P2 Repository Plugin" href="tycho-p2-repository-plugin/plugin-info.html" />
<item name="Tycho P2 Repository Plugin" href="tycho-p2-repository-plugin/plugin-info.html" />

</item>
<item name="Properties">
<item name="Build Properties" href="BuildProperties.html" />
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
/*******************************************************************************
* Copyright (c) 2009, 2024 IBM Corporation and others.
*
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* IBM Corporation - initial implementation in P2 as an ant task
* Christoph Läubrich - migration to maven-mojo
*******************************************************************************/
package org.eclipse.tycho.plugins.p2.repository;

import org.apache.maven.plugin.AbstractMojo;
import org.apache.maven.plugin.MojoExecutionException;
import org.apache.maven.plugin.MojoFailureException;
import org.apache.maven.plugins.annotations.Mojo;

/**
* Mojo that provides the <code>p2.remove.iu</code> ant task described <a href=
* "https://help.eclipse.org/latest/topic/org.eclipse.platform.doc.isv/guide/p2_repositorytasks.htm">here</a>.
*/
@Mojo(name = "remove-iu")
public class RemoveIUMojo extends AbstractMojo {

@Override
public void execute() throws MojoExecutionException, MojoFailureException {
// TODO Auto-generated method stub

}

}

0 comments on commit 348a355

Please sign in to comment.