guymahieu / ivyidea

Resolve dependencies for your Intellij projects using Ivy
Apache License 2.0
13 stars 18 forks source link

Does not resolve environment variables #59

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Plugin version:0.8
OS: windows XP
IDEA: 8.1.3

We use filesystem resolver that takes WL (weblogic) artifact(s) required to
build our application. WL_HOME is environment variable.
WL_HOME has different value on developer workstations and continuous
integration environment.

weblogic.jar is about 50M size and we don't want to copy it over network.

    <resolvers>
        <filesystem name="env">
            <artifact pattern="${env.WL_HOME}/server/lib/[artifact].[ext]"/>
  ......

plugin output:
An error occured while reading the ivy settings for module core-ede-eis
from D:\***\***\***\core\ivysettings.xml

Caused by: failed to load settings from
file:/D:/***/***/***/***/ivysettings.xml: problem in config file: failed to
load settings from file:/D:/***/***/***/core/ivysettings-env.xml:
impossible to add configured child for artifact on class
org.apache.ivy.plugins.resolver.FileSystemResolver: artifact pattern must
be absolute: ${env.WL_HOME}/server/lib/[artifact].[ext]
Caused by: problem in config file: failed to load settings from
file:/D:/***/***/***/core/ivysettings-env.xml: impossible to add configured
child for artifact on class
org.apache.ivy.plugins.resolver.FileSystemResolver: artifact pattern must
be absolute: ${env.WL_HOME}/server/lib/[artifact].[ext]
Caused by: failed to load settings from
file:/D:/***/***/***/core/ivysettings-env.xml: impossible to add configured
child for artifact on class
org.apache.ivy.plugins.resolver.FileSystemResolver: artifact pattern must
be absolute: ${env.WL_HOME}/server/lib/[artifact].[ext]
Caused by: impossible to add configured child for artifact on class
org.apache.ivy.plugins.resolver.FileSystemResolver: artifact pattern must
be absolute: ${env.WL_HOME}/server/lib/[artifact].[ext]
Caused by: null
Caused by: artifact pattern must be absolute:
${env.WL_HOME}/server/lib/[artifact].[ext]

Original issue reported on code.google.com by Alexey.b...@gmail.com on 28 Sep 2009 at 11:30

GoogleCodeExporter commented 8 years ago
Could you try the 0.9-beta2, that should be able to handle this.

Original comment by guy.mah...@gmail.com on 28 Sep 2009 at 11:43

GoogleCodeExporter commented 8 years ago
Plugin version:0.9-beta2:

It is required to create properties file with a set of properties identical to
environment variables.

sample: 
--
env.WL_HOME=C:/bea/weblogic91
--

Works OK now. Tank you for quick response.

Original comment by Alexey.b...@gmail.com on 28 Sep 2009 at 12:47

GoogleCodeExporter commented 8 years ago

Original comment by guy.mah...@gmail.com on 3 Feb 2010 at 5:40

GoogleCodeExporter commented 8 years ago
Hi,

I am having a similar problem with the 1.0.11 version. Following is the error 
message that I am giving. Any help you can provide is much appreciated.

An error occured while reading the ivy settings for module BackEndServices from 
C:\Workspace\LegacyWeblogic\build-config\ivysettings.xml

Caused by: failed to load settings from 
file:/C:/Workspace/LegacyWeblogic/build-config/ivysettings.xml: impossible to 
add configured child for artifact on class 
org.apache.ivy.plugins.resolver.FileSystemResolver: artifact pattern must be 
absolute: ${gwt.install.dir}/[module].[ext]
Caused by: impossible to add configured child for artifact on class 
org.apache.ivy.plugins.resolver.FileSystemResolver: artifact pattern must be 
absolute: ${gwt.install.dir}/[module].[ext]
Caused by: null
Caused by: artifact pattern must be absolute: ${gwt.install.dir}/[module].[ext]

Original comment by thom.bis...@gmail.com on 2 Mar 2015 at 4:59