-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
123 additions
and
0 deletions.
There are no files selected for viewing
59 changes: 59 additions & 0 deletions
59
api/maven-api-core/src/main/java/org/apache/maven/api/Lifecycle.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
/* | ||
* Licensed to the Apache Software Foundation (ASF) under one | ||
* or more contributor license agreements. See the NOTICE file | ||
* distributed with this work for additional information | ||
* regarding copyright ownership. The ASF licenses this file | ||
* to you under the Apache License, Version 2.0 (the | ||
* "License"); you may not use this file except in compliance | ||
* with the License. You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, | ||
* software distributed under the License is distributed on an | ||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
* KIND, either express or implied. See the License for the | ||
* specific language governing permissions and limitations | ||
* under the License. | ||
*/ | ||
package org.apache.maven.api; | ||
|
||
import java.util.List; | ||
|
||
import org.apache.maven.api.annotations.Nonnull; | ||
import org.apache.maven.api.model.PluginContainer; | ||
|
||
/** | ||
* Lifecycle definition | ||
*/ | ||
public interface Lifecycle extends ExtensibleEnum { | ||
|
||
String CLEAN = "clean"; | ||
|
||
String DEFAULT = "default"; | ||
|
||
String SITE = "site"; | ||
|
||
/** | ||
* Name or identifier of this lifecycle. | ||
* | ||
* @return the unique identifier for this lifecycle | ||
*/ | ||
@Override | ||
String id(); | ||
|
||
/** | ||
* List of phases for this lifecycle | ||
* | ||
* @return | ||
*/ | ||
List<String> phases(); | ||
|
||
/** | ||
* Default bindings for this lifecycle | ||
* | ||
* @return | ||
*/ | ||
@Nonnull | ||
PluginContainer defaultBinding(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
api/maven-api-spi/src/main/java/org/apache/maven/api/spi/LifecycleProvider.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
/* | ||
* Licensed to the Apache Software Foundation (ASF) under one | ||
* or more contributor license agreements. See the NOTICE file | ||
* distributed with this work for additional information | ||
* regarding copyright ownership. The ASF licenses this file | ||
* to you under the Apache License, Version 2.0 (the | ||
* "License"); you may not use this file except in compliance | ||
* with the License. You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, | ||
* software distributed under the License is distributed on an | ||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
* KIND, either express or implied. See the License for the | ||
* specific language governing permissions and limitations | ||
* under the License. | ||
*/ | ||
package org.apache.maven.api.spi; | ||
|
||
import org.apache.maven.api.Lifecycle; | ||
import org.apache.maven.api.annotations.Consumer; | ||
import org.apache.maven.api.annotations.Experimental; | ||
|
||
@Experimental | ||
@Consumer | ||
public interface LifecycleProvider extends ExtensibleEnumProvider<Lifecycle> {} |
27 changes: 27 additions & 0 deletions
27
api/maven-api-spi/src/main/java/org/apache/maven/api/spi/PackagingProvider.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
/* | ||
* Licensed to the Apache Software Foundation (ASF) under one | ||
* or more contributor license agreements. See the NOTICE file | ||
* distributed with this work for additional information | ||
* regarding copyright ownership. The ASF licenses this file | ||
* to you under the Apache License, Version 2.0 (the | ||
* "License"); you may not use this file except in compliance | ||
* with the License. You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, | ||
* software distributed under the License is distributed on an | ||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
* KIND, either express or implied. See the License for the | ||
* specific language governing permissions and limitations | ||
* under the License. | ||
*/ | ||
package org.apache.maven.api.spi; | ||
|
||
import org.apache.maven.api.Packaging; | ||
import org.apache.maven.api.annotations.Consumer; | ||
import org.apache.maven.api.annotations.Experimental; | ||
|
||
@Experimental | ||
@Consumer | ||
public interface PackagingProvider extends ExtensibleEnumProvider<Packaging> {} |