1405 |
1405 |
<pluginManagement>
|
1406 |
1406 |
<plugins>
|
1407 |
1407 |
|
|
1408 |
<plugin>
|
|
1409 |
<groupId>org.apache.maven.plugins</groupId>
|
|
1410 |
<artifactId>maven-scm-plugin</artifactId>
|
|
1411 |
<version>1.9</version>
|
|
1412 |
<configuration>
|
|
1413 |
<connectionType>connection</connectionType>
|
|
1414 |
</configuration>
|
|
1415 |
</plugin>
|
|
1416 |
|
1408 |
1417 |
<plugin>
|
1409 |
1418 |
<!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->
|
1410 |
1419 |
<groupId>org.eclipse.m2e</groupId>
|
... | ... | |
2017 |
2026 |
out.println();
|
2018 |
2027 |
}
|
2019 |
2028 |
|
2020 |
|
if( project.properties["user"] == null ) {
|
|
2029 |
if( project.properties["username"] == null ) {
|
2021 |
2030 |
print("Enter user name: ");
|
2022 |
2031 |
user = System.console().readLine().toString()
|
2023 |
2032 |
if( user != "" ) {
|
2024 |
|
project.properties.setProperty("user",user);
|
|
2033 |
project.properties.setProperty("username",user);
|
2025 |
2034 |
}
|
2026 |
2035 |
}
|
2027 |
2036 |
if( project.properties["password"] == null ) {
|
2028 |
|
print("Enter password for user '" + project.properties["user"] + "': ");
|
|
2037 |
print("Enter password for user '" + project.properties["username"] + "': ");
|
2029 |
2038 |
password = System.console().readPassword().toString()
|
2030 |
2039 |
if( password != "" ) {
|
2031 |
2040 |
project.properties.setProperty("password",password);
|
2032 |
2041 |
}
|
2033 |
2042 |
}
|
2034 |
2043 |
WebDAVClient session = new WebDAVClient(log);
|
2035 |
|
if( project.properties["user"] == null || project.properties["password"] == null ) {
|
|
2044 |
if( project.properties["username"] == null || project.properties["password"] == null ) {
|
2036 |
2045 |
log.info("[WEBDAV] creating non authenticated session.");
|
2037 |
2046 |
log.info("[WEBDAV] Use -Duser=USER -Dpassword=PASSWORD to create a authenticated session.");
|
2038 |
2047 |
session.login();
|
2039 |
2048 |
} else {
|
2040 |
|
session.login(project.properties["user"], project.properties["password"]);
|
|
2049 |
session.login(project.properties["username"], project.properties["password"]);
|
2041 |
2050 |
}
|
2042 |
2051 |
session.makedirs(targetPath);
|
2043 |
2052 |
session.put(source + ".gvspkg.zip", targetPath+"/"+pkgname+ ".gvspkg");
|
... | ... | |
2061 |
2070 |
</pluginManagement>
|
2062 |
2071 |
|
2063 |
2072 |
<plugins>
|
2064 |
|
|
2065 |
2073 |
<plugin>
|
|
2074 |
<groupId>org.apache.maven.plugins</groupId>
|
|
2075 |
<artifactId>maven-scm-plugin</artifactId>
|
|
2076 |
</plugin>
|
|
2077 |
|
|
2078 |
<plugin>
|
2066 |
2079 |
<artifactId>maven-clean-plugin</artifactId>
|
2067 |
2080 |
<configuration>
|
2068 |
2081 |
<filesets>
|