<groupId>org.apache.archiva</groupId>
<artifactId>archiva-configuration</artifactId>
</dependency>
- <dependency>
- <groupId>org.apache.archiva</groupId>
- <artifactId>archiva-model</artifactId>
- </dependency>
- <dependency>
- <groupId>org.apache.archiva</groupId>
- <artifactId>archiva-repository-layer</artifactId>
- </dependency>
<dependency>
<groupId>org.apache.lucene</groupId>
<artifactId>lucene-core</artifactId>
* under the License.
*/
-import org.apache.commons.lang.StringUtils;
-import org.apache.maven.archiva.model.ArchivaArtifact;
-
import java.util.ArrayList;
import java.util.List;
private List<String> versions = new ArrayList<String>();
- private ArchivaArtifact artifact;
-
public String getContext()
{
return context;
this.artifactId = artifactId;
}
- public void setArtifact( ArchivaArtifact artifact )
- {
- this.artifact = artifact;
- final String ver = artifact.getVersion();
-
- if ( !this.versions.contains( ver ) )
- {
- this.versions.add( ver );
- }
-
- if ( StringUtils.isBlank( this.groupId ) )
- {
- this.groupId = artifact.getGroupId();
- }
-
- if ( StringUtils.isBlank( this.artifactId ) )
- {
- this.artifactId = artifact.getArtifactId();
- }
-
- if ( StringUtils.isBlank( this.version ) )
- {
- this.version = ver;
- }
- }
-
- public ArchivaArtifact getArtifact()
- {
- return artifact;
- }
-
public String getGroupId()
{
return groupId;