@@ -0,0 +1,1962 @@
+package com.monday_consulting.maven.plugins.fsm;%0A%0A/*%0ACopyright 2016-2020 Monday Consulting GmbH%0A%0ALicensed under the Apache License, Version 2.0 (the %22License%22);%0Ayou may not use this file except in compliance with the License.%0AYou may obtain a copy of the License at%0A%0Ahttp://www.apache.org/licenses/LICENSE-2.0%0A%0AUnless required by applicable law or agreed to in writing, software%0Adistributed under the License is distributed on an %22AS IS%22 BASIS,%0AWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0ASee the License for the specific language governing permissions and%0Alimitations under the License.%0A*/%0A%0Aimport org.apache.maven.plugin.AbstractMojo;%0Aimport org.apache.maven.plugins.annotations.*;%0Aimport org.apache.maven.project.MavenProject;%0Aimport org.apache.maven.project.MavenProjectHelper;%0A%0Aimport java.io.File;%0A%0A/**%0A * This Mojo attaches the assembled FSM as a project artifact.%0A *%0A * @author Oliver Degener%0A * @since 1.6.0%0A */%0A@Mojo(name = %22attachFSM%22, defaultPhase = LifecyclePhase.PACKAGE)%0Aclass AttachFSMMojo extends AbstractMojo %7B%0A%0A    @Component%0A    private MavenProjectHelper projectHelper;%0A%0A    /**%0A     * The filename of the assembled distribution file.%0A     */%0A    @Parameter(property = %22fsmFile%22, defaultValue = %22$%7Bproject.artifactId%7D-$%7Bproject.version%7D.fsm.zip%22)%0A    private String fsmFile;%0A%0A    /**%0A     * The artifact type, defaults to fsm.%0A     */%0A    @Parameter(property = %22type%22, defaultValue = %22fsm%22)%0A    private String type;%0A%0A    @Parameter(defaultValue = %22$%7Bproject%7D%22, readonly = true, required = true)%0A    private MavenProject project;%0A%0A    @Override%0A    public void execute() %7B%0A        final String targetDir =  project.getBuild().getDirectory();%0A%0A        String path = targetDir.concat(File.separator).concat(fsmFile);%0A        File file = new File(path);%0A%0A        getLog().info(%22Attaching '%22 + type + %22' artifact: %22 + file.getAbsolutePath());%0A        projectHelper.attachArtifact(project, type, null, file);%0A    %7D%0A%0A%7D%0A

Introduce the new AttachFSMMojo