maven-plugin

Isn't maven-deploy-plugin aware of the pom in which I declared it as a build plugin? [duplicate]

て烟熏妆下的殇ゞ 提交于 2020-08-05 06:14:10
问题 This question already has answers here : repository element was not specified in the POM inside distributionManagement element or in -DaltDep loymentRepository=id::layout::url parameter (3 answers) Closed 2 years ago . I have a maven project. In the pom I declared the group id, artifact id, version. I declared for maven-deploy-plugin as a build plugin, with goal of deploy:deploy-file. Then I launched maven from eclipse with the same goal, wuth -Durl declared as jvm arg. Maven build fails

Execute a Maven plugin with --enable-preview in POM

廉价感情. 提交于 2020-07-08 10:58:32
问题 I have a custom Maven plugin which makes use of JDK 12 preview features. I compile the plugin setting --enable-preview as compiler arg, i.e. <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <configuration> <compilerArgs> <compilerArg>--enable-preview</compilerArg> </compilerArgs> </configuration> </plugin> When I want to execute the plugin, I add the plugin like this in the POM: <plugin> <groupId>my.group</groupId> <artifactId>my-plugin<

Execute a Maven plugin with --enable-preview in POM

笑着哭i 提交于 2020-07-08 10:57:08
问题 I have a custom Maven plugin which makes use of JDK 12 preview features. I compile the plugin setting --enable-preview as compiler arg, i.e. <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <configuration> <compilerArgs> <compilerArg>--enable-preview</compilerArg> </compilerArgs> </configuration> </plugin> When I want to execute the plugin, I add the plugin like this in the POM: <plugin> <groupId>my.group</groupId> <artifactId>my-plugin<

properties-maven-plugin not working for goal write-project-properties

岁酱吖の 提交于 2020-06-27 16:18:44
问题 I need to export property values from mvn command line to a file which is needed for my java code later. But i always get the error: [ERROR] Failed to execute goal org.codehaus.mojo:properties-maven-plugin:1.0-alpha-2:write-project-properties (default-cli) on project MyApplication: The parameters 'outputFile' for goal org.codehaus.mojo:properties-maven-plugin:1.0-alpha-2:write-project-properties are missing or invalid -> [Help 1] [ERROR] Here is my project structure MyApplication |src/main

ng build with frontend-maven-plugin

吃可爱长大的小学妹 提交于 2020-05-17 06:43:09
问题 I am trying to build an Angular application with Maven/Eclipse and with the frontend-maven-plugin: <plugin> <groupId>com.github.eirslett</groupId> <artifactId>frontend-maven-plugin</artifactId> <version>1.6</version> <configuration> <workingDirectory>src/main/angular5/tourism</workingDirectory> <!-- where to install npm --> <installDirectory>src/main/angular5/tourism</installDirectory> </configuration> <executions> <execution> <id>install node and npm</id> <goals> <goal>install-node-and-npm<

Docker Maven Spotify plugin - Possible to switch to non-secure registry

六月ゝ 毕业季﹏ 提交于 2020-05-13 03:59:30
问题 I'm using the Spotify Maven plugin to automate the building and deploying of docker images when executing certain maven goals. However, I'm running a private unsecured registry that is accessible through the following host: server.mydomain.com:5000. However, I can't seem to stop the plugin from forcing a secure push to the repository? It uses https://server.mydomain.com:5000. Is there any way to force the plugin to not use https? Thanks. Edit: Current plugin POM configuration: <plugin>

Docker Maven Spotify plugin - Possible to switch to non-secure registry

随声附和 提交于 2020-05-13 03:58:45
问题 I'm using the Spotify Maven plugin to automate the building and deploying of docker images when executing certain maven goals. However, I'm running a private unsecured registry that is accessible through the following host: server.mydomain.com:5000. However, I can't seem to stop the plugin from forcing a secure push to the repository? It uses https://server.mydomain.com:5000. Is there any way to force the plugin to not use https? Thanks. Edit: Current plugin POM configuration: <plugin>

Docker Maven Spotify plugin - Possible to switch to non-secure registry

夙愿已清 提交于 2020-05-13 03:58:27
问题 I'm using the Spotify Maven plugin to automate the building and deploying of docker images when executing certain maven goals. However, I'm running a private unsecured registry that is accessible through the following host: server.mydomain.com:5000. However, I can't seem to stop the plugin from forcing a secure push to the repository? It uses https://server.mydomain.com:5000. Is there any way to force the plugin to not use https? Thanks. Edit: Current plugin POM configuration: <plugin>

No plugin found for prefix 'archetype' in the current project and in the plugin groups

喜夏-厌秋 提交于 2020-02-07 06:12:50
问题 I am new to maven and these posts have been of quite a help to me. I am working in a big company where firewall is on and when I check my proxy setting, it shows Direct. Now I am facing this similar issue (of not able to establish) and have tried almost all the baove options mentioned in this post. Could any one help me please in finding the solution What I am doing, After installing and setting up maven, I did mvn -version to get below result Apache Maven 3.2.5

No plugin found for prefix 'archetype' in the current project and in the plugin groups

孤人 提交于 2020-02-07 06:12:06
问题 I am new to maven and these posts have been of quite a help to me. I am working in a big company where firewall is on and when I check my proxy setting, it shows Direct. Now I am facing this similar issue (of not able to establish) and have tried almost all the baove options mentioned in this post. Could any one help me please in finding the solution What I am doing, After installing and setting up maven, I did mvn -version to get below result Apache Maven 3.2.5