From 38c703c63fb34999936ee2b70cdbae8e3d494016 Mon Sep 17 00:00:00 2001 From: Tamas Cservenak Date: Mon, 9 Sep 2024 14:24:54 +0200 Subject: [PATCH] Get rid of plexus.xml (#184) Fixes #182 --- takari-lifecycle-plugin/pom.xml | 1 + .../configurator/MojoConfigurator.java | 4 + .../TakariMojoExecutionConfigurator.java | 4 + .../packaging/LifecycleMappingSupport.java | 75 ++++++ .../packaging/PomLifecycleMapping.java | 18 ++ .../packaging/TakariJarArtifactHandler.java | 23 ++ .../packaging/TakariJarLifecycleMapping.java | 15 ++ .../TakariMavenComponentArtifactHandler.java | 23 ++ .../TakariMavenComponentLifecycleMapping.java | 15 ++ .../TakariMavenPluginArtifactHandler.java | 23 ++ .../TakariMavenPluginLifecycleMapping.java | 15 ++ .../META-INF/plexus/components.xml | 231 ------------------ .../packaging/PomLifecycleMapping.properties | 10 + .../TakariJarLifecycleMapping.properties | 17 ++ ...iMavenComponentLifecycleMapping.properties | 20 ++ ...kariMavenPluginLifecycleMapping.properties | 23 ++ 16 files changed, 286 insertions(+), 231 deletions(-) create mode 100644 takari-lifecycle-plugin/src/main/java/io/takari/maven/plugins/packaging/LifecycleMappingSupport.java create mode 100644 takari-lifecycle-plugin/src/main/java/io/takari/maven/plugins/packaging/PomLifecycleMapping.java create mode 100644 takari-lifecycle-plugin/src/main/java/io/takari/maven/plugins/packaging/TakariJarArtifactHandler.java create mode 100644 takari-lifecycle-plugin/src/main/java/io/takari/maven/plugins/packaging/TakariJarLifecycleMapping.java create mode 100644 takari-lifecycle-plugin/src/main/java/io/takari/maven/plugins/packaging/TakariMavenComponentArtifactHandler.java create mode 100644 takari-lifecycle-plugin/src/main/java/io/takari/maven/plugins/packaging/TakariMavenComponentLifecycleMapping.java create mode 100644 takari-lifecycle-plugin/src/main/java/io/takari/maven/plugins/packaging/TakariMavenPluginArtifactHandler.java create mode 100644 takari-lifecycle-plugin/src/main/java/io/takari/maven/plugins/packaging/TakariMavenPluginLifecycleMapping.java delete mode 100644 takari-lifecycle-plugin/src/main/resources-filtered/META-INF/plexus/components.xml create mode 100644 takari-lifecycle-plugin/src/main/resources-filtered/io/takari/maven/plugins/packaging/PomLifecycleMapping.properties create mode 100644 takari-lifecycle-plugin/src/main/resources-filtered/io/takari/maven/plugins/packaging/TakariJarLifecycleMapping.properties create mode 100644 takari-lifecycle-plugin/src/main/resources-filtered/io/takari/maven/plugins/packaging/TakariMavenComponentLifecycleMapping.properties create mode 100644 takari-lifecycle-plugin/src/main/resources-filtered/io/takari/maven/plugins/packaging/TakariMavenPluginLifecycleMapping.properties diff --git a/takari-lifecycle-plugin/pom.xml b/takari-lifecycle-plugin/pom.xml index d4808996..cff6a930 100644 --- a/takari-lifecycle-plugin/pom.xml +++ b/takari-lifecycle-plugin/pom.xml @@ -239,6 +239,7 @@ xmlunit xmlunit 1.6 + test org.slf4j diff --git a/takari-lifecycle-plugin/src/main/java/io/takari/maven/plugins/configurator/MojoConfigurator.java b/takari-lifecycle-plugin/src/main/java/io/takari/maven/plugins/configurator/MojoConfigurator.java index f07dd3c8..78b90233 100644 --- a/takari-lifecycle-plugin/src/main/java/io/takari/maven/plugins/configurator/MojoConfigurator.java +++ b/takari-lifecycle-plugin/src/main/java/io/takari/maven/plugins/configurator/MojoConfigurator.java @@ -7,6 +7,8 @@ */ package io.takari.maven.plugins.configurator; +import javax.inject.Named; +import javax.inject.Singleton; import org.codehaus.plexus.classworlds.realm.ClassRealm; import org.codehaus.plexus.component.configurator.BasicComponentConfigurator; import org.codehaus.plexus.component.configurator.ComponentConfigurationException; @@ -14,6 +16,8 @@ import org.codehaus.plexus.component.configurator.expression.ExpressionEvaluator; import org.codehaus.plexus.configuration.PlexusConfiguration; +@Singleton +@Named("takari") public class MojoConfigurator extends BasicComponentConfigurator { @Override diff --git a/takari-lifecycle-plugin/src/main/java/io/takari/maven/plugins/configurator/TakariMojoExecutionConfigurator.java b/takari-lifecycle-plugin/src/main/java/io/takari/maven/plugins/configurator/TakariMojoExecutionConfigurator.java index 3809d022..99a094cc 100644 --- a/takari-lifecycle-plugin/src/main/java/io/takari/maven/plugins/configurator/TakariMojoExecutionConfigurator.java +++ b/takari-lifecycle-plugin/src/main/java/io/takari/maven/plugins/configurator/TakariMojoExecutionConfigurator.java @@ -8,6 +8,8 @@ package io.takari.maven.plugins.configurator; import java.util.Collection; +import javax.inject.Named; +import javax.inject.Singleton; import org.apache.maven.lifecycle.MojoExecutionConfigurator; import org.apache.maven.model.Plugin; import org.apache.maven.model.PluginExecution; @@ -16,6 +18,8 @@ import org.codehaus.plexus.util.StringUtils; import org.codehaus.plexus.util.xml.Xpp3Dom; +@Singleton +@Named("takari") public class TakariMojoExecutionConfigurator implements MojoExecutionConfigurator { @Override diff --git a/takari-lifecycle-plugin/src/main/java/io/takari/maven/plugins/packaging/LifecycleMappingSupport.java b/takari-lifecycle-plugin/src/main/java/io/takari/maven/plugins/packaging/LifecycleMappingSupport.java new file mode 100644 index 00000000..bc7d3c02 --- /dev/null +++ b/takari-lifecycle-plugin/src/main/java/io/takari/maven/plugins/packaging/LifecycleMappingSupport.java @@ -0,0 +1,75 @@ +/* + * Copyright (c) 2014-2024 Takari, Inc. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/legal/epl-v10.html + */ +package io.takari.maven.plugins.packaging; + +import java.io.IOException; +import java.io.InputStream; +import java.io.UncheckedIOException; +import java.util.Collections; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Properties; +import javax.inject.Provider; +import org.apache.maven.lifecycle.mapping.Lifecycle; +import org.apache.maven.lifecycle.mapping.LifecycleMapping; +import org.apache.maven.lifecycle.mapping.LifecyclePhase; + +public abstract class LifecycleMappingSupport implements Provider { + + private static final String DEFAULT_LIFECYCLE_KEY = "default"; + + private final Lifecycle defaultLifecycle; + private final LifecycleMapping lifecycleMapping; + + public LifecycleMappingSupport() { + this.defaultLifecycle = new Lifecycle(); + this.defaultLifecycle.setId(DEFAULT_LIFECYCLE_KEY); + this.defaultLifecycle.setLifecyclePhases(loadMapping()); + + this.lifecycleMapping = new LifecycleMapping() { + @Override + public Map getLifecycles() { + return Collections.singletonMap(DEFAULT_LIFECYCLE_KEY, defaultLifecycle); + } + + @Override + public List getOptionalMojos(String lifecycle) { + return null; + } + + @Override + public Map getPhases(String lifecycle) { + if (DEFAULT_LIFECYCLE_KEY.equals(lifecycle)) { + return defaultLifecycle.getPhases(); + } else { + return null; + } + } + }; + } + + private Map loadMapping() { + Properties properties = new Properties(); + try (InputStream inputStream = getClass().getResourceAsStream(getClass().getSimpleName() + ".properties")) { + properties.load(inputStream); + } catch (IOException e) { + throw new UncheckedIOException(e); + } + HashMap result = new HashMap<>(); + for (String phase : properties.stringPropertyNames()) { + result.put(phase, new LifecyclePhase(properties.getProperty(phase))); + } + return result; + } + + @Override + public LifecycleMapping get() { + return lifecycleMapping; + } +} diff --git a/takari-lifecycle-plugin/src/main/java/io/takari/maven/plugins/packaging/PomLifecycleMapping.java b/takari-lifecycle-plugin/src/main/java/io/takari/maven/plugins/packaging/PomLifecycleMapping.java new file mode 100644 index 00000000..0a16f347 --- /dev/null +++ b/takari-lifecycle-plugin/src/main/java/io/takari/maven/plugins/packaging/PomLifecycleMapping.java @@ -0,0 +1,18 @@ +/* + * Copyright (c) 2014-2024 Takari, Inc. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/legal/epl-v10.html + */ +package io.takari.maven.plugins.packaging; + +import javax.inject.Named; +import javax.inject.Singleton; + +/** + * This is only to shade the POM packaging from Maven Core. + */ +@Singleton +@Named("pom") +public class PomLifecycleMapping extends LifecycleMappingSupport {} diff --git a/takari-lifecycle-plugin/src/main/java/io/takari/maven/plugins/packaging/TakariJarArtifactHandler.java b/takari-lifecycle-plugin/src/main/java/io/takari/maven/plugins/packaging/TakariJarArtifactHandler.java new file mode 100644 index 00000000..88c41378 --- /dev/null +++ b/takari-lifecycle-plugin/src/main/java/io/takari/maven/plugins/packaging/TakariJarArtifactHandler.java @@ -0,0 +1,23 @@ +/* + * Copyright (c) 2014-2024 Takari, Inc. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/legal/epl-v10.html + */ +package io.takari.maven.plugins.packaging; + +import javax.inject.Named; +import javax.inject.Singleton; +import org.apache.maven.artifact.handler.DefaultArtifactHandler; + +@Singleton +@Named("takari-jar") +public class TakariJarArtifactHandler extends DefaultArtifactHandler { + public TakariJarArtifactHandler() { + super("takari-jar"); + setExtension("jar"); + setLanguage("java"); + setAddedToClasspath(true); + } +} diff --git a/takari-lifecycle-plugin/src/main/java/io/takari/maven/plugins/packaging/TakariJarLifecycleMapping.java b/takari-lifecycle-plugin/src/main/java/io/takari/maven/plugins/packaging/TakariJarLifecycleMapping.java new file mode 100644 index 00000000..372ba021 --- /dev/null +++ b/takari-lifecycle-plugin/src/main/java/io/takari/maven/plugins/packaging/TakariJarLifecycleMapping.java @@ -0,0 +1,15 @@ +/* + * Copyright (c) 2014-2024 Takari, Inc. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/legal/epl-v10.html + */ +package io.takari.maven.plugins.packaging; + +import javax.inject.Named; +import javax.inject.Singleton; + +@Singleton +@Named("takari-jar") +public class TakariJarLifecycleMapping extends LifecycleMappingSupport {} diff --git a/takari-lifecycle-plugin/src/main/java/io/takari/maven/plugins/packaging/TakariMavenComponentArtifactHandler.java b/takari-lifecycle-plugin/src/main/java/io/takari/maven/plugins/packaging/TakariMavenComponentArtifactHandler.java new file mode 100644 index 00000000..ce664efe --- /dev/null +++ b/takari-lifecycle-plugin/src/main/java/io/takari/maven/plugins/packaging/TakariMavenComponentArtifactHandler.java @@ -0,0 +1,23 @@ +/* + * Copyright (c) 2014-2024 Takari, Inc. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/legal/epl-v10.html + */ +package io.takari.maven.plugins.packaging; + +import javax.inject.Named; +import javax.inject.Singleton; +import org.apache.maven.artifact.handler.DefaultArtifactHandler; + +@Singleton +@Named("takari-maven-component") +public class TakariMavenComponentArtifactHandler extends DefaultArtifactHandler { + public TakariMavenComponentArtifactHandler() { + super("takari-maven-component"); + setExtension("jar"); + setLanguage("java"); + setAddedToClasspath(true); + } +} diff --git a/takari-lifecycle-plugin/src/main/java/io/takari/maven/plugins/packaging/TakariMavenComponentLifecycleMapping.java b/takari-lifecycle-plugin/src/main/java/io/takari/maven/plugins/packaging/TakariMavenComponentLifecycleMapping.java new file mode 100644 index 00000000..22eed34c --- /dev/null +++ b/takari-lifecycle-plugin/src/main/java/io/takari/maven/plugins/packaging/TakariMavenComponentLifecycleMapping.java @@ -0,0 +1,15 @@ +/* + * Copyright (c) 2014-2024 Takari, Inc. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/legal/epl-v10.html + */ +package io.takari.maven.plugins.packaging; + +import javax.inject.Named; +import javax.inject.Singleton; + +@Singleton +@Named("takari-maven-component") +public class TakariMavenComponentLifecycleMapping extends LifecycleMappingSupport {} diff --git a/takari-lifecycle-plugin/src/main/java/io/takari/maven/plugins/packaging/TakariMavenPluginArtifactHandler.java b/takari-lifecycle-plugin/src/main/java/io/takari/maven/plugins/packaging/TakariMavenPluginArtifactHandler.java new file mode 100644 index 00000000..658e5c63 --- /dev/null +++ b/takari-lifecycle-plugin/src/main/java/io/takari/maven/plugins/packaging/TakariMavenPluginArtifactHandler.java @@ -0,0 +1,23 @@ +/* + * Copyright (c) 2014-2024 Takari, Inc. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/legal/epl-v10.html + */ +package io.takari.maven.plugins.packaging; + +import javax.inject.Named; +import javax.inject.Singleton; +import org.apache.maven.artifact.handler.DefaultArtifactHandler; + +@Singleton +@Named("takari-maven-plugin") +public class TakariMavenPluginArtifactHandler extends DefaultArtifactHandler { + public TakariMavenPluginArtifactHandler() { + super("takari-maven-plugin"); + setExtension("jar"); + setLanguage("java"); + setAddedToClasspath(true); + } +} diff --git a/takari-lifecycle-plugin/src/main/java/io/takari/maven/plugins/packaging/TakariMavenPluginLifecycleMapping.java b/takari-lifecycle-plugin/src/main/java/io/takari/maven/plugins/packaging/TakariMavenPluginLifecycleMapping.java new file mode 100644 index 00000000..ca0ede2e --- /dev/null +++ b/takari-lifecycle-plugin/src/main/java/io/takari/maven/plugins/packaging/TakariMavenPluginLifecycleMapping.java @@ -0,0 +1,15 @@ +/* + * Copyright (c) 2014-2024 Takari, Inc. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/legal/epl-v10.html + */ +package io.takari.maven.plugins.packaging; + +import javax.inject.Named; +import javax.inject.Singleton; + +@Singleton +@Named("takari-maven-plugin") +public class TakariMavenPluginLifecycleMapping extends LifecycleMappingSupport {} diff --git a/takari-lifecycle-plugin/src/main/resources-filtered/META-INF/plexus/components.xml b/takari-lifecycle-plugin/src/main/resources-filtered/META-INF/plexus/components.xml deleted file mode 100644 index b5746933..00000000 --- a/takari-lifecycle-plugin/src/main/resources-filtered/META-INF/plexus/components.xml +++ /dev/null @@ -1,231 +0,0 @@ - - - - - - - org.codehaus.plexus.component.configurator.ComponentConfigurator - takari - io.takari.maven.plugins.configurator.MojoConfigurator - - - - org.apache.maven.lifecycle.MojoExecutionConfigurator - takari - io.takari.maven.plugins.configurator.TakariMojoExecutionConfigurator - - - - - org.apache.maven.lifecycle.mapping.LifecycleMapping - pom - org.apache.maven.lifecycle.mapping.DefaultLifecycleMapping - - - - default - - - io.takari.maven.plugins:takari-lifecycle-plugin:${project.version}:install - - - io.takari.maven.plugins:takari-lifecycle-plugin:${project.version}:deploy - - - - - - - - - - org.apache.maven.artifact.handler.ArtifactHandler - takari-jar - org.apache.maven.artifact.handler.DefaultArtifactHandler - - takari-jar - jar - java - true - - - - org.apache.maven.lifecycle.mapping.LifecycleMapping - takari-jar - org.apache.maven.lifecycle.mapping.DefaultLifecycleMapping - - - - default - - - io.takari.maven.plugins:takari-lifecycle-plugin:${project.version}:process-resources - - - io.takari.maven.plugins:takari-lifecycle-plugin:${project.version}:compile - - - io.takari.maven.plugins:takari-lifecycle-plugin:${project.version}:export-package - - - io.takari.maven.plugins:takari-lifecycle-plugin:${project.version}:process-test-resources - - - io.takari.maven.plugins:takari-lifecycle-plugin:${project.version}:testCompile - - - org.apache.maven.plugins:maven-surefire-plugin:3.4.0:test - - - io.takari.maven.plugins:takari-lifecycle-plugin:${project.version}:jar - - - io.takari.maven.plugins:takari-lifecycle-plugin:${project.version}:install - - - io.takari.maven.plugins:takari-lifecycle-plugin:${project.version}:deploy - - - - - - - - - - org.apache.maven.artifact.handler.ArtifactHandler - takari-maven-plugin - org.apache.maven.artifact.handler.DefaultArtifactHandler - - takari-maven-plugin - jar - java - true - - - - org.apache.maven.lifecycle.mapping.LifecycleMapping - takari-maven-plugin - org.apache.maven.lifecycle.mapping.DefaultLifecycleMapping - - - - default - - - io.takari.maven.plugins:takari-lifecycle-plugin:${project.version}:process-resources - - - io.takari.maven.plugins:takari-lifecycle-plugin:${project.version}:compile, - io.takari.maven.plugins:takari-lifecycle-plugin:${project.version}:mojo-annotation-processor - - - io.takari.maven.plugins:takari-lifecycle-plugin:${project.version}:export-package, - io.takari.maven.plugins:takari-lifecycle-plugin:${project.version}:plugin-descriptor, - io.takari.maven.plugins:takari-lifecycle-plugin:${project.version}:sisu-index - - - io.takari.maven.plugins:takari-lifecycle-plugin:${project.version}:process-test-resources, - io.takari.maven.plugins:takari-lifecycle-plugin:${project.version}:testProperties - - - io.takari.maven.plugins:takari-lifecycle-plugin:${project.version}:testCompile - - - io.takari.maven.plugins:takari-lifecycle-plugin:${project.version}:sisu-test-index - - - org.apache.maven.plugins:maven-surefire-plugin:3.4.0:test - - - io.takari.maven.plugins:takari-lifecycle-plugin:${project.version}:jar, - io.takari.maven.plugins:takari-lifecycle-plugin:${project.version}:addPluginArtifactMetadata - - - io.takari.maven.plugins:takari-lifecycle-plugin:${project.version}:install - - - io.takari.maven.plugins:takari-lifecycle-plugin:${project.version}:deploy - - - - - - - - - - - org.apache.maven.artifact.handler.ArtifactHandler - takari-maven-component - org.apache.maven.artifact.handler.DefaultArtifactHandler - - takari-maven-component - jar - java - true - - - - org.apache.maven.lifecycle.mapping.LifecycleMapping - takari-maven-component - org.apache.maven.lifecycle.mapping.DefaultLifecycleMapping - - - - default - - - io.takari.maven.plugins:takari-lifecycle-plugin:${project.version}:process-resources - - - io.takari.maven.plugins:takari-lifecycle-plugin:${project.version}:compile - - - io.takari.maven.plugins:takari-lifecycle-plugin:${project.version}:export-package, - io.takari.maven.plugins:takari-lifecycle-plugin:${project.version}:sisu-index - - - io.takari.maven.plugins:takari-lifecycle-plugin:${project.version}:process-test-resources, - io.takari.maven.plugins:takari-lifecycle-plugin:${project.version}:testProperties - - - io.takari.maven.plugins:takari-lifecycle-plugin:${project.version}:testCompile - - - io.takari.maven.plugins:takari-lifecycle-plugin:${project.version}:sisu-test-index - - - org.apache.maven.plugins:maven-surefire-plugin:3.4.0:test - - - io.takari.maven.plugins:takari-lifecycle-plugin:${project.version}:jar, - io.takari.maven.plugins:takari-lifecycle-plugin:${project.version}:addPluginArtifactMetadata - - - io.takari.maven.plugins:takari-lifecycle-plugin:${project.version}:install - - - io.takari.maven.plugins:takari-lifecycle-plugin:${project.version}:deploy - - - - - - - - diff --git a/takari-lifecycle-plugin/src/main/resources-filtered/io/takari/maven/plugins/packaging/PomLifecycleMapping.properties b/takari-lifecycle-plugin/src/main/resources-filtered/io/takari/maven/plugins/packaging/PomLifecycleMapping.properties new file mode 100644 index 00000000..e7bff0db --- /dev/null +++ b/takari-lifecycle-plugin/src/main/resources-filtered/io/takari/maven/plugins/packaging/PomLifecycleMapping.properties @@ -0,0 +1,10 @@ +# +# Copyright (c) 2014-2024 Takari, Inc. +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Eclipse Public License v1.0 +# which accompanies this distribution, and is available at +# https://www.eclipse.org/legal/epl-v10.html +# + +install=io.takari.maven.plugins:takari-lifecycle-plugin:${project.version}:install +deploy=io.takari.maven.plugins:takari-lifecycle-plugin:${project.version}:deploy diff --git a/takari-lifecycle-plugin/src/main/resources-filtered/io/takari/maven/plugins/packaging/TakariJarLifecycleMapping.properties b/takari-lifecycle-plugin/src/main/resources-filtered/io/takari/maven/plugins/packaging/TakariJarLifecycleMapping.properties new file mode 100644 index 00000000..d183da7d --- /dev/null +++ b/takari-lifecycle-plugin/src/main/resources-filtered/io/takari/maven/plugins/packaging/TakariJarLifecycleMapping.properties @@ -0,0 +1,17 @@ +# +# Copyright (c) 2014-2024 Takari, Inc. +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Eclipse Public License v1.0 +# which accompanies this distribution, and is available at +# https://www.eclipse.org/legal/epl-v10.html +# + +process-resources=io.takari.maven.plugins:takari-lifecycle-plugin:${project.version}:process-resources +compile=io.takari.maven.plugins:takari-lifecycle-plugin:${project.version}:compile +process-classes=io.takari.maven.plugins:takari-lifecycle-plugin:${project.version}:export-package +process-test-resources=io.takari.maven.plugins:takari-lifecycle-plugin:${project.version}:process-test-resources +test-compile=io.takari.maven.plugins:takari-lifecycle-plugin:${project.version}:testCompile +test=org.apache.maven.plugins:maven-surefire-plugin:${surefire.version}:test +package=io.takari.maven.plugins:takari-lifecycle-plugin:${project.version}:jar +install=io.takari.maven.plugins:takari-lifecycle-plugin:${project.version}:install +deploy=io.takari.maven.plugins:takari-lifecycle-plugin:${project.version}:deploy diff --git a/takari-lifecycle-plugin/src/main/resources-filtered/io/takari/maven/plugins/packaging/TakariMavenComponentLifecycleMapping.properties b/takari-lifecycle-plugin/src/main/resources-filtered/io/takari/maven/plugins/packaging/TakariMavenComponentLifecycleMapping.properties new file mode 100644 index 00000000..87015b8c --- /dev/null +++ b/takari-lifecycle-plugin/src/main/resources-filtered/io/takari/maven/plugins/packaging/TakariMavenComponentLifecycleMapping.properties @@ -0,0 +1,20 @@ +# +# Copyright (c) 2014-2024 Takari, Inc. +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Eclipse Public License v1.0 +# which accompanies this distribution, and is available at +# https://www.eclipse.org/legal/epl-v10.html +# + +process-resources=io.takari.maven.plugins:takari-lifecycle-plugin:${project.version}:process-resources +compile=io.takari.maven.plugins:takari-lifecycle-plugin:${project.version}:compile +process-classes=io.takari.maven.plugins:takari-lifecycle-plugin:${project.version}:export-package,\ + io.takari.maven.plugins:takari-lifecycle-plugin:${project.version}:sisu-index +process-test-resources=io.takari.maven.plugins:takari-lifecycle-plugin:${project.version}:process-test-resources,\ + io.takari.maven.plugins:takari-lifecycle-plugin:${project.version}:testProperties +test-compile=io.takari.maven.plugins:takari-lifecycle-plugin:${project.version}:testCompile +process-test-classes=io.takari.maven.plugins:takari-lifecycle-plugin:${project.version}:sisu-test-index +test=org.apache.maven.plugins:maven-surefire-plugin:${surefire.version}:test +package=io.takari.maven.plugins:takari-lifecycle-plugin:${project.version}:jar +install=io.takari.maven.plugins:takari-lifecycle-plugin:${project.version}:install +deploy=io.takari.maven.plugins:takari-lifecycle-plugin:${project.version}:deploy diff --git a/takari-lifecycle-plugin/src/main/resources-filtered/io/takari/maven/plugins/packaging/TakariMavenPluginLifecycleMapping.properties b/takari-lifecycle-plugin/src/main/resources-filtered/io/takari/maven/plugins/packaging/TakariMavenPluginLifecycleMapping.properties new file mode 100644 index 00000000..4a5634cf --- /dev/null +++ b/takari-lifecycle-plugin/src/main/resources-filtered/io/takari/maven/plugins/packaging/TakariMavenPluginLifecycleMapping.properties @@ -0,0 +1,23 @@ +# +# Copyright (c) 2014-2024 Takari, Inc. +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Eclipse Public License v1.0 +# which accompanies this distribution, and is available at +# https://www.eclipse.org/legal/epl-v10.html +# + +process-resources=io.takari.maven.plugins:takari-lifecycle-plugin:${project.version}:process-resources +compile=io.takari.maven.plugins:takari-lifecycle-plugin:${project.version}:compile,\ + io.takari.maven.plugins:takari-lifecycle-plugin:${project.version}:mojo-annotation-processor +process-classes=io.takari.maven.plugins:takari-lifecycle-plugin:${project.version}:export-package,\ + io.takari.maven.plugins:takari-lifecycle-plugin:${project.version}:plugin-descriptor,\ + io.takari.maven.plugins:takari-lifecycle-plugin:${project.version}:sisu-index +process-test-resources=io.takari.maven.plugins:takari-lifecycle-plugin:${project.version}:process-test-resources,\ + io.takari.maven.plugins:takari-lifecycle-plugin:${project.version}:testProperties +test-compile=io.takari.maven.plugins:takari-lifecycle-plugin:${project.version}:testCompile +process-test-classes=io.takari.maven.plugins:takari-lifecycle-plugin:${project.version}:sisu-test-index +test=org.apache.maven.plugins:maven-surefire-plugin:${surefire.version}:test +package=io.takari.maven.plugins:takari-lifecycle-plugin:${project.version}:jar,\ + io.takari.maven.plugins:takari-lifecycle-plugin:${project.version}:addPluginArtifactMetadata +install=io.takari.maven.plugins:takari-lifecycle-plugin:${project.version}:install +deploy=io.takari.maven.plugins:takari-lifecycle-plugin:${project.version}:deploy