View Javadoc

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.project.MavenProject;
23  
24  /**
25   * Assemble an application bundle or distribution from an assembly descriptor, WITHOUT first forcing Maven to build all
26   * POMs to the <code>package</code> phase (as is required by the <code>assembly:assembly</code> goal). <br/>
27   * 
28   * <b>NOTE:</b> This goal should ONLY be run from the command line, and if building a multimodule project it should be
29   * used from the root POM. Use the <code>assembly:single</code> goal for binding your assembly to the lifecycle.
30   * 
31   * @author <a href="mailto:jdcasey@apache.org">John Casey</a>
32   * @author <a href="mailto:jerome@coffeebreaks.org">Jerome Lacoste</a>
33   * @version $Id: AttachedAssemblyMojo.java 999625 2010-09-21 20:40:39Z jdcasey $
34   * 
35   * @goal attached
36   * @aggregator
37   * @inheritByDefault false
38   * @deprecated Use assembly:single instead! The assembly:attached mojo leads to non-standard builds.
39   */
40  @Deprecated
41  public class AttachedAssemblyMojo
42      extends AbstractAssemblyMojo
43  {
44      /**
45       * @parameter default-value="${project}"
46       * @required
47       * @readonly
48       */
49      private MavenProject project;
50  
51      @Override
52      public MavenProject getProject()
53      {
54          return project;
55      }
56  }