Apache Maven是一个构建自动化和项目管理工具,主要用于Java项目。此标记用于与特定Maven版本无关的问题。使用gradle标签代替与Gradle相关的问题。
Xldeploy vestion和Java版本MISSMATCH
I已将XLDEPLOY MANVE插件6.0.0添加到Maven POM文件中,以创建DAR文件。 2.4.3 dar格式 http://www.
MojofailureException:未执行测试!在VSCODE/INTELLIJ中运行时通过,在Maven中失败,其他测试通过Maven
当我从vscode或Intellij运行此测试时,它可以正常工作。 当我使用下面的命令从maven运行它时,它会失败。 获取此错误: org.apache.maven.plugin.mojofailureexception:没有测试
i我正在更新旧代码,我需要使用版本标签在pom.xml中设置版本,然后从那里设置不同版本的文件: 构建罐子时清单文件 我需要
mvn build-helper:parse-version versions:set \ -DnewVersion=\${parsedVersion.majorVersion}.\${parsedVersion.nextMinorVersion}.\${parsedVersion.incrementalVersion}\${parsedVersion.qualifier?}
Maven:我可以在Annotation Processorpath中使用依赖项管理的版本吗? 我在我的依赖性管理中导入共享的“材料清单”(BOM),这样:
com. 我在我的依赖性管理中导入共享的“材料清单”(bom),这样: <dependencyManagement> <dependencies> <dependency> <groupId>com.mycompany</groupId> <artifactId>common-bom</artifactId> <version>1.2.3</version> <scope>import</scope> <type>pom</type> </dependency> </dependencies> </dependencyManagement>
如何将Maven Home Path捆绑Maven设置为默认[Intellij]
在“设置”中,Maven Home Path始终是“使用Maven Wapper”,即使我在上一个项目中设置了“捆绑”(Maven 3)。 如何将Maven Home Path捆绑Maven设置为Intellij中的默认值?
我有一个由Maven集成在Eclipse中创建的项目。所有工作都很好,但是在所有JSP文件中的工作空间中都有以下操作:
默认情况下,Maven如何跳过我的所有测试?我的POM.xml很少,我无法通过它们进行测试。我的个人资料看起来像 Maven默认情况下会跳过我的所有测试?我的个人资料之一看起来像 pom.xml 如果我运行<profile> <id>jsf-test</id> <dependencies> <dependency> <groupId>org.jboss.as</groupId> <artifactId>jboss-as-arquillian-container-remote</artifactId> <version>${jboss.version}</version> <scope>test</scope> </dependency> <dependency> <groupId>com.jsf.tests</groupId> <artifactId>jsf-app</artifactId> <version>${jsf-app.version}</version> <type>war</type> </dependency> </dependencies> <build> <plugins> <plugin> <artifactId>maven-dependency-plugin</artifactId> <version>2.6</version> <executions> <execution> <id>copy-jsf-app</id> <phase>validate</phase> <goals> <goal>copy</goal> </goals> <configuration> <artifactItems> <artifactItem> <groupId>com.jsf.tests</groupId> <artifactId>jsf-app</artifactId> <version>${jsf-app.version}</version> <type>war</type> <destFileName>jsfapp.war</destFileName> <outputDirectory>target</outputDirectory> </artifactItem> </artifactItems> </configuration> </execution> </executions> </plugin> <plugin> <artifactId>maven-surefire-plugin</artifactId> <version>${maven-surefire.version}</version> <configuration> <skipTests>false</skipTests> <!-- desperate trial --> <properties> <property> <name>listener</name> <value>${testng.listeners}</value> </property> </properties> </configuration> </plugin> </plugins> </build> </profile> 然后编译了项目,则正确复制了trifact,并跳过了测试。 mvn verify -Pjsf-test具有相同的结果。我正在使用jsf-app和mvn verify -Dtest=TestCalculator执行实际测试,但我不确定这对这个问题是否重要。 eDit 在调试中进行的互动将提供(相关部分) Arquillian 我最简单的测试看起来像 TestNG 调试输出显示以下内容: [DEBUG] (s) reportFormat = brief [DEBUG] (s) reportsDirectory = /home/pmensik/Work/workspace/epp-test/cdi-arquillian- test/target/surefire-reports [DEBUG] (f) reuseForks = true [DEBUG] (s) runOrder = filesystem [DEBUG] (s) skip = true [DEBUG] (s) skipTests = false [DEBUG] (s) systemPropertyVariables = {jsfPortlet=true} [DEBUG] (s) testClassesDirectory = /home/pmensik/Work/workspace/epp-test/cdi-arquillian-test/target/test-classes [DEBUG] (s) testFailureIgnore = false [DEBUG] (s) testNGArtifactName = org.testng:testng [DEBUG] (s) testSourceDirectory = /home/pmensik/Work/workspace/epp-test /cdi-arquillian-test/src/test/java [DEBUG] (s) trimStackTrace = true [DEBUG] (s) useFile = true [DEBUG] (s) useManifestOnlyJar = true [DEBUG] (s) useSystemClassLoader = true [DEBUG] (s) useUnlimitedThreads = false [DEBUG] (s) workingDirectory = /home/pmensik/Work/workspace/epp-test/cdi-arquillian-test [DEBUG] (s) project = MavenProject: org.jboss.gatein.test:cdi-portlet-test:6.1-ER01 @ /home/pmensik/Work/workspace/epp-test/cdi-arquillian-test/pom.xml [DEBUG] (s) session = org.apache.maven.execution.MavenSession@3c3483ec [DEBUG] -- end configuration -- [INFO] Tests are skipped. 不仅跳过了测试,还会跳过complings。 如果您很好奇,请检查父pom(由Arquillian引入的任何公司POM直接引用,也是Arquillian引入的任何公司POM或Super Poms),以查看设置该标志的位置。 修复是添加 public class Test { @Drone protected WebDriver driver; @Deployment(testable = false) public static WebArchive createTestArchive() { return ShrinkWrap.createFromZipFile(WebArchive.class, new File("target/CDIPortlet.war")); } @Test public void testCase{ //... } } 在此模块中的SureFire插件配置或添加 [DEBUG] (s) skip = true to to your命令行。 Reference 如果您在Intellij中遇到此问题,请尝试从设置中取消选中的“ skiptests” - >构建,执行,部署 - > maven->runner
当我创建一个带有依赖项的可执行罐(使用本指南)时,所有属性文件也都包装到该罐子中。如何阻止它发生?谢谢。 更新:我试图将他们排除在我们...
I有一个基于某些Postman测试集的我的SRC/ Test/结构的特定子文件夹中重新评估的JUNIT测试。 我已经写了一项测试来参加所有 *.postman_coll ...
*.postman_collection.json
我已经看到很多帮助指示人们在操作搜索中搜索“添加框架支持”,但是一旦知道问题是它禁用了它,您将如何启用它?
tong目标是添加Maven作为框架支持。这是因为我如何设置Intelij而被禁用?我可以修复它还是现在需要解决它?