maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Rumpf (JIRA)" <j...@apache.org>
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

    [ https://issues.apache.org/jira/browse/MANTRUN-195?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14725012#comment-14725012
] 

Michael Rumpf commented on MANTRUN-195:
---------------------------------------

I run the build as described in section "Full Build" on the following Wiki page:
https://github.com/spring-projects/spring-boot/blob/master/CONTRIBUTING.adoc

The antunit tests fail in the following build.xml file:
{code}
<?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>

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

	<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}" />
	</target>
        <!-- ... -->
</project>

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: https://issues.apache.org/jira/browse/MANTRUN-195
>             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
(v6.3.4#6332)

Mime
View raw message