Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MNG-8153] Add back missing classes from the v3 api #1577

Merged
merged 1 commit into from
Jun 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
/*
* 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.plugin.lifecycle;

/**
* A set of goals to execute.
*
* @version $Revision$ $Date$
*/
@SuppressWarnings("all")
public class Execution implements java.io.Serializable {

// --------------------------/
// - Class/Member Variables -/
// --------------------------/

/**
* Configuration to pass to the goals.
*/
private Object configuration;

/**
* Field goals.
*/
private java.util.List<String> goals;

// -----------/
// - Methods -/
// -----------/

/**
* Method addGoal.
*
* @param string a string object.
*/
public void addGoal(String string) {
getGoals().add(string);
} // -- void addGoal( String )

/**
* Get configuration to pass to the goals.
*
* @return Object
*/
public Object getConfiguration() {
return this.configuration;
} // -- Object getConfiguration()

/**
* Method getGoals.
*
* @return List
*/
public java.util.List<String> getGoals() {
if (this.goals == null) {
this.goals = new java.util.ArrayList<String>();
}

return this.goals;
} // -- java.util.List<String> getGoals()

/**
* Method removeGoal.
*
* @param string a string object.
*/
public void removeGoal(String string) {
getGoals().remove(string);
} // -- void removeGoal( String )

/**
* Set configuration to pass to the goals.
*
* @param configuration a configuration object.
*/
public void setConfiguration(Object configuration) {
this.configuration = configuration;
} // -- void setConfiguration( Object )

/**
* Set the goals to execute.
*
* @param goals a goals object.
*/
public void setGoals(java.util.List<String> goals) {
this.goals = goals;
} // -- void setGoals( java.util.List )
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,109 @@
/*
* 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.plugin.lifecycle;

/**
*
* A custom lifecycle mapping definition.
*
*
* @version $Revision$ $Date$
*/
@SuppressWarnings("all")
public class Lifecycle implements java.io.Serializable {

// --------------------------/
// - Class/Member Variables -/
// --------------------------/

/**
* The ID of this lifecycle, for identification in the mojo
* descriptor.
*/
private String id;

/**
* Field phases.
*/
private java.util.List<Phase> phases;

// -----------/
// - Methods -/
// -----------/

/**
* Method addPhase.
*
* @param phase a phase object.
*/
public void addPhase(Phase phase) {
getPhases().add(phase);
} // -- void addPhase( Phase )

/**
* Get the ID of this lifecycle, for identification in the mojo
* descriptor.
*
* @return String
*/
public String getId() {
return this.id;
} // -- String getId()

/**
* Method getPhases.
*
* @return List
*/
public java.util.List<Phase> getPhases() {
if (this.phases == null) {
this.phases = new java.util.ArrayList<Phase>();
}

return this.phases;
} // -- java.util.List<Phase> getPhases()

/**
* Method removePhase.
*
* @param phase a phase object.
*/
public void removePhase(Phase phase) {
getPhases().remove(phase);
} // -- void removePhase( Phase )

/**
* Set the ID of this lifecycle, for identification in the mojo
* descriptor.
*
* @param id a id object.
*/
public void setId(String id) {
this.id = id;
} // -- void setId( String )

/**
* Set the phase mappings for this lifecycle.
*
* @param phases a phases object.
*/
public void setPhases(java.util.List<Phase> phases) {
this.phases = phases;
} // -- void setPhases( java.util.List )
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
/*
* 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.plugin.lifecycle;

/**
* Root element of the <code>lifecycle.xml</code> file.
*
* @version $Revision$ $Date$
*/
@SuppressWarnings("all")
public class LifecycleConfiguration implements java.io.Serializable {

// --------------------------/
// - Class/Member Variables -/
// --------------------------/

/**
* Field lifecycles.
*/
private java.util.List<Lifecycle> lifecycles;

/**
* Field modelEncoding.
*/
private String modelEncoding = "UTF-8";

// -----------/
// - Methods -/
// -----------/

/**
* Method addLifecycle.
*
* @param lifecycle a lifecycle object.
*/
public void addLifecycle(Lifecycle lifecycle) {
getLifecycles().add(lifecycle);
} // -- void addLifecycle( Lifecycle )

/**
* Method getLifecycles.
*
* @return List
*/
public java.util.List<Lifecycle> getLifecycles() {
if (this.lifecycles == null) {
this.lifecycles = new java.util.ArrayList<Lifecycle>();
}

return this.lifecycles;
} // -- java.util.List<Lifecycle> getLifecycles()

/**
* Get the modelEncoding field.
*
* @return String
*/
public String getModelEncoding() {
return this.modelEncoding;
} // -- String getModelEncoding()

/**
* Method removeLifecycle.
*
* @param lifecycle a lifecycle object.
*/
public void removeLifecycle(Lifecycle lifecycle) {
getLifecycles().remove(lifecycle);
} // -- void removeLifecycle( Lifecycle )

/**
* Set the lifecycles field.
*
* @param lifecycles a lifecycles object.
*/
public void setLifecycles(java.util.List<Lifecycle> lifecycles) {
this.lifecycles = lifecycles;
} // -- void setLifecycles( java.util.List )

/**
* Set the modelEncoding field.
*
* @param modelEncoding a modelEncoding object.
*/
public void setModelEncoding(String modelEncoding) {
this.modelEncoding = modelEncoding;
} // -- void setModelEncoding( String )
}
Loading