maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Rumpf (JIRA)" <>
Subject [jira] [Commented] (MANTRUN-195) Pass any Maven proxy settings from settings.xml to the AntRun plugin
Date Tue, 01 Sep 2015 09:00:53 GMT


Michael Rumpf commented on MANTRUN-195:

I run the build as described in section "Full Build" on the following Wiki page:

The antunit tests fail in the following build.xml file:
<?xml version="1.0"?>
<project name="spring-boot-antlib-test" default="antunit" xmlns:au="antlib:org.apache.ant.antunit"
xmlns:spring-boot="antlib:org.springframework.boot.ant" xmlns:ivy="antlib:org.apache.ivy.ant">

	<property name="src.dir" location="src/main/java" />
	<property name="resource.dir" location="src/main/resources" />
	<property name="target.dir" location="target" />
	<property name="classes.dir" location="${target.dir}/classes" />

	<target name="setUp">
		<ivy:cachepath inline="true" pathid="compile.classpath" organisation="joda-time" module="joda-time"
type="jar" revision="2.8.1" />

		<mkdir dir="${classes.dir}" />
		<javac srcdir="${src.dir}" destdir="${classes.dir}" classpathref="compile.classpath"

	<target name="tearDown">
		<delete dir="${classes.dir}" />

	<target name="test-findmainclass-set-property" depends="setUp">
		<spring-boot:findmainclass classesroot="${classes.dir}" property="main-class" />
		<au:assertEquals expected="org.test.SampleApplication" actual="${main-class}" />
        <!-- ... -->

The issue comaes from the `<ivy:cachepath>` directive which tries to download joda-time
from a Maven repository.

> Pass any Maven proxy settings from settings.xml to the AntRun plugin
> --------------------------------------------------------------------
>                 Key: MANTRUN-195
>                 URL:
>             Project: Maven Antrun Plugin
>          Issue Type: Improvement
>            Reporter: Michael Rumpf
> When setting a a proxy in my settings.xml file, the proxy configuration is not passed
on to the Antrun plugin. Any Ant scripts, trying to access the outside network do not suceed
because no proxy is used.
> Setting the proxy twice is not an option, as the build file is part of an open-source
project where I cannot enter the proxy of my company's Internet proxy server.

This message was sent by Atlassian JIRA

View raw message