Richard S. Hall | 6cf6f0b | 2007-04-10 16:50:31 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Licensed to the Apache Software Foundation (ASF) under one |
| 3 | * or more contributor license agreements. See the NOTICE file |
| 4 | * distributed with this work for additional information |
| 5 | * regarding copyright ownership. The ASF licenses this file |
| 6 | * to you under the Apache License, Version 2.0 (the |
| 7 | * "License"); you may not use this file except in compliance |
| 8 | * with the License. You may obtain a copy of the License at |
| 9 | * |
| 10 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 11 | * |
| 12 | * Unless required by applicable law or agreed to in writing, |
| 13 | * software distributed under the License is distributed on an |
| 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| 15 | * KIND, either express or implied. See the License for the |
| 16 | * specific language governing permissions and limitations |
| 17 | * under the License. |
| 18 | */ |
Richard S. Hall | 01a56ce | 2007-05-20 22:31:11 +0000 | [diff] [blame] | 19 | package org.apache.felix.bundleplugin; |
Richard S. Hall | 6cf6f0b | 2007-04-10 16:50:31 +0000 | [diff] [blame] | 20 | |
Stuart McCulloch | 5ae5914 | 2008-01-29 06:21:05 +0000 | [diff] [blame] | 21 | |
Richard S. Hall | 6cf6f0b | 2007-04-10 16:50:31 +0000 | [diff] [blame] | 22 | import org.apache.maven.plugin.MojoExecutionException; |
Carsten Ziegeler | 318c2cb | 2015-03-09 13:57:23 +0000 | [diff] [blame] | 23 | import org.apache.maven.plugins.annotations.LifecyclePhase; |
| 24 | import org.apache.maven.plugins.annotations.Mojo; |
| 25 | import org.apache.maven.plugins.annotations.ResolutionScope; |
Richard S. Hall | 6cf6f0b | 2007-04-10 16:50:31 +0000 | [diff] [blame] | 26 | |
Stuart McCulloch | 5ae5914 | 2008-01-29 06:21:05 +0000 | [diff] [blame] | 27 | |
Richard S. Hall | 6cf6f0b | 2007-04-10 16:50:31 +0000 | [diff] [blame] | 28 | /** |
Carsten Ziegeler | 318c2cb | 2015-03-09 13:57:23 +0000 | [diff] [blame] | 29 | * Build an OSGi bundle jar for direct dependencies. |
Stuart McCulloch | b45e181 | 2011-06-27 17:38:53 +0000 | [diff] [blame] | 30 | * @deprecated The wrap goal is no longer supported and may be removed in a future release |
Richard S. Hall | 6cf6f0b | 2007-04-10 16:50:31 +0000 | [diff] [blame] | 31 | */ |
Stuart McCulloch | b45e181 | 2011-06-27 17:38:53 +0000 | [diff] [blame] | 32 | @Deprecated |
Carsten Ziegeler | 0a4eff1 | 2015-05-12 06:04:41 +0000 | [diff] [blame] | 33 | @Mojo( name = "wrap", requiresDependencyResolution = ResolutionScope.TEST, |
| 34 | defaultPhase = LifecyclePhase.PACKAGE) |
Stuart McCulloch | 9366a82 | 2008-01-29 07:45:57 +0000 | [diff] [blame] | 35 | public final class WrapPlugin extends BundleAllPlugin |
Richard S. Hall | 6cf6f0b | 2007-04-10 16:50:31 +0000 | [diff] [blame] | 36 | { |
Carsten Ziegeler | 0a4eff1 | 2015-05-12 06:04:41 +0000 | [diff] [blame] | 37 | @Override |
Stuart McCulloch | 5ae5914 | 2008-01-29 06:21:05 +0000 | [diff] [blame] | 38 | public void execute() throws MojoExecutionException |
Richard S. Hall | 6cf6f0b | 2007-04-10 16:50:31 +0000 | [diff] [blame] | 39 | { |
Stuart McCulloch | b45e181 | 2011-06-27 17:38:53 +0000 | [diff] [blame] | 40 | getLog().warn( "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" ); |
| 41 | getLog().warn( "! The wrap goal is no longer supported and may be removed in a future release !" ); |
| 42 | getLog().warn( "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" ); |
| 43 | |
Richard S. Hall | 6cf6f0b | 2007-04-10 16:50:31 +0000 | [diff] [blame] | 44 | BundleInfo bundleInfo = bundleAll( getProject(), 1 ); |
| 45 | logDuplicatedPackages( bundleInfo ); |
| 46 | } |
Richard S. Hall | 6cf6f0b | 2007-04-10 16:50:31 +0000 | [diff] [blame] | 47 | } |