I would like to automatically switch betwenn online and offline mode
depending on the network interface that i have activated. I've
configured NetworkManager to create a file (/tmp/fast-network-up)
whenever a fast network interface is up, I would like to configure maven
to switch to offline mode when this file is missing.

I've tried using profiles in settings.xml, as in
<profiles>
                <profile>
                        <id>offline</id>
                        <activation>
                                <file>
                                <missing>/tmp/fast-network-upg</missing>
                                </file>
                        </activation>
                        <properties>
                                <offline.value>true</offline.value>
                        </properties>
                </profile>
</profiles>
<offline>${offline.value}</offline>

but had no success. any idea?

Cheers,
reto

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to