mirror of https://github.com/apache/archiva.git
add some materials to be able to use REST services in a gwt based application
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1177666 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
bf865287f3
commit
05191844ba
|
@ -46,4 +46,21 @@
|
|||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-source-plugin</artifactId>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>bind-sources</id>
|
||||
<goals>
|
||||
<goal>jar-no-fork</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
|
||||
</project>
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
<module>
|
||||
<source path="beans" />
|
||||
</module>
|
|
@ -74,4 +74,22 @@
|
|||
</exclusions>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-source-plugin</artifactId>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>bind-sources</id>
|
||||
<goals>
|
||||
<goal>jar-no-fork</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
|
||||
</project>
|
||||
|
|
|
@ -38,68 +38,6 @@ public class Dependency
|
|||
|
||||
private String scope;
|
||||
|
||||
@Override
|
||||
public String toString()
|
||||
{
|
||||
return "Dependency{" + "groupId='" + groupId + '\'' + ", artifactId='" + artifactId + '\'' + ", version='"
|
||||
+ version + '\'' + ", classifier='" + classifier + '\'' + ", type='" + type + '\'' + ", scope='" + scope
|
||||
+ '\'' + '}';
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals( Object o )
|
||||
{
|
||||
if ( this == o )
|
||||
{
|
||||
return true;
|
||||
}
|
||||
if ( o == null || getClass() != o.getClass() )
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
Dependency that = (Dependency) o;
|
||||
|
||||
if ( !artifactId.equals( that.artifactId ) )
|
||||
{
|
||||
return false;
|
||||
}
|
||||
if ( classifier != null ? !classifier.equals( that.classifier ) : that.classifier != null )
|
||||
{
|
||||
return false;
|
||||
}
|
||||
if ( !groupId.equals( that.groupId ) )
|
||||
{
|
||||
return false;
|
||||
}
|
||||
if ( scope != null ? !scope.equals( that.scope ) : that.scope != null )
|
||||
{
|
||||
return false;
|
||||
}
|
||||
if ( type != null ? !type.equals( that.type ) : that.type != null )
|
||||
{
|
||||
return false;
|
||||
}
|
||||
if ( !version.equals( that.version ) )
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode()
|
||||
{
|
||||
int result = groupId.hashCode();
|
||||
result = 31 * result + artifactId.hashCode();
|
||||
result = 31 * result + version.hashCode();
|
||||
result = 31 * result + ( classifier != null ? classifier.hashCode() : 0 );
|
||||
result = 31 * result + ( type != null ? type.hashCode() : 0 );
|
||||
result = 31 * result + ( scope != null ? scope.hashCode() : 0 );
|
||||
return result;
|
||||
}
|
||||
|
||||
public Dependency( String groupId, String artifactId, String version, String classifier, String type, String scope )
|
||||
{
|
||||
this.groupId = groupId;
|
||||
|
@ -169,4 +107,66 @@ public class Dependency
|
|||
{
|
||||
this.scope = scope;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString()
|
||||
{
|
||||
return "Dependency{" + "groupId='" + groupId + '\'' + ", artifactId='" + artifactId + '\'' + ", version='"
|
||||
+ version + '\'' + ", classifier='" + classifier + '\'' + ", type='" + type + '\'' + ", scope='" + scope
|
||||
+ '\'' + '}';
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals( Object o )
|
||||
{
|
||||
if ( this == o )
|
||||
{
|
||||
return true;
|
||||
}
|
||||
if ( o == null || getClass() != o.getClass() )
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
Dependency that = (Dependency) o;
|
||||
|
||||
if ( !artifactId.equals( that.artifactId ) )
|
||||
{
|
||||
return false;
|
||||
}
|
||||
if ( classifier != null ? !classifier.equals( that.classifier ) : that.classifier != null )
|
||||
{
|
||||
return false;
|
||||
}
|
||||
if ( !groupId.equals( that.groupId ) )
|
||||
{
|
||||
return false;
|
||||
}
|
||||
if ( scope != null ? !scope.equals( that.scope ) : that.scope != null )
|
||||
{
|
||||
return false;
|
||||
}
|
||||
if ( type != null ? !type.equals( that.type ) : that.type != null )
|
||||
{
|
||||
return false;
|
||||
}
|
||||
if ( !version.equals( that.version ) )
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode()
|
||||
{
|
||||
int result = groupId.hashCode();
|
||||
result = 31 * result + artifactId.hashCode();
|
||||
result = 31 * result + version.hashCode();
|
||||
result = 31 * result + ( classifier != null ? classifier.hashCode() : 0 );
|
||||
result = 31 * result + ( type != null ? type.hashCode() : 0 );
|
||||
result = 31 * result + ( scope != null ? scope.hashCode() : 0 );
|
||||
return result;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
<module>
|
||||
<source path="model" />
|
||||
</module>
|
Loading…
Reference in New Issue