1 package org.apache.maven.plugin.assembly.mojos; 2 3 /* 4 * Licensed to the Apache Software Foundation (ASF) under one 5 * or more contributor license agreements. See the NOTICE file 6 * distributed with this work for additional information 7 * regarding copyright ownership. The ASF licenses this file 8 * to you under the Apache License, Version 2.0 (the 9 * "License"); you may not use this file except in compliance 10 * with the License. You may obtain a copy of the License at 11 * 12 * http://www.apache.org/licenses/LICENSE-2.0 13 * 14 * Unless required by applicable law or agreed to in writing, 15 * software distributed under the License is distributed on an 16 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 17 * KIND, either express or implied. See the License for the 18 * specific language governing permissions and limitations 19 * under the License. 20 */ 21 22 import org.apache.maven.plugins.annotations.Mojo; 23 import org.apache.maven.plugins.annotations.Parameter; 24 import org.apache.maven.project.MavenProject; 25 26 /** 27 * Assemble an application bundle or distribution from an assembly descriptor, WITHOUT first forcing Maven to build all 28 * POMs to the <code>package</code> phase (as is required by the <code>assembly:assembly</code> goal). <br/> 29 * <p/> 30 * <b>NOTE:</b> This goal should ONLY be run from the command line, and if building a multimodule project it should be 31 * used from the root POM. Use the <code>assembly:single</code> goal for binding your assembly to the lifecycle. 32 * 33 * @author <a href="mailto:jdcasey@apache.org">John Casey</a> 34 * @author <a href="mailto:jerome@coffeebreaks.org">Jerome Lacoste</a> 35 * @version $Id: AttachedAssemblyMojo.java 1639422 2014-11-13 18:08:07Z krosenvold $ 36 * @deprecated Use assembly:single instead! The assembly:attached mojo leads to non-standard builds. 37 */ 38 @Mojo( name = "attached", aggregator = true, inheritByDefault = false ) 39 @Deprecated 40 public class AttachedAssemblyMojo 41 extends AbstractAssemblyMojo 42 { 43 /** 44 */ 45 @Parameter( defaultValue = "${project}", readonly = true, required = true ) 46 private MavenProject project; 47 48 @Override 49 public MavenProject getProject() 50 { 51 return project; 52 } 53 }