Maven integration-test doesn't find my class in same package structure
<p>Here are my files:</p>

<hr>

<p>Pom parent:</p>

<pre><code>&lt;project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"&gt;
    &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
    &lt;groupId&gt;my.group&lt;/groupId&gt;
    &lt;artifactId&gt;my.artifact.pom&lt;/artifactId&gt;
    &lt;version&gt;1.0-SNAPSHOT&lt;/version&gt;
    &lt;packaging&gt;pom&lt;/packaging&gt;

    &lt;modules&gt;
        &lt;module&gt;my.artifact.ws&lt;/module&gt;
    &lt;/modules&gt;

    &lt;parent&gt;
        &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
        &lt;artifactId&gt;spring-boot-starter-parent&lt;/artifactId&gt;
        &lt;version&gt;1.4.2.RELEASE&lt;/version&gt;
    &lt;/parent&gt;

    &lt;properties&gt;
        &lt;!-- test --&gt;
        &lt;maven.test.failure.ignore&gt;false&lt;/maven.test.failure.ignore&gt;
    &lt;/properties&gt;

    //lot of dependencies...

    &lt;!-- PROFILES --&gt;
    &lt;profiles&gt;
        &lt;profile&gt;
            &lt;id&gt;local&lt;/id&gt;
            &lt;activation&gt;
                &lt;activeByDefault&gt;true&lt;/activeByDefault&gt;
            &lt;/activation&gt;
                &lt;unit-tests.skip&gt;false&lt;/unit-tests.skip&gt;
                &lt;integration-tests.skip&gt;true&lt;/integration-tests.skip&gt;
            &lt;/properties&gt;
        &lt;/profile&gt;
        &lt;profile&gt;
            &lt;id&gt;integration&lt;/id&gt;
            &lt;modules&gt;
                &lt;module&gt;my-module-integration-test&lt;/module&gt;
            &lt;/modules&gt;
            &lt;properties&gt;
                &lt;unit-tests.skip&gt;true&lt;/unit-tests.skip&gt;
                &lt;integration-tests.skip&gt;false&lt;/integration-tests.skip&gt;
            &lt;/properties&gt;
        &lt;/profile&gt;
    &lt;/profiles&gt;

    &lt;!-- PLUGIN --&gt;
    &lt;build&gt;
        &lt;plugins&gt;
            &lt;plugin&gt;
                &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
                &lt;configuration&gt;
                    &lt;source&gt;1.8&lt;/source&gt;
                    &lt;target&gt;1.8&lt;/target&gt;
                &lt;/configuration&gt;
            &lt;/plugin&gt;
            &lt;plugin&gt;
                &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                &lt;artifactId&gt;maven-resources-plugin&lt;/artifactId&gt;
                &lt;configuration&gt;
                    &lt;encoding&gt;${encoding}&lt;/encoding&gt;
                &lt;/configuration&gt;
            &lt;/plugin&gt;
        &lt;/plugins&gt;
    &lt;/build&gt;
&lt;/project&gt;
</code></pre>

<hr>

<p>Module-ws pom:</p>

<pre><code>&lt;project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"&gt;
    &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
    &lt;artifactId&gt;my.artifact.ws&lt;/artifactId&gt;
    &lt;packaging&gt;jar&lt;/packaging&gt;
    &lt;parent&gt;
        &lt;groupId&gt;my.group&lt;/groupId&gt;
        &lt;artifactId&gt;my.artifact.pom&lt;/artifactId&gt;
        &lt;version&gt;1.0-SNAPSHOT&lt;/version&gt;
    &lt;/parent&gt;

    //lot of dependencies...

&lt;/project&gt;
</code></pre>

<hr>

<p>Integration-test pom:</p>

<pre><code>&lt;project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"&gt;
    &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
    &lt;artifactId&gt;my.artifact.integration.test&lt;/artifactId&gt;
    &lt;packaging&gt;jar&lt;/packaging&gt;

    &lt;parent&gt;
        &lt;groupId&gt;my.group&lt;/groupId&gt;
        &lt;artifactId&gt;my.artifact.pom&lt;/artifactId&gt;
        &lt;version&gt;1.0-SNAPSHOT&lt;/version&gt;
    &lt;/parent&gt;

    &lt;properties&gt;
        &lt;unit-tests.skip&gt;false&lt;/unit-tests.skip&gt;
        &lt;integration-tests.skip&gt;true&lt;/integration-tests.skip&gt;
    &lt;/properties&gt;

    &lt;dependencies&gt;
        &lt;dependency&gt;
            &lt;groupId&gt;my.group&lt;/groupId&gt;
            &lt;artifactId&gt;my.artifact.ws&lt;/artifactId&gt;
            &lt;version&gt;1.0-SNAPSHOT&lt;/version&gt;
        &lt;/dependency&gt;
    &lt;/dependencies&gt;

    &lt;build&gt;
        &lt;plugins&gt;
            &lt;plugin&gt;
                &lt;artifactId&gt;maven-surefire-plugin&lt;/artifactId&gt;
            &lt;/plugin&gt;
            &lt;plugin&gt;
                &lt;artifactId&gt;maven-failsafe-plugin&lt;/artifactId&gt;
                &lt;executions&gt;
                    &lt;execution&gt;
                        &lt;id&gt;integration-test&lt;/id&gt;
                        &lt;goals&gt;
                            &lt;goal&gt;integration-test&lt;/goal&gt;
                        &lt;/goals&gt;
                    &lt;/execution&gt;
                &lt;/executions&gt;
            &lt;/plugin&gt;
        &lt;/plugins&gt;
    &lt;/build&gt;

&lt;/project&gt;
</code></pre>

<hr>

<p>My folder structure:</p>

<pre><code>my-module
|-- my-module-integration-test
|   `-- src
|       `-- test
|           `-- java
|               `-- my
|                   `-- module
|                       `-- ws
|                           `-- rest
|                               `-- MyTest
`-- my-module-ws
    `-- src
        `-- main
            `-- java
                `-- my
                    `-- module
                        `-- Application
</code></pre>

<hr>

<p>When I run <code>mvn clean install -P integration</code> I receive the message:</p>

<pre><code>[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:testCompile (default-testCompile) on project mp-schedule-integration-test: Compilation failure: Compilation failure:
[ERROR] /Users/me/dev/my-module/my-module-integration-test/src/test/java/my/module/ws/rest/MyTest.java:[3,28] cannot find symbol
[ERROR] symbol:   class Application
[ERROR] location: package my.module
</code></pre>

<p>If I put the Application class inside test structure in <code>my-module-integration-test</code> it works (Go Horse)</p>

<p><strong>Could someone help me?</strong></p>

<p>Ps.: The name os modules and projects could be wrong just for hide the original names. </p>

<p>GitHub: <a href="https://github.com/LucasHCruz/stack40664101" rel="noreferrer">https://github.com/LucasHCruz/stack40664101</a></p>

<p>Travis: <a href="https://travis-ci.org/LucasHCruz/stack40664101" rel="noreferrer">https://travis-ci.org/LucasHCruz/stack40664101</a></p>