Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resolve target platform variables during p2 assembly (#3040) #3042

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
181 commits
Select commit Hold shift + click to select a range
d08e3a5
Prepare for 4.x release
Jun 23, 2023
2b875dd
Update RELEASE_NOTES.md
phermsdorf Jun 23, 2023
3569ad7
Bump maven-resolver-util from 1.9.12 to 1.9.13
dependabot[bot] Jun 23, 2023
a4a3eb3
Add support for p2.inf in eclipse-repository packaging
laeubi Jun 23, 2023
6828bb1
Bump maven-version from 3.9.2 to 3.9.3
dependabot[bot] Jun 27, 2023
ba7b1a9
Issue #2589 Strip asterisk (*) characters from URIs
gab1one Jun 26, 2023
530b623
Use maven-plugin-report-plugin for sitedocs
laeubi Jun 26, 2023
bfec3de
Let the MavenAuthenticator caches be static to share state
laeubi Jun 28, 2023
cd88ba9
Prepare 4.0.0 Release
laeubi Jul 1, 2023
70d8fd5
Prepare for next version
laeubi Jul 1, 2023
8408d7c
Fix reference to Tycho version
laeubi Jul 5, 2023
d1a082e
Non existing but optional dependencies lead to resolving issue in target
laeubi Jul 4, 2023
0076871
Backport tycho-repository-plugin
laeubi Jul 5, 2023
88b4506
Move showDiffDetails property to ComparisonData
HannesWell Mar 24, 2023
ac674b3
Bump unirest-java from 3.14.4 to 3.14.5
dependabot[bot] Jul 7, 2023
6bdbca4
Make comparison of newlines in text files more precise
HannesWell Mar 24, 2023
abe4f55
Print the name and version of used ECJ compiler
laeubi Jul 9, 2023
968e68b
Bump depends-maven-plugin from 1.4.0 to 1.5.0
dependabot[bot] Jul 12, 2023
2246958
Improve PluginConfigurationHelper by using a dedicated object
laeubi Jul 16, 2023
82242a1
Add support for a local packed osgi-repository
laeubi Jul 17, 2023
ff39c6e
The hamcrest artifact from maven is not a bundle, use servicemix instead
laeubi Jul 18, 2023
14139cc
Add assertions and explicit configuration to junit test
laeubi Jul 18, 2023
a78ec1f
Use the MavenBundleResolver to resolve JUnit Bundles from TargetPlatfrom
laeubi Jul 18, 2023
c1d3e2a
Fix resolving of project if target do not contains JUnit
laeubi Jul 17, 2023
486f6cf
Make the repository format pluggable
laeubi Jul 19, 2023
c043ba3
Check if the about to be injected maven coordinates can be resolved
laeubi Jul 20, 2023
7a6e72b
Bump org.apache.maven.resolver:maven-resolver-util from 1.9.13 to 1.9.14
dependabot[bot] Jul 26, 2023
28e50ee
Bump org.junit.vintage:junit-vintage-engine from 5.9.3 to 5.10.0
dependabot[bot] Jul 24, 2023
0745514
Create a commit hash for local builds as well (#2673) (#2674)
github-actions[bot] Jul 29, 2023
6c81917
Return the packed project artifact as the location of the Artifact (#…
github-actions[bot] Jul 29, 2023
46512b7
SharedHttpCacheStorage doesn't resolve redirect correctly if the uri …
github-actions[bot] Jul 29, 2023
9395656
Bump org.codehaus.plexus:plexus-archiver from 4.7.1 to 4.8.0
dependabot[bot] Jul 26, 2023
0adc55e
Bump org.apache.commons:commons-lang3 from 3.12.0 to 3.13.0
dependabot[bot] Jul 28, 2023
7e0f9db
First check if it is likely a valid descriptor before issue validation
laeubi Jul 29, 2023
26e5540
Prepare for new release
laeubi Jul 30, 2023
05d74bc
Prepare for next version
laeubi Jul 30, 2023
52af49d
Add workaround for Platform log can throw NPE
laeubi Jul 30, 2023
85a36a9
Add dummy parameter to prevent warnings with jgit as timestamp provider
laeubi Jul 30, 2023
84c6cb1
Fix NPE occurring when module is there but has no wiring
laeubi Jul 31, 2023
22b713c
[backport] Support repository references
laeubi Jul 31, 2023
0d47daf
Add integration test
tivervac Jul 18, 2023
81222ea
Update tycho-its/src/test/java/org/eclipse/tycho/test/brokenp2data/Br…
tivervac Jul 31, 2023
81a3a1b
Bump org.codehaus.mojo:buildnumber-maven-plugin from 3.1.0 to 3.2.0
dependabot[bot] Jul 31, 2023
f4833a0
Try to handle GOAWAY with a retry of the GET call falling back to Http/1
laeubi Aug 1, 2023
bce43d0
Add workaround for multiple calls of repo mojo using wrong URL
laeubi Aug 1, 2023
b33ce3d
Bump org.apache.maven.resolver:maven-resolver-util from 1.9.14 to 1.9.15
dependabot[bot] Aug 7, 2023
df19fdf
Bump maven-version from 3.9.3 to 3.9.4
dependabot[bot] Aug 3, 2023
3c1e2e5
Support changing of version in pde.bnd files
laeubi Aug 15, 2023
cdd16b0
Make sure the last modified timestamp is set correctly
laeubi Aug 19, 2023
d124588
Update versions for release
laeubi Aug 21, 2023
775f836
Prepare for next release
laeubi Aug 21, 2023
7bf879a
Bump org.mockito:mockito-core from 5.4.0 to 5.5.0
dependabot[bot] Aug 22, 2023
05bc76a
Bump org.apache.maven:maven-archiver from 3.6.0 to 3.6.1
dependabot[bot] Aug 22, 2023
6809979
Bump org.apache.maven.plugins:maven-enforcer-plugin from 3.3.0 to 3.4.0
dependabot[bot] Aug 22, 2023
9a9f01d
Do not synchronize and add a timeout for "bad" locations
laeubi Aug 23, 2023
b0696bb
Consider Source-Unit version when adding sources to a P2-repo
HannesWell Aug 30, 2023
6f54aca
FileTargetDefinitionContent: Improve exception message
cedric780 Aug 23, 2023
597768b
Bump org.slf4j:slf4j-api from 2.0.7 to 2.0.9
dependabot[bot] Sep 4, 2023
9a9852e
Bump org.eclipse.jgit:org.eclipse.jgit
dependabot[bot] Sep 4, 2023
a586e22
Add an option to filter repo-references before being added to a p2-repo
HannesWell Aug 27, 2023
434371c
Bump io.takari.polyglot:polyglot-common from 0.4.10 to 0.4.11
dependabot[bot] Sep 4, 2023
8647efa
Bump org.eclipse.jgit:org.eclipse.jgit
dependabot[bot] Sep 6, 2023
a17f94b
Bump org.apache.maven.plugins:maven-enforcer-plugin from 3.4.0 to 3.4.1
dependabot[bot] Sep 11, 2023
b4de96a
Bump org.apache.commons:commons-compress from 1.23.0 to 1.24.0
dependabot[bot] Sep 8, 2023
47edc22
Bump org.eclipse.platform:org.eclipse.osgi from 3.18.400 to 3.18.500
dependabot[bot] Sep 12, 2023
9057d8c
Bump org.eclipse.jdt:ecj from 3.34.0 to 3.35.0
dependabot[bot] Sep 13, 2023
67f21d6
Bump org.eclipse.platform:org.eclipse.jface from 3.30.0 to 3.31.0
dependabot[bot] Sep 12, 2023
e15f256
Bump org.eclipse.platform:org.eclipse.equinox.app
dependabot[bot] Sep 12, 2023
0c20dd9
Bump org.eclipse.platform:org.eclipse.equinox.p2.jarprocessor
dependabot[bot] Sep 13, 2023
a272a3c
Bump org.eclipse.platform:org.eclipse.equinox.p2.touchpoint.natives
dependabot[bot] Sep 13, 2023
68d8182
Bump org.eclipse.platform:org.eclipse.e4.ui.workbench3
dependabot[bot] Sep 13, 2023
c48ba44
Bump org.eclipse.platform:org.eclipse.equinox.preferences
dependabot[bot] Sep 13, 2023
7b95af7
Bump org.eclipse.platform:org.eclipse.equinox.p2.director.app
dependabot[bot] Sep 12, 2023
1f68bcd
Bump org.eclipse.platform:org.eclipse.equinox.p2.garbagecollector
dependabot[bot] Sep 12, 2023
5e642ee
Bump org.eclipse.platform:org.eclipse.equinox.p2.updatesite
dependabot[bot] Sep 12, 2023
0752ae8
Bump org.eclipse.platform:org.eclipse.equinox.frameworkadmin
dependabot[bot] Sep 14, 2023
f75924e
Bump org.eclipse.platform:org.eclipse.equinox.p2.repository
dependabot[bot] Sep 14, 2023
da8bdf4
Bump org.eclipse.platform:org.eclipse.equinox.p2.engine
dependabot[bot] Sep 14, 2023
7448963
Bump org.eclipse.platform:org.eclipse.equinox.p2.metadata
dependabot[bot] Sep 14, 2023
2ce5133
Bump org.eclipse.platform:org.eclipse.equinox.p2.director
dependabot[bot] Sep 14, 2023
1195f84
Bump org.eclipse.platform:org.eclipse.equinox.frameworkadmin.equinox
dependabot[bot] Sep 14, 2023
87e1b12
Bump org.eclipse.platform:org.eclipse.equinox.p2.repository.tools
dependabot[bot] Sep 14, 2023
c89a752
Bump org.eclipse.platform:org.eclipse.equinox.simpleconfigurator.mani…
dependabot[bot] Sep 15, 2023
4056b82
Bump org.eclipse.jdt:org.eclipse.jdt.core from 3.34.0 to 3.35.0
dependabot[bot] Sep 15, 2023
347b913
Bump org.eclipse.platform:org.eclipse.core.runtime from 3.27.0 to 3.29.0
dependabot[bot] Sep 15, 2023
5cb93a7
Bump org.eclipse.platform:org.eclipse.equinox.p2.metadata.repository
dependabot[bot] Sep 15, 2023
9b3ee8d
Bump org.eclipse.platform:org.eclipse.equinox.p2.publisher
dependabot[bot] Sep 15, 2023
b2f8f06
Bump org.eclipse.platform:org.eclipse.equinox.p2.core
dependabot[bot] Sep 15, 2023
0756daf
Bump org.eclipse.platform:org.eclipse.equinox.p2.artifact.repository
dependabot[bot] Sep 15, 2023
aeff5a6
Bump org.eclipse.pde:org.eclipse.pde.core from 3.17.0 to 3.17.100
dependabot[bot] Sep 15, 2023
87813b8
Bump org.eclipse.platform:org.eclipse.equinox.simpleconfigurator
dependabot[bot] Sep 16, 2023
6f0f050
Bump org.eclipse.platform:org.eclipse.ui.workbench
dependabot[bot] Sep 16, 2023
871f4af
Bump org.apache.maven.plugins:maven-javadoc-plugin from 3.5.0 to 3.6.0
dependabot[bot] Sep 16, 2023
4083378
Bump org.eclipse.platform:org.eclipse.help.base from 4.4.0 to 4.4.100
dependabot[bot] Sep 15, 2023
e39a1cb
Bump org.eclipse.pde:org.eclipse.pde.api.tools from 1.3.0 to 1.3.100
dependabot[bot] Sep 18, 2023
fb063be
Bump org.eclipse.platform:org.eclipse.equinox.p2.touchpoint.eclipse
dependabot[bot] Sep 18, 2023
98375ee
Bump org.eclipse.platform:org.eclipse.equinox.p2.publisher.eclipse
dependabot[bot] Sep 18, 2023
cb3d34f
Bump org.eclipse.platform:org.eclipse.equinox.common
dependabot[bot] Sep 18, 2023
2980870
Fix DependencyComputer missing bundles when they have different versions
laeubi Sep 19, 2023
7b33142
Add support for new repository target location type
laeubi Sep 19, 2023
db0b80b
Minor code enhancements in p2-repository assembling code
HannesWell Aug 30, 2023
0705ce4
Simplify logic of AssembleRepositoryMojo.repositoryReferenceFilter
HannesWell Sep 23, 2023
b3f0eec
Bump org.apache.maven.resolver:maven-resolver-util from 1.9.15 to 1.9.16
dependabot[bot] Sep 25, 2023
2ee751b
Assemble repository for all environments in one pass
HannesWell Sep 23, 2023
242a2a8
Fix creation of output directory in packaging mojo
jstroleny Sep 27, 2023
0c5e59f
Introduce a public static constant for the current eclipse release
laeubi Sep 28, 2023
ccd3e2a
Return the maven location for missing junit bundles
laeubi Sep 28, 2023
0c3be9b
Remove unused MavenBundlesArtifactRepository
laeubi Sep 28, 2023
729c80f
Suppress addition of unnecessary repo-refereces when assembling p2-repos
HannesWell Sep 2, 2023
6aedcd2
Print added repository-references when assembly a p2-repository
HannesWell Sep 1, 2023
ca77cc2
Bump commons-io:commons-io from 2.13.0 to 2.14.0
dependabot[bot] Sep 29, 2023
88e4728
Prepare release
laeubi Sep 30, 2023
043c73b
Prepare for next devlopment version
laeubi Sep 30, 2023
554ce24
Enable content encoding
laeubi Oct 2, 2023
4cbe90c
Bump asm-version from 9.5 to 9.6
dependabot[bot] Oct 3, 2023
bfe12ee
Bump maven-version from 3.9.4 to 3.9.5
dependabot[bot] Oct 4, 2023
4547d49
Bump commons-net:commons-net from 3.9.0 to 3.10.0
dependabot[bot] Oct 5, 2023
f9357e7
Bump asm-version from 9.5 to 9.6
dependabot[bot] Oct 3, 2023
fda3c3d
Bump org.mockito:mockito-core from 5.5.0 to 5.6.0
dependabot[bot] Oct 6, 2023
9530037
Call the API tools directly without using ApiAnalysisApplication
laeubi Oct 7, 2023
fa3d024
Workaround for eclipse-pde/eclipse.pde#789
laeubi Oct 8, 2023
a3a238a
Bump jetty.version from 11.0.15 to 11.0.17
dependabot[bot] Oct 10, 2023
5d74dde
Adding the repository creation to target platform with feature its
vogella Oct 6, 2023
59abc85
Fix syntax error in RELEASE_NOTES.md
pcdavid Oct 12, 2023
53c6db8
disable vm install job in jdt
laeubi Oct 13, 2023
6081458
Only set download/install-size attributes in features if they exist
HannesWell Oct 7, 2023
8a70b3c
Set the output folder of the imported project to the maven location
laeubi Oct 14, 2023
59468ee
Add XMLTool testing-util for XML-doc parsing and XPath evaluation
HannesWell Oct 14, 2023
becce46
Fix addition of unnecessary attributes in source-features and add Tests
HannesWell Oct 14, 2023
e15be68
Remove duplicated ProductFile2
HannesWell Oct 15, 2023
88c2d21
Update TestingBundles.md - fix typos
iachelini Oct 16, 2023
1273870
Bump org.jacoco:jacoco-maven-plugin from 0.8.10 to 0.8.11
dependabot[bot] Oct 16, 2023
a9b7b40
Bump io.takari.maven:takari-smart-builder from 0.6.3 to 0.6.4
dependabot[bot] Oct 19, 2023
486e6e4
Add support for Product Update-site names and a test-case for that
HannesWell Oct 15, 2023
3e05e6e
Bump pluginToolsVersion from 3.9.0 to 3.10.1
dependabot[bot] Oct 20, 2023
cf9a299
Bump org.apache.maven.plugins:maven-dependency-plugin
dependabot[bot] Oct 23, 2023
57055f2
Bump org.codehaus.plexus:plexus-cipher from 2.0 to 2.1.0
dependabot[bot] Oct 24, 2023
48f6b72
Bump surefire-version from 3.1.2 to 3.2.1
dependabot[bot] Oct 23, 2023
71c8bb6
Bump org.apache.maven.plugins:maven-clean-plugin from 3.3.1 to 3.3.2
dependabot[bot] Oct 26, 2023
905fce9
Add workaround for possible ApiTools leak
laeubi Oct 27, 2023
6d7f0a4
Add nullcheck to TychoMirrorApplication
laeubi Oct 28, 2023
9dd530d
Bump commons-io:commons-io from 2.14.0 to 2.15.0
dependabot[bot] Oct 25, 2023
f667fd4
fix #2877 (#2878)
mlehmannm Oct 28, 2023
8dc3455
Follow P2 contract of cached file's extension (#2938)
basilevs Oct 21, 2023
cbc800d
Bump bnd.version from 6.4.0 to 7.0.0
dependabot[bot] Oct 8, 2023
6d23a81
Adjust to BNDlib7 changes
laeubi Oct 9, 2023
af71c74
Fix LocalRepositoryCrosstalkTest
laeubi Oct 22, 2023
d13120f
Fix CustomProfileIntegrationTest
laeubi Oct 22, 2023
e9fc35b
Simplify JUnit5Test and make it always use ECLIPSE_LATEST p2 repo
akurtakov Oct 9, 2023
73be77d
Add schema-to-html mojo as a replacement for ant ConvertSchemaToHTML
laeubi Oct 30, 2023
01a2ccf
Bump jetty.version from 11.0.17 to 11.0.18
dependabot[bot] Oct 30, 2023
0fcda8c
Automatically use all reactor projects for the searchpath
laeubi Oct 31, 2023
2c173a9
Support supply a complete folder instead of a singular project file
laeubi Oct 31, 2023
5b8b4a5
Bump org.mockito:mockito-core from 5.6.0 to 5.7.0
dependabot[bot] Nov 3, 2023
0d5e980
Issue 2937: Integration test
thahnen Oct 31, 2023
3a45ace
Add a reproducer IT for issue #2977
mdaloia Oct 31, 2023
428714b
Make additional P2 units from p2.inf available to the target-platform
laeubi Nov 3, 2023
5ad8326
Bump io.takari.polyglot:polyglot-common from 0.4.11 to 0.5.0
dependabot[bot] Nov 3, 2023
37c511e
Adjust testcase to enable classpath scanning
laeubi Nov 4, 2023
5779f6c
Bump org.junit.vintage:junit-vintage-engine from 5.10.0 to 5.10.1
dependabot[bot] Nov 6, 2023
1d8b72e
Bump pluginToolsVersion from 3.10.1 to 3.10.2
dependabot[bot] Nov 6, 2023
0e0a174
Bump org.apache.maven.plugins:maven-javadoc-plugin from 3.6.0 to 3.6.2
dependabot[bot] Nov 6, 2023
d0479eb
Bump surefire-version from 3.2.1 to 3.2.2
dependabot[bot] Nov 6, 2023
849778a
Bump org.junit.jupiter:junit-jupiter-api from 5.9.3 to 5.10.1
dependabot[bot] Nov 6, 2023
f5ba496
Bump org.codehaus.plexus:plexus-archiver from 4.8.0 to 4.9.0
dependabot[bot] Nov 7, 2023
34388f5
Set the real output location for embedded jars in ApiAnalysis
laeubi Nov 6, 2023
b2797bc
Add stripped down pdebuild bundle as a testcase
laeubi Nov 7, 2023
6c1d589
Fix possible NPE in AbstractApplication as seen in integration tests
laeubi Nov 7, 2023
272d217
Bump org.junit.jupiter:junit-jupiter from 5.9.3 to 5.10.1
dependabot[bot] Nov 7, 2023
868454b
Update versions for release 4.0.4
laeubi Nov 8, 2023
c17d48e
Prepare for next version
laeubi Nov 8, 2023
92502e0
Add testcase to reproduce failing behavior
laeubi Nov 8, 2023
e3d7619
Consider the classpath file as an alternative for build output
laeubi Nov 9, 2023
da66543
Add reproducer for API tools failure if the whole bundle is a jar
laeubi Nov 9, 2023
ac3bcbf
If there is only a single jar use the default output folder as source
laeubi Nov 10, 2023
6d66878
lower version bounds
laeubi Nov 10, 2023
265a0fc
Make it possible to build Tycho with Java 21
akurtakov Nov 10, 2023
f1cb4b1
Add a javadoc dependency injector
laeubi Nov 11, 2023
b25118a
Add support for API Tools Annotations to Tycho
laeubi Nov 12, 2023
c47ccf7
Bump io.takari.polyglot:polyglot-common from 0.5.0 to 0.7.0
dependabot[bot] Nov 13, 2023
428e238
Resolve target platform variables during p2 assembly (#3040)
kysmith-csg Nov 16, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
36 changes: 0 additions & 36 deletions .github/workflows/backport.yml

This file was deleted.

71 changes: 0 additions & 71 deletions .github/workflows/sitedocs.yml

This file was deleted.

2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ and the minimal reproducer project to Tycho's [issue tracker](https://github.com

### Prerequisites

Java 11 and Maven 3.6.3, or newer.
Java 17 and Maven 3.9.0, or newer.

If your Internet connection uses a proxy, make sure that you have the proxy configured in your [Maven settings.xml](https://maven.apache.org/settings.html).

Expand Down
2 changes: 1 addition & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
def deployBranch = 'master'
def deployBranch = 'tycho-4.0.x'
def agentLabel
if(env.BRANCH_NAME == deployBranch) {
//branches that are deployable must run on eclipse infra
Expand Down
76 changes: 75 additions & 1 deletion RELEASE_NOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,64 @@

This page describes the noteworthy improvements provided by each release of Eclipse Tycho.

## 4.0.0 (under development)
## 4.0.5

### backports:
- support for PDE Api Tools Annotations
- api tools fixes

## 4.0.4

Various bugfixes and backports

## 4.0.3

### new option to filter added repository-references when assembling a p2-repository

If filtering provided artifacts is enabled, the repository references automatically added to a assembled p2-repository
(via `tycho-p2-repository-plugin`'s `addIUTargetRepositoryReferences` or `addPomRepositoryReferences`) can now be filtered by their location
using exclusion and inclusion patterns and therefore allows more fine-grained control which references are added.
Additionally the automatically added references can be filter based on if they provide any of the filtered units or not.
If `addOnlyProviding` is `true` repositories that don't provide any filtered unit are not added to the assembled repo.
```xml
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-p2-repository-plugin</artifactId>
<version>${tycho-version}</version>
<configuration>
... other configuration options ...
<repositoryReferenceFilter>
<addOnlyProviding>true</addOnlyProviding>
<exclude>
<location>https://foo.bar.org/hidden/**</location>
<location>%regex[http(s)?:\/\/foo\.bar\.org\/secret\/.*]</location>
<location>![https://foo.bar.org/**]</location>
</exclude>
</repositoryReferenceFilter>
</configuration>
</plugin>
```

## 4.0.2
- new option to include referenced repositories when resolving the target platform
- Add dummy parameter to prevent warnings with jgit as timestamp provider

## 4.0.1

backports:
- new tycho-repository-plugin
- Non existing but optional dependencies lead to resolving issue in target
- SharedHttpCacheStorage doesn't resolve redirect correctly if the uri that is given isn't normalized
- Non existing but optional dependencies lead to resolving issue in target
- Make comparison of newlines in text files more precise
- Fix resolving of project if target do not contains JUnit
- Check if the about to be injected maven coordinates can be resolved

## 4.0.0

### Maven 3.9 required

Tycho 4.x requires Maven Version 3.9

### creating maven p2 sites with Tycho packaging

Expand Down Expand Up @@ -505,6 +562,23 @@ Old behavior can be restored through configuration of the tycho-surefire-plugin:
</plugin>
```

## 3.0.5

### Backports

- inject source folders into maven model
- improve CI friendly versions
- Report download speed to the caller
- redirectTestOutputToFile for OsgiSurefireBooter

## 3.0.4

### Backports

- Include smartbuilder (but disabled by default), can be enabled with `-Dtycho.build.smartbuilder=true`
- tycho-bnd-plugin support
- Version Mojo Bugfixes

## 3.0.3

### Dependency upgrades and Maven 3.9.0 support
Expand Down
13 changes: 13 additions & 0 deletions demo/osgi-repository/README.MD
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Publish bundles as an OSGi Repository to maven repository

This Demo shows how to publish a set of bundles as an OSGi Repository and deploy it to a maven repository (simulated by a folder here),
with this approach it is possible to deploy a whole project consumable by OSGi and maven users with only using the maven repository as the backing store.

This example uses a single bundle build with bnd-maven-plugin, but actually any jar project that produces a bundle (including Tycho ones) would work!

As a result of building the project with `mvn clean deploy -DaltDeploymentRepository=snapshot-repo::default::file:maven-repository` you can inspect the following items:

- find the produced site in `site/target/repository`
- see the deployed artifacts in the file base maven repository under `maven-repository`

**Currently there is no support in Eclipse/Tycho for consuming such repository!**
1 change: 1 addition & 0 deletions demo/osgi-repository/maven-repository/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/org/
39 changes: 39 additions & 0 deletions demo/osgi-repository/my-bundle/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.eclipse.tycho.demo</groupId>
<artifactId>parent</artifactId>
<version>1.0.0</version>
</parent>
<artifactId>my-bundle</artifactId>
<properties>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
</properties>
<dependencies>
<dependency>
<groupId>org.osgi</groupId>
<artifactId>org.osgi.annotation.bundle</artifactId>
<version>2.0.0</version>
<scope>provided</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>biz.aQute.bnd</groupId>
<artifactId>bnd-maven-plugin</artifactId>
<version>6.4.0</version>
<extensions>true</extensions>
<executions>
<execution>
<id>jar</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
package hello.world;

public interface GreetingService {

void sayHello();
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
@org.osgi.annotation.bundle.Export
@org.osgi.annotation.versioning.Version("1.0")
package hello.world;
15 changes: 15 additions & 0 deletions demo/osgi-repository/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.eclipse.tycho.demo</groupId>
<artifactId>parent</artifactId>
<version>1.0.0</version>
<packaging>pom</packaging>
<modules>
<module>repository</module>
<module>my-bundle</module>
</modules>
<properties>
<tycho-version>5.0.0-SNAPSHOT</tycho-version>
</properties>

</project>
41 changes: 41 additions & 0 deletions demo/osgi-repository/repository/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.eclipse.tycho.demo</groupId>
<artifactId>parent</artifactId>
<version>1.0.0</version>
</parent>
<artifactId>repository</artifactId>
<packaging>repository</packaging>
<build>
<plugins>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-repository-plugin</artifactId>
<version>${tycho-version}</version>
<!-- Extensions must be enabled for this mojo to work reliable and for using the custom package type-->
<extensions>true</extensions>
<!-- EVERYTHING BELOW IS OPTIONAL -->
<!-- This is just used to show different options of the configuration and can be ommited if only a bare maven-repository is desired with default settings -->
<executions>
<!-- Additionally we create another repository using the 'local' layout and place it in a deploy folder -->
<execution>
<id>local</id>
<phase>package</phase>
<goals>
<goal>package-repository</goal>
</goals>
<configuration>
<repositoryLayout>local</repositoryLayout>
<settings>
<repositoryFolderName>deploy</repositoryFolderName>
</settings>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
Loading
Loading