Do like this:
1) in your scr/test/resouces place a testConfig.properties:
url = ${url}
2) write the test:
@Test
    public void test() throws Exception{
        String urlParam = null;
        try {
            Properties prop = new Properties();
            InputStream input = null;
            input = getClass().getClassLoader().getResourceAsStream("testConfig.properties");
            prop.load(input);
            urlParam = prop.getProperty("url");
        }catch (Exception e){}
        // use urkParam
    }
3) in your pom.xml add this:
<build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-resources-plugin</artifactId>
                <version>3.0.2</version>
            </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-surefire-plugin</artifactId>
                    <version>2.12.4</version>
                </plugin>
        </plugins>
        <testResources>
            <testResource>
                <directory>src/test/resources</directory>
                <filtering>true</filtering>
            </testResource>
        </testResources>
    </build>
4) run maven as follows:
mvn clean test resources:testResources -Durl=www.google.com
Now you will get parameterized url based on maven param.