You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
AFAICS the m2e PDE integration for features written by @ptziegler does not use the pom information but the feature.xml.
If a feature includes another feature, this meta-data is currently not used. It is present in the feature.xml in the Maven repository and in the generated pom file for the feature as dependencies.
Example:
1.) Clone https://github.com/vogellacompany/pde-feature-dependencies
2.) Run mvn clean verify to check that regular builds works
3.) Publish the result to a file based Maven repository via ´mvn deploy -DaltDeploymentRepository=snapshot-repo::default::file:/path-to-your-repo/test-repo´
4.) Check meta-data of feature2 in the Mavne repo (which is correct)
Expection would be that feature1 and plugin1 are also added to the target platform as both the feature.xml file and the pom.xml for the feature2 declare "feature1" as dependency.
The text was updated successfully, but these errors were encountered:
That said, I've added the dependency manually and once I've built everything, this is what the target definition looks like:
(Side note, I did a mvn clean install instead of building a local repository)
Expection would be that feature1 and plugin1 are also added to the target platform as both the feature.xml file and the pom.xml for the feature2 declare "feature1" as dependency.
That would also be my expectation. From my understanding of Maven, when feature1 is a pom dependency, it should be added to the classpath regardless of whether it's contained by the feature.xml.
This is also how Tycho should do it, which is why I find it weird that this doesn't work here...
AFAICS the m2e PDE integration for features written by @ptziegler does not use the pom information but the feature.xml.
If a feature includes another feature, this meta-data is currently not used. It is present in the feature.xml in the Maven repository and in the generated pom file for the feature as dependencies.
Example:
1.) Clone https://github.com/vogellacompany/pde-feature-dependencies
2.) Run mvn clean verify to check that regular builds works
3.) Publish the result to a file based Maven repository via ´mvn deploy -DaltDeploymentRepository=snapshot-repo::default::file:/path-to-your-repo/test-repo´
4.) Check meta-data of feature2 in the Mavne repo (which is correct)
feature2-1.0.0-TIMESTAMP.pom:
feature.xml from the generated JAR file:
If I setup a target file using this this Maven repository as backup, the dependencies are not make available:
Example target file:
Expection would be that feature1 and plugin1 are also added to the target platform as both the feature.xml file and the pom.xml for the feature2 declare "feature1" as dependency.
The text was updated successfully, but these errors were encountered: