-
Notifications
You must be signed in to change notification settings - Fork 114
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Maven-Runtime] Convert projects into standard Maven-projects (#423)
- Loading branch information
1 parent
3141109
commit 113b0ec
Showing
21 changed files
with
257 additions
and
403 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<extensions> | ||
<extension> | ||
<groupId>org.eclipse.tycho.extras</groupId> | ||
<artifactId>tycho-pomless</artifactId> | ||
<groupId>org.eclipse.tycho</groupId> | ||
<artifactId>tycho-build</artifactId> | ||
<version>3.0.0</version> | ||
</extension> | ||
</extensions> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
.classpath | ||
.settings/ | ||
.project | ||
META-INF/ | ||
jars/ |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,9 @@ | ||
|
||
The Maven-Runtime bundles are ordinary Eclipse-Plugins that facilitate Maven to fetch Maven-dependency jars (and their sources) from a Maven-repository | ||
and to generate corresponding MANIFEST.MF and .classpath files that include all fetched jars accordingly. | ||
The Maven-Runtime bundles are ordinary Maven-Projects that facilitate Maven to fetch Maven-dependency jars (and their sources) from a Maven-repository | ||
and use the bnd-maven-plugin to generate a corresponding MANIFEST.MF that has all fetched jars on the `Bundle-ClassPath`. | ||
Consequently the content of those files and folders is fully controlled by the project's pom.xml (and its parent) and should only be adjusted via the pom. | ||
Those files/folders are ignored by git and direct changes are therefore lost upon the next metadata-generation. | ||
|
||
Therefore two builds are necessary to build m2e from scratch: | ||
1. A pure Maven build (tycho.mode=maven), to fetch all jars and to generate the MANIFEST.MF and .classpath file for each Maven-runtime project. | ||
2. An ordinary 'Eclipse-Tycho' build, where the Maven-runtime plug-ins are build like ordinary Eclipse plug-ins together with all other m2e Eclipse-Plugins. | ||
|
||
In the Eclipse-IDE the first build is executed by the Oomph setup on every start-up or when triggered manually in order to re-generate the the mentioned files. | ||
To re-generate the OSGi metadata of the Maven-runtime bundles you can either run the first step of the Maven build as mentioned [in the Build section of the CONTRIBUTING guide](../CONTRIBUTING.md#🏗️ Build), launch the corresponding Run-configuration or perform the Oomph-setup tasks for m2e (manually or by restarting your Eclipse-IDE). | ||
|
||
Compared to the previous approach this one has the advantage, that the Maven-runtime bundles can be build together with all other m2e plug-ins. | ||
The Maven-runtime projects then participate directly in the PDE build and are directly included when launching another Eclipse from the IDE (e.g. for testing). | ||
They don't have to be included by installing them into the local .m2 repo and loading into the target-platform anymore, which simplifies their handling in the IDE and during build. | ||
Furthermore sources of the embedded jars are also available in the IDE. | ||
This one has the advantage, that the Maven-runtime bundles can be build together with all other m2e plug-ins. | ||
The children of this project then participate directly in the PDE workspace build in the IDE and are directly included when launching another Eclipse from the IDE (e.g. for testing). | ||
This is possible due to the connector for the bnd-maven-plugin which is part of m2e. |
34 changes: 0 additions & 34 deletions
34
m2e-maven-runtime/org.eclipse.m2e.archetype.common/.project
This file was deleted.
Oops, something went wrong.
6 changes: 0 additions & 6 deletions
6
m2e-maven-runtime/org.eclipse.m2e.archetype.common/build.properties
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
6 changes: 0 additions & 6 deletions
6
m2e-maven-runtime/org.eclipse.m2e.maven.runtime/build.properties
This file was deleted.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
m2e-maven-runtime/org.eclipse.m2e.maven.runtime/eclipse-sign-jnilibs.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
# This file tells the Maven build to sign the jnilibs contained in built jar | ||
# see the eclipse-sign-jnilibs profile defined in the parent pom | ||
jars.directory = jars | ||
jars.directory = target/jars |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.