最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

java - Include .env file in maven failsafe plugin - Stack Overflow

programmeradmin0浏览0评论

I have a java project with integration tests that I want to run in the maven verify step, but those tests require an .env file with login credentials to run. I couldn't find anything about how to include the file when the rests are run. Does anyone have a suggestion?

<plugin>
            <groupId>.apache.maven.plugins</groupId>
            <artifactId>maven-failsafe-plugin</artifactId>
            <version>${maven-failsafe-plugin.version}</version>
            <executions>
                <execution>
                    <goals>
                        <goal>integration-test</goal>
                        <goal>verify</goal>
                    </goals>
                </execution>
            </executions>
        </plugin>
发布评论

评论列表(0)

  1. 暂无评论