Hello,

m2eclipse seems to ignore environment variables when starting maven.

I defined the following entry in pom.xml:

        <distributionManagement>
                <repository>
                        <id>Uebergabeverzeichnis</id>
                        <name>Uebergabeverzeichnis</name>
                        <url>file://${env.TRANSFER_DIR}/example</url>
                </repository>
        </distributionManagement>

The environment variable TRANSFER_DIR is set to D:\Temp.

Starting from eclipse by m2eclipse (goal deploy):

[DEBUG] Configuring mojo
'org.apache.maven.plugins:maven-deploy-plugin:2.3:deploy' -->
[DEBUG]   (f) artifact = de.awd.example:ExampleProject:war:1.0
[DEBUG]   (f) attachedArtifacts = []
[DEBUG]   (f) deploymentRepository = [Uebergabeverzeichnis] ->
file://${env.TRANSFER_DIR}/example
[DEBUG]   (s) localRepository = [local] -> file://C:\Dokumente und
Einstellungen\htruee\.m2\repository
[DEBUG]   (f) packaging = war
[DEBUG]   (f) pomFile = D:\Daten\eclipse\sandboxes\example\pom.xml
[DEBUG]   (f) updateReleaseInfo = false
[DEBUG] -- end configuration --

Starting from command line (mvn deploy):
[DEBUG] Configuring mojo
'org.apache.maven.plugins:maven-deploy-plugin:2.3:deploy' -->
[DEBUG]   (f) artifact = de.awd.example:ExampleProject:war:1.0
[DEBUG]   (f) attachedArtifacts = []
[DEBUG]   (f) deploymentRepository = [Uebergabeverzeichnis] ->
file://D:\Temp/example
[DEBUG]   (s) localRepository = [local] -> file://C:\Dokumente und
Einstellungen\htruee\.m2\repository
[DEBUG]   (f) packaging = war
[DEBUG]   (f) pomFile = D:\Daten\eclipse\sandboxes\example\pom.xml
[DEBUG]   (f) updateReleaseInfo = false
[DEBUG] -- end configuration --

I think it would be great if it's working from eclipse, too. This feature is
available in Maven since 2.0.1.

Any Ideas?

Hartmut
-- 
View this message in context: 
http://www.nabble.com/Environment-variables-tf3658148.html#a10220748
Sent from the Maven Eclipse - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply via email to