blob: b6948c32978afde9a2ebd1aa1db7fc25c9dc2e35 [file] [log] [blame]
Richard S. Hall6cf6f0b2007-04-10 16:50:31 +00001/*
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. Hall01a56ce2007-05-20 22:31:11 +000019package org.apache.felix.bundleplugin;
Richard S. Hall6cf6f0b2007-04-10 16:50:31 +000020
Stuart McCulloch5ae59142008-01-29 06:21:05 +000021
Richard S. Hall6cf6f0b2007-04-10 16:50:31 +000022import org.apache.maven.plugin.MojoExecutionException;
Carsten Ziegeler318c2cb2015-03-09 13:57:23 +000023import org.apache.maven.plugins.annotations.LifecyclePhase;
24import org.apache.maven.plugins.annotations.Mojo;
25import org.apache.maven.plugins.annotations.ResolutionScope;
Richard S. Hall6cf6f0b2007-04-10 16:50:31 +000026
Stuart McCulloch5ae59142008-01-29 06:21:05 +000027
Richard S. Hall6cf6f0b2007-04-10 16:50:31 +000028/**
Carsten Ziegeler318c2cb2015-03-09 13:57:23 +000029 * Build an OSGi bundle jar for direct dependencies.
Stuart McCullochb45e1812011-06-27 17:38:53 +000030 * @deprecated The wrap goal is no longer supported and may be removed in a future release
Richard S. Hall6cf6f0b2007-04-10 16:50:31 +000031 */
Stuart McCullochb45e1812011-06-27 17:38:53 +000032@Deprecated
Carsten Ziegeler0a4eff12015-05-12 06:04:41 +000033@Mojo( name = "wrap", requiresDependencyResolution = ResolutionScope.TEST,
34 defaultPhase = LifecyclePhase.PACKAGE)
Stuart McCulloch9366a822008-01-29 07:45:57 +000035public final class WrapPlugin extends BundleAllPlugin
Richard S. Hall6cf6f0b2007-04-10 16:50:31 +000036{
Carsten Ziegeler0a4eff12015-05-12 06:04:41 +000037 @Override
Stuart McCulloch5ae59142008-01-29 06:21:05 +000038 public void execute() throws MojoExecutionException
Richard S. Hall6cf6f0b2007-04-10 16:50:31 +000039 {
Stuart McCullochb45e1812011-06-27 17:38:53 +000040 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. Hall6cf6f0b2007-04-10 16:50:31 +000044 BundleInfo bundleInfo = bundleAll( getProject(), 1 );
45 logDuplicatedPackages( bundleInfo );
46 }
Richard S. Hall6cf6f0b2007-04-10 16:50:31 +000047}