I have successfully built maven-1.1 from .\maven\maven-1\trunks\core on
my Vista PC / Java 1.5 from DOS and from NetBeans 5.5.1
Using maven-1.1 I have successfully built axis2-1.2; and thats why I
need maven also on a OpenVMS Integrity Server from HP;
There - Axis2-1.2 - is up and running there; but I need to compile/debug
axis2-1.2 to figure/detect out undocumented behaviour.
i.e. - why my destroy() method is no longer called in
scope="soapsession"
So I like to complement our development environment on OpenVMS with
maven-1.1 first and then subseqeuntl upgrade tomaven 2 and
Maven 3 when done with maven 1.1
However
IA64> ant -f build-bootstrap.xml
Fails on OpenVMS but runs on the Vista PC
IA64>ant "-f" "build-bootstrap.xml"
Buildfile: build-bootstrap.xml
check-maven-home:
check-maven-home-local-default:
check-maven-home-local:
check-maven-repo-local:
check-properties:
check-env:
[echo] maven.home = /dkb3/apache-maven-1.1
env:
[echo] maven.home = /dkb3/apache-maven-1.1
[echo] maven.home.local = /dkb3/stadelma/.maven
[echo] maven.repo.local = /dkb3/stadelma/.maven/repository
[echo]
[echo]
[echo] +----------------------------------------------------------
[echo]
[echo] | WARNING WARNING WARNING WARNING WARNING WARNING WARNING
[echo]
[echo] |
[echo]
. . . .
[echo] |
[echo]
[echo] | WARNING WARNING WARNING WARNING WARNING WARNING WARNING
[echo]
[echo] +----------------------------------------------------------
clean-maven-home:
[delete] Deleting directory /dkb3/apache-maven-1.1/bin
[mkdir] Created dir: /dkb3/apache-maven-1.1/bin
[delete] Deleting directory /dkb3/apache-maven-1.1/lib
[mkdir] Created dir: /dkb3/apache-maven-1.1/lib
[delete] Deleting directory /dkb3/apache-maven-1.1/plugins
[mkdir] Created dir: /dkb3/apache-maven-1.1/plugins
maven-phase-1:
[delete] Deleting directory
/dkb3/sw-projekte/asf/maven/maven-1/trunks/core/bootstrap
[mkdir] Created dir:
/dkb3/sw-projekte/asf/maven/maven-1/trunks/core/bootstrap/bootstrap-clas
ses
[javac] Compiling 6 source files to
/dkb3/sw-projekte/asf/maven/maven-1/trunks/core/bootstrap/bootstrap-clas
ses
[javac] Note: Some input files use unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.
[echo]
[echo]
[echo] |
[echo]
[echo] | LOADING BOOTSTRAP TASKDEF...
[echo]
[echo] |
[echo]
[echo]
[echo] |
[echo]
[echo] | RUNNING BOOTSTRAP TASK...
[echo]
[echo] |
[mkdir] Created dir:
/dkb3/sw-projekte/asf/maven/maven-1/trunks/core/bootstrap/bin
[bootstrap] Using the following for your maven.repo.local:
/dkb3/stadelma/.maven/repository
[bootstrap] Using the following for your local repository:
/dkb3/stadelma/.maven/repository
[bootstrap] Using the following for your remote repositories:
[http://people.apache.org/repo/m1-snapshot-repository/, http://repo1.m
aven.org/maven/]
[bootstrap] Downloading
http://people.apache.org/repo/m1-snapshot-repository/maven/jars/dom4j-1.
7-20060614.jar
[bootstrap] Error retrieving artifact from
[http://people.apache.org/repo/m1-snapshot-repository/maven/jars/dom4j-1
.7-20060614.jar]:
java.io.IOException: Not authorized by proxy.
[bootstrap] Downloading
http://repo1.maven.org/maven/maven/jars/dom4j-1.7-20060614.jar
[bootstrap] Error retrieving artifact from
[http://repo1.maven.org/maven/maven/jars/dom4j-1.7-20060614.jar]:
java.io.IOException: No
t authorized by proxy.
BUILD FAILED
/dkb3/sw-projekte/asf/maven/maven-1/trunks/core/build-bootstrap.xml:180:
Failed to download dependency
Total time: 11 seconds
IA64>
IA64>ty sys$login:build.properties
# ----- Proxy setup -----
user.home=/dkb3/stadelma
#
# ----- Default Base Path for Dependent Packages -----
# Replace this path with the directory path where
# dependencies binaries should be downloaded.
#base.path=C:\\Users\\C770817\\.maven\\base.path
base.path=/dkb3/stadelma/.maven/base.path
#
#--- maven specific
#
maven.proxy.host=bcproxyserver.ch.winterthur.com
maven.proxy.port=8080
maven.proxy.username=C770817
maven.proxy.password=Sep10orbx
maven.proxy.ntlm.host=C007368
maven.proxy.ntlm.domain=CH.WINTERTHUR.COM
maven.proxy.use=on
maven.repo.local=${user.home}/.maven/repository
maven.home=/dkb3/apache-maven-1.1
env.MAVEN_HOME=${maven.home}
IA64>
Note: our proxy server as identified accepts both NTLM and then BASIC
authentication
I have successfully pass this infomation and checked using some logging
via the build.properties file as shown.
The thing is that all items are accepted except
maven.proxy.ntlm.domain=CH.WINTERTHUR.COM
When I look at Ethereal, a network protocol analyzer I observer the
following:
ON VISTA
The build-bootstrap uses NTLM authentication because NTLM is presented
first by the proxy-server.
It does not use basic authntication for downloading artefacts as shown.
ON INTEG1 (OVMS)
The build-bootstrap uses NTLM authentication because NTLM is presented
first by the proxy-server.
It does not use basic authntication for downloading artefacts as shown.
**** HOW CAN I FORCE THAT BASIC ATHENTICATION IS USED but NEVER NTLM
**** This would solve my problem
OR
**** WHAT CAN I DO THAT MY ntlm.domain=CH.WINTERTHUR.COM is returned in
Ethereal but not the dummy value "domain"
Involved in the game is
org.apache.maven.HttpUtils.java
called by
org.apache.maven.ArtifactDownloader.java
How can I add the NTLM required credentials used by NTLM to the default
Authenticator created at
Package org.apache.maven.HttpUtils
public static void useProxyUser( final String proxyHost, final
String proxyPort, final String proxyUserName,
final String proxyPassword )
{
if ( ( proxyHost != null ) && ( proxyPort != null ) )
{
System.getProperties().put( "proxySet", "true" );
System.getProperties().put( "proxyHost", proxyHost );
System.getProperties().put( "proxyPort", proxyPort );
if ( proxyUserName != null )
{
Authenticator.setDefault( new Authenticator()
{
protected PasswordAuthentication
getPasswordAuthentication()
{
return new PasswordAuthentication(
proxyUserName, proxyPassword == null ? new char[0]
: proxyPassword
.toCharArray() );
}
} );
}
}
}
Josef.Stadelmann
@axa-winterthur.ch