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 * Like the <code>assembly:attached</code> goal, assemble an application bundle or distribution from an assembly 28 * descriptor, WITHOUT first forcing Maven to build all POMs to the <code>package</code> phase (as is required by the 29 * <code>assembly:assembly</code> goal). This goal differs from <code>assembly:attached</code> in that it ignores the 30 * <formats/> section of the assembly descriptor, and forces the assembly to be created as a directory in the 31 * project's build-output directory (usually <code>./target</code>). <br/> 32 * <p/> 33 * This goal is also functionally equivalent to using the <code>assembly:attached</code> goal in conjunction with the 34 * <code>dir</code> assembly format. <br/> 35 * <p/> 36 * <b>NOTE:</b> This goal should ONLY be run from the command line, and if building a multimodule project it should be 37 * used from the root POM. Use the <code>assembly:directory-single</code> goal for binding your assembly to the 38 * lifecycle. 39 * 40 * @author <a href="mailto:jdcasey@apache.org">John Casey</a> 41 * @author <a href="mailto:gscokart@users.sourceforge.net">Gilles Scokart</a> 42 * @version $Id: DirectoryInlineMojo.java 1639422 2014-11-13 18:08:07Z krosenvold $ 43 * @deprecated Use assembly:single and an assembly with format == dir instead! This mojo is redundant, and leads to 44 * non-standard builds. 45 */ 46 @Mojo( name = "directory-inline", aggregator = true, inheritByDefault = false ) 47 @Deprecated 48 public class DirectoryInlineMojo 49 extends AbstractDirectoryMojo 50 { 51 /** 52 */ 53 @Parameter( defaultValue = "${project}", readonly = true, required = true ) 54 private MavenProject project; 55 56 @Override 57 public MavenProject getProject() 58 { 59 return project; 60 } 61 62 }