maven-plugin 相关问题

不要将此标记用于特定Maven插件的使用。仅用于Maven插件开发相关问题。

多模块 maven java doc 构建

我有这样的多模块maven项目 我的项目 框架1 f1-演示 *.java f1-核心 *.java f1 标签 *.java 框架2 f2-演示 *.java f2-

回答 2 投票 0

如何自动处理多个“目标”?

我使用 package 让 Maven 生成目标 JAR 文件,并使用 dependency:build-classpath 生成列出所有依赖 JAR 的 cp.txt,我不想将其捆绑到目标 JAR 中...

回答 1 投票 0

在插件中检测到插件验证问题

执行 mvn clean 后验证一切都正确编译并成功,但我也得到以下信息: [警告] 在 7 个插件中检测到插件验证问题 [警告] [警告] * 组织。

回答 4 投票 0

jboss-as-maven 插件迁移到 jdk 11

我正在使用一个 Maven 项目,从 Java 8 迁移到 11,我面临以下错误: 11:36:39,016 错误 [org.jboss.msc.service.fail](MSC 服务线程 1-11)MSC000001:无法启动服务 jbo...

回答 1 投票 0

在当前项目和插件组中未找到前缀“C”的插件

目前,我正在使用 Maven 工具创建从 Github 下载的文件夹的 zip 文件 https://github.com/Saulis/teamcity-gerrit-trigger 我使用的命令是 mvn [文件夹名称] 不过,我

回答 3 投票 0

Maven:Maven 属性值概述

我想找出所有 Maven 属性的值,因为它们适用于某些 Maven 项目。 mvn help:system 列出操作系统环境变量和 JVM 系统属性,但没有 Maven 属性。 MVN

回答 7 投票 0

Maven插件确保UTF-8编码?

如果构建器发现文件未使用 UTF-8 编码,是否有一个 Maven 插件可以让我的构建失败?

回答 3 投票 0

在maven项目中如何在编译时执行java main或其他命令?

我有一个spring boot项目,在这个项目中我有一个java主类,它生成一个md文件作为文档。 随后,我必须在终端上运行一个命令,将该文件作为输入和产品...

回答 1 投票 0

在自定义 Maven 插件中找不到目标

我正在尝试开发一个自定义 Maven 插件,我正在按照官方 Maven 文档中的教程进行操作,如下所述: http://maven.apache.org/guides/plugin/guide-java-plugin-developm...

回答 3 投票 0

Maven 配置文件属性中的值未在 .properties 文件中使用

我有下面的pom.xml文件 ${basedir} 我有以下 pom.xml 文件 <resources> <resource> <directory>${basedir}</directory> <includes> <include>*.properties</include> </includes> <filtering>true</filtering> </resource> </resources> <profiles> <profile> <id>android</id> <properties> <automationName>uiautomator2</automationName> <platformName>Android</platformName> <platformVersion>6.0</platformVersion> <deviceName>Android Emulator</deviceName> <app>/Users/name/Documents/serenity-core/serenity-appium/src/test/java/integration/resources/WordPress-debug.apk</app> <appPackage>org.wordpress.android</appPackage> <appActivity>org.wordpress.android.ui.accounts.LoginActivity</appActivity> </properties> </profile> <profile> <id>ios</id> <properties> <automationName>XCUITest</automationName> <platformName>IOS</platformName> <platformVersion>11.4</platformVersion> <deviceName>iPhone SE</deviceName> <app>/Users/name/Documents/serenity-core/serenity-appium/src/test/java/integration/resources/WordPress.app</app> </properties> </profile> </profiles> 我有如下的 serenity.properties 文件 appium.automationName = ${automationName} appium.platformName = ${platformName} appium.platformVersion = ${platformVersion} appium.deviceName = ${deviceName} appium.app = ${app} 当我尝试使用 pom.xml 中的值(如下所示)时,它无法按预期工作。 Serenity.properties 文件没有获取特定配置文件名称下提到的值。 mvn install -Pandroid 您的directory规格是错误的。不要使用 ${basedir} 而使用 ${project.basedir},那么它就会按预期工作: <directory>${project.basedir}</directory> 更好的是坚持标准 Maven 目录布局并将资源放在这里: <directory>src/main/resources</directory> @罗伯托洛贾科 有没有人找到答案,我也面临着同样的问题。

回答 2 投票 0

文件中的 Maven 和环境变量

我切换到maven并有一个问题。我使用带有vars的env文件进行开发,它通过envfile加载到intellij idea中。对于部署,我使用 docker 和另一个 env 文件来进行容器部署...

回答 1 投票 0

maven中的<classifier>中的<configuration>是什么

maven 内部配置标签中的分类器标签有什么用。 例子: org.apache.maven.plugins maven-jar-插件 2.2 ...

回答 2 投票 0

升级到maven-plugin-plugin 3.6.4会导致com.thoughtworks.qdox.parser.ParseException:语法错误

将 maven-plugin-plugin 从 3.6.0 升级到 3.6.4 后,在构建创建 maven-plugin-descriptor 时出现以下异常: 引起的:org.apache.maven.plugin.

回答 1 投票 0

包 javax.xml.bind.annotation 不存在

我尝试使用命令 mvn clean install 通过 commandpromt 构建 springboot 应用程序,但出现以下错误: [错误] 无法执行目标 org.apache.maven.plugins:maven-compiler-

回答 3 投票 0

来自 kafka 的 Spark 流

我正在尝试使用Spark从Kafka流式传输数据,我的代码如下: 从 pyspark 导入 SparkConf、SparkContext 从 pyspark.sql 导入 SparkSession 从 pyspark.sql.functions 导入 * 夫...

回答 1 投票 0

Jersey Jax-RS com.github.kongchen:swagger-maven-plugin 的 OpenAPI 等效项?

在 Swagger 中,您可以使用 swagger-maven-plugin 在编译时构建合约 .json。 com.github.kongchen 昂首阔步...

回答 1 投票 0

命令[[错误失败,状态为1 org.apache.maven.plugin.MojoExecutionException

我连接到另一个主题 为什么在 pom-xml 标记上编译我的项目时会出现此错误 这里我只附上错误代码和详细信息,你能帮我理解是什么原因吗...

回答 0 投票 0

如何在.exe文件中为javafx本机包图标设置自定义图标(我会回答所有问题)

我要哭了,我不知道该怎么做,我生命中的最后8个小时都在做这个,我没有能力独自做这个。 我将代码逐个部分地编写 这是我的 pom: 我要哭了,我不知道该怎么做,我生命中的最后 8 个小时都在做这个,我没有能力独自做这个。 我将代码逐个部分地编写 这是我的 pom: <?xml version="1.0" encoding="UTF-8"?> <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/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>com.br.eletra</groupId> <artifactId>Integration_Project</artifactId> <version>1.0-SNAPSHOT</version> <build> <plugins> <plugin> <groupId>com.zenjava</groupId> <artifactId>javafx-maven-plugin</artifactId> <version>8.6.0</version> <configuration> <mainClass>main.Main</mainClass> <verbose>true</verbose> <vendor>Einstein</vendor> <bundleArguments> <identifier>UPDATE-DETECTION</identifier> <installdirChooser>true</installdirChooser> </bundleArguments> <additionalAppResources>${project.basedir}/src/main/resources</additionalAppResources> </configuration> <executions> <execution> <id>create-jar</id> <phase>package</phase> <goals> <goal>build-jar</goal> </goals> </execution> <execution> <id>create-native</id> <phase>package</phase> <goals> <goal>build-native</goal> </goals> </execution> </executions> </plugin> </plugins> </build> <dependencies> <dependency> <groupId>com.br.eletra</groupId> <artifactId>Integration_Project_Backend</artifactId> <version>1.0-SNAPSHOT</version> <scope>compile</scope> </dependency> <dependency> <groupId>org.json</groupId> <artifactId>json</artifactId> <version>20230227</version> </dependency> <dependency> <groupId>org.junit.jupiter</groupId> <artifactId>junit-jupiter-engine</artifactId> <version>5.9.0</version> </dependency> </dependencies> <properties> <maven.compiler.source>1.8</maven.compiler.source> <maven.compiler.target>1.8</maven.compiler.target> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> </properties> </project> 我无法解决这个问题,为什么这不起作用?我不知道请有人帮助我 这是我的 .iss 文件: [Setup] AppId={{UPDATE-DETECTION}} AppName=Integration_Project-1.0-SNAPSHOT AppVersion=1.0 AppVerName=IntegrationProject-1.0-SNAPSHOT 1.0 AppPublisher=Einstein AppComments=IntegrationProject-1.0 AppCopyright=Copyright (C) 2023 ;AppPublisherURL=http://java.com/ ;AppSupportURL=http://java.com/ ;AppUpdatesURL=http://java.com/ DefaultDirName={localappdata}\Integration_Project-1.0-SNAPSHOT DisableStartupPrompt=Yes DisableDirPage=Yes DisableProgramGroupPage=Yes DisableReadyPage=Yes DisableFinishedPage=Yes DisableWelcomePage=Yes DefaultGroupName=Einstein ;Optional License LicenseFile= ;WinXP or above MinVersion=6 OutputBaseFilename=IntegrationProject Compression=lzma SolidCompression=yes PrivilegesRequired=lowest SetupIconFile=Integration_Project-1.0-SNAPSHOT\Integration_Project-1.0-SNAPSHOT.ico UninstallDisplayIcon={app}\IntegrationProject-1.0.ico UninstallDisplayName=Integration_Project-1.0-SNAPSHOT WizardImageStretch=No WizardSmallImageFile=Integration_Project-1.0-SNAPSHOT-setup-icon.bmp ArchitecturesInstallIn64BitMode= [Languages] Name: "english"; MessagesFile: "compiler:Default.isl" Name: "brazilianportuguese"; MessagesFile: "compiler:Languages\BrazilianPortuguese.isl" [Files] Source: "Integration_Project-1.0-SNAPSHOT\Integration_Project-1.0-SNAPSHOT.exe"; DestDir: "{app}"; Flags: ignoreversion Source: "Integration_Project-1.0-SNAPSHOT\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs [Icons] Name: "{group}\Integration_Project-1.0-SNAPSHOT";Filename: "{app}\Integration_Project-1.0-SNAPSHOT.exe"; WorkingDir: "{app}"; IconFilename: "Integration_Project-1.0-SNAPSHOT-setup-icon.bmp" Name: "{commondesktop}\Integration_Project-1.0-SNAPSHOT";Filename: "{app}\Integration_Project-1.0-SNAPSHOT.exe"; WorkingDir: "{app}"; IconFilename:"Integration_Project-1.0-SNAPSHOT-setup-icon.bmp" [Run] Filename: "{app}\Integration_Project-1.0-SNAPSHOT.exe"; Description:"{cm:LaunchProgram,Integration_Project-1.0-SNAPSHOT}"; Flags: nowait postinstall skipifsilent; Filename: "{app}\Integration_Project-1.0-SNAPSHOT.exe"; Parameters:"-install -svcName ""Integration_Project-1.0-SNAPSHOT"" -svcDesc ""Integration_Project-1.0-SNAPSHOT"" -mainExe ""Integration_Project-1.0-SNAPSHOT.exe"" "; [UninstallRun] Filename: "{app}\Integration_Project-1.0-SNAPSHOT.exe "; Parameters: "-uninstall -svcName IntegrationProject-1.0 -stopOnUninstall"; 有人可以告诉我为什么我的 .exe 带有随机图标吗? 实现:Windows 找不到 .ico

回答 0 投票 0

如何在.exe文件中为javafx本机包图标设置自定义图标(我会回答所有问题)

我要哭了,我不知道该怎么做,我生命中的最后8个小时都在做这个,我没有能力独自做这个。 我将代码逐个部分地编写 这是我的 pom: 我要哭了,我不知道该怎么做,我生命中的最后 8 个小时都在做这个,我没有能力独自做这个。 我将代码逐个部分地编写 这是我的 pom: <?xml version="1.0" encoding="UTF-8"?> <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/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>com.br.eletra</groupId> <artifactId>Integration_Project</artifactId> <version>1.0-SNAPSHOT</version> <build> <plugins> <plugin> <groupId>com.zenjava</groupId> <artifactId>javafx-maven-plugin</artifactId> <version>8.6.0</version> <configuration> <mainClass>main.Main</mainClass> <verbose>true</verbose> <vendor>Einstein</vendor> <bundleArguments> <identifier>UPDATE-DETECTION</identifier> <installdirChooser>true</installdirChooser> </bundleArguments> <additionalAppResources>${project.basedir}/src/main/resources</additionalAppResources> </configuration> <executions> <execution> <id>create-jar</id> <phase>package</phase> <goals> <goal>build-jar</goal> </goals> </execution> <execution> <id>create-native</id> <phase>package</phase> <goals> <goal>build-native</goal> </goals> </execution> </executions> </plugin> </plugins> </build> <dependencies> <dependency> <groupId>com.br.eletra</groupId> <artifactId>Integration_Project_Backend</artifactId> <version>1.0-SNAPSHOT</version> <scope>compile</scope> </dependency> <dependency> <groupId>org.json</groupId> <artifactId>json</artifactId> <version>20230227</version> </dependency> <dependency> <groupId>org.junit.jupiter</groupId> <artifactId>junit-jupiter-engine</artifactId> <version>5.9.0</version> </dependency> </dependencies> <properties> <maven.compiler.source>1.8</maven.compiler.source> <maven.compiler.target>1.8</maven.compiler.target> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> </properties> </project> 我无法解决这个问题,为什么这不起作用?我不知道请有人帮助我 这是我的 .iss 文件: [Setup] AppId={{UPDATE-DETECTION}} AppName=Integration_Project-1.0-SNAPSHOT AppVersion=1.0 AppVerName=IntegrationProject-1.0-SNAPSHOT 1.0 AppPublisher=Einstein AppComments=IntegrationProject-1.0 AppCopyright=Copyright (C) 2023 ;AppPublisherURL=http://java.com/ ;AppSupportURL=http://java.com/ ;AppUpdatesURL=http://java.com/ DefaultDirName={localappdata}\Integration_Project-1.0-SNAPSHOT DisableStartupPrompt=Yes DisableDirPage=Yes DisableProgramGroupPage=Yes DisableReadyPage=Yes DisableFinishedPage=Yes DisableWelcomePage=Yes DefaultGroupName=Einstein ;Optional License LicenseFile= ;WinXP or above MinVersion=6 OutputBaseFilename=IntegrationProject Compression=lzma SolidCompression=yes PrivilegesRequired=lowest SetupIconFile=Integration_Project-1.0-SNAPSHOT\Integration_Project-1.0-SNAPSHOT.ico UninstallDisplayIcon={app}\IntegrationProject-1.0.ico UninstallDisplayName=Integration_Project-1.0-SNAPSHOT WizardImageStretch=No WizardSmallImageFile=Integration_Project-1.0-SNAPSHOT-setup-icon.bmp ArchitecturesInstallIn64BitMode= [Languages] Name: "english"; MessagesFile: "compiler:Default.isl" Name: "brazilianportuguese"; MessagesFile: "compiler:Languages\BrazilianPortuguese.isl" [Files] Source: "Integration_Project-1.0-SNAPSHOT\Integration_Project-1.0-SNAPSHOT.exe"; DestDir: "{app}"; Flags: ignoreversion Source: "Integration_Project-1.0-SNAPSHOT\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs [Icons] Name: "{group}\Integration_Project-1.0-SNAPSHOT";Filename: "{app}\Integration_Project-1.0-SNAPSHOT.exe"; WorkingDir: "{app}"; IconFilename: "Integration_Project-1.0-SNAPSHOT-setup-icon.bmp" Name: "{commondesktop}\Integration_Project-1.0-SNAPSHOT";Filename: "{app}\Integration_Project-1.0-SNAPSHOT.exe"; WorkingDir: "{app}"; IconFilename:"Integration_Project-1.0-SNAPSHOT-setup-icon.bmp" [Run] Filename: "{app}\Integration_Project-1.0-SNAPSHOT.exe"; Description:"{cm:LaunchProgram,Integration_Project-1.0-SNAPSHOT}"; Flags: nowait postinstall skipifsilent; Filename: "{app}\Integration_Project-1.0-SNAPSHOT.exe"; Parameters:"-install -svcName ""Integration_Project-1.0-SNAPSHOT"" -svcDesc ""Integration_Project-1.0-SNAPSHOT"" -mainExe ""Integration_Project-1.0-SNAPSHOT.exe"" "; [UninstallRun] Filename: "{app}\Integration_Project-1.0-SNAPSHOT.exe "; Parameters: "-uninstall -svcName IntegrationProject-1.0 -stopOnUninstall"; 有人可以告诉我为什么我的 .exe 带有随机图标吗?

回答 0 投票 0

Maven 发布插件问题 - 无法执行目标 org.apache.maven.plugins:maven-release-plugin:2.3.2:prepare

挣扎于maven:发布这个项目。看起来像是版本不兼容的问题,但我不知道如何纠正这个问题。我使用的是 Maven 版本 3.1.1。 这是我的 pom.xml (示例) <...

回答 2 投票 0

© www.soinside.com 2019 - 2024. All rights reserved.