|
Java 17 I am trying to create a custom Packaging based on As a test I simply copied <?xml version="1.0" encoding="UTF-8"?>
<component-set>
<components>
<!-- copy of eclipse-repository -->
<component>
<role>org.apache.maven.lifecycle.mapping.LifecycleMapping</role>
<role-hint>custom-eclipse-repository</role-hint>
<implementation>
org.apache.maven.lifecycle.mapping.DefaultLifecycleMapping
</implementation>
<configuration>
<lifecycles>
<lifecycle>
<id>default</id>
<phases>
<validate>
org.eclipse.tycho:tycho-packaging-plugin:4.0.13:build-qualifier-aggregator
</validate>
<initialize>
<!-- P2 publisher application will accumulate the published content in resulting repositories.
The build needs to guarantee that legacy build content is removed from output folder prior to each build. -->
org.apache.maven.plugins:maven-clean-plugin:3.3.2:clean,
org.eclipse.tycho:target-platform-configuration:4.0.13:target-platform
</initialize>
<process-resources>
org.apache.maven.plugins:maven-resources-plugin:3.3.1:resources
</process-resources>
<prepare-package> org.eclipse.tycho:tycho-p2-publisher-plugin:4.0.13:publish-osgi-ee,
org.eclipse.tycho:tycho-p2-publisher-plugin:4.0.13:publish-products,
org.eclipse.tycho:tycho-p2-publisher-plugin:4.0.13:publish-categories,
org.eclipse.tycho:tycho-p2-publisher-plugin:4.0.13:attach-artifacts,
org.eclipse.tycho:tycho-p2-repository-plugin:4.0.13:assemble-repository
</prepare-package>
<package>
org.eclipse.tycho:tycho-p2-repository-plugin:4.0.13:archive-repository
</package>
<install>
org.apache.maven.plugins:maven-install-plugin:3.1.1:install,
org.eclipse.tycho:tycho-p2-plugin:4.0.13:update-local-index
</install>
<deploy>
org.apache.maven.plugins:maven-deploy-plugin:3.1.1:deploy
</deploy>
</phases>
</lifecycle>
</lifecycles>
</configuration>
</component>
</components>
</component-set>When changing the packaging type in the project to the copied one the build no longer completes. No other changes were made to the POM. I get the following error output:
|
Replies: 1 comment 1 reply
I can only recommend not to do that (for multiple reasons) as this does not simplify anything... So maybe reconsider what exact problem you like to solve that can not be solved with standard maven (e.g. profiles, parents, ...)
You likely need to implement a lot more, e.g project-types, artifact handlers and so on. |
I can only recommend not to do that (for multiple reasons) as this does not simplify anything...
So maybe reconsider what exact problem you like to solve that can not be solved with standard maven (e.g. profiles, parents, ...)
If you even already use an extension you can even rewrite the model and inject whatever extra mojos you like (or disable / remove existing ones).