Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
AttachedAssemblyMojo |
|
| 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 | * 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 | * | |
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 1359773 2012-07-10 16:43:50Z tchemit $ | |
36 | * | |
37 | * @deprecated Use assembly:single instead! The assembly:attached mojo leads to non-standard builds. | |
38 | */ | |
39 | @Mojo( name = "attached", aggregator = true, inheritByDefault = false ) | |
40 | @Deprecated | |
41 | 0 | public class AttachedAssemblyMojo |
42 | extends AbstractAssemblyMojo | |
43 | { | |
44 | /** | |
45 | */ | |
46 | @Component | |
47 | private MavenProject project; | |
48 | ||
49 | @Override | |
50 | public MavenProject getProject() | |
51 | { | |
52 | 0 | return project; |
53 | } | |
54 | } |