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
/* | |
get the rsa key of your server: | |
$ ssh-keyscan -t rsa server_ip | |
# server_ip SSH-2.0-OpenSSH_4.3 | |
server_ip ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAwH5EXZG... | |
and on the client, add this key to ~/.ssh/known_hosts: | |
server_ip ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAqx9m529...(the offensive key) |
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
configurations { | |
axisGenAntTask | |
} | |
dependencies { | |
axisGenAntTask "org.apache.axis2:axis2:1.6.2", | |
"org.apache.axis2:axis2-tools:1.1.1", | |
'org.apache.neethi:neethi:2.0.2', | |
'org.apache.ws.commons.schema:XmlSchema:1.4.7', | |
'org.apache.ws.commons.axiom:axiom-api:1.2.14', |
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
apply plugin: "java" | |
repositories{ | |
mavenCentral() | |
} | |
configurations { | |
axisGenAntTask | |
} |
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
<profile> | |
<id>remote-deploy</id> | |
<activation> | |
<activeByDefault>true</activeByDefault> | |
</activation> | |
<build> | |
<plugins> | |
<plugin> | |
<groupId>org.jboss.as.plugins</groupId> | |
<artifactId>jboss-as-maven-plugin</artifactId> |
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
// We define a new configuration with the name 'sshAntTask'. | |
// This configuration is used to define our dependencies. | |
configurations { | |
sshAntTask | |
} | |
// Define the Maven central repository to look for the dependencies. | |
repositories { | |
mavenCentral() | |
} |
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
uploadArchives { | |
repositories { | |
mavenDeployer { | |
repository(url: "http://REPOSITORYURL/nexus/content/repositories/snapshots/") { | |
authentication(userName: "username", password: "password") | |
} | |
pom.version = "1.0-SNAPSHOT" | |
pom.artifactId = "artifactId" | |
pom.groupId = "com.example" | |
} |
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
apply plugin: "war" | |
project.webAppDirName = 'WebContent' | |
repositories { | |
flatDir { dirs "WebContent/WEB-INF/lib" } | |
mavenCentral() | |
} | |
dependencies { |