Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
DirectoryInlineMojo |
|
| 1.0;1 |
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.Component; | |
23 | import org.apache.maven.plugins.annotations.Mojo; | |
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 | * | |
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 | * | |
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 1359773 2012-07-10 16:43:50Z tchemit $ | |
43 | * | |
44 | * @deprecated Use assembly:single and an assembly with format == dir instead! This mojo is redundant, and leads to | |
45 | * non-standard builds. | |
46 | */ | |
47 | @Mojo( name = "directory-inline", aggregator = true, inheritByDefault = false ) | |
48 | @Deprecated | |
49 | 0 | public class DirectoryInlineMojo |
50 | extends AbstractDirectoryMojo | |
51 | { | |
52 | /** | |
53 | */ | |
54 | @Component | |
55 | private MavenProject project; | |
56 | ||
57 | @Override | |
58 | public MavenProject getProject() | |
59 | { | |
60 | 0 | return project; |
61 | } | |
62 | ||
63 | } |