Maven Settings.xml file not found

Asked

Viewed 1,000 times

0

I am following the following article: JBOSS/WILDFLY Maven plugin for deploy LOCALHOST/REMOTE server.

I want to implement this in the project I have here to do continuous integration, testing using Maven, however I can’t find this folder .m2 that this mentioning or the archive settings.xml, I can’t locate them, how can I proceed to implement this?

<?xml version="1.0" encoding="UTF-8"?>
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">

    <profiles>
        <profile>
            <id>wildfly-remote</id>
            <properties>
                <wildfly-hostname>192.168.0.123</wildfly-hostname>
                <wildfly-port>9990</wildfly-port>
                <wildfly-username>remoteuser</wildfly-username>
                <wildfly-password>remotepassword</wildfly-password>
            </properties>
        </profile>

        <profile>
            <id>wildfly-local</id>
            <properties>
                <wildfly-home>${env.WILDFLY_HOME}</wildfly-home>
                <wildfly-hostname>127.0.0.1</wildfly-hostname>
                <wildfly-port>9990</wildfly-port>
                <wildfly-username>clairton</wildfly-username>
                <wildfly-password>localpassword</wildfly-password>
            </properties>
        </profile>

    </profiles>

    <activeProfiles>
        <activeProfile>wildfly-local</activeProfile>
        <activeProfile>wildfly-remote</activeProfile>
    </activeProfiles>

</settings>

1 answer

0

Here is the default directory: Assuming that you use Windows

C:\Documents and Settings\{usuario}\.m2

You can also stay in this folder:

${maven.home}/conf/settings.xml

Browser other questions tagged

You are not signed in. Login or sign up in order to post.