I am trying to create an Maven Endpoint project and while creating i am getting the following statement in windows command prompt:
Define value for property 'gcloud-version': ${gcloud.plugin.version}: :
Is there a specific version which i am supposed to enter?
When I tried giving default value, the project was created but later on when I tried compiling it, i got the following error in command prompt:
C:\projects\syncDb>mvn clean install
[INFO] Scanning for projects...
[ERROR]
[ERROR] Some problems were encountered while processing the POMs:
[ERROR] Resolving expression: '${gcloud.plugin.version}':
Detected the following recursive expression cycle in 'gcloud.plugin.version': [gcloud.plugin.version]
#[ERROR] Resolving expression: '${gcloud.plugin.version}':
Detected the followingrecursive expression cycle in 'gcloud.plugin.version': [gcloud.plugin.version]
#[ERROR] 'build.plugins.plugin.version' for com.google.appengine:gcloud-maven-plugin must be a valid version but is '${gcloud.plugin.version}'. # line 150, column 24
#[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR] The project com.focusanything.syncDb:synchDb:1.0-SNAPSHOT(C:\projects\syncDb\pom.xml) has 3 errors
[ERROR] Resolving expression: '${gcloud.plugin.version}': Detected the following recursive expression cycle in 'gcloud.plugin.version': [gcloud.plugin.version] -> [Help 2]
[ERROR] Resolving expression: '${gcloud.plugin.version}': Detected the following recursive expression cycle in 'gcloud.plugin.version': [gcloud.plugin.version] -> [Help 2]
[ERROR] 'build.plugins.plugin.version' for com.google.appengine:gcloud-maven-plugin must be a valid version but is '${gcloud.plugin.version}'. # line 150, column 24
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the-eswitch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
:
Thank you in Advance
The gcloud.plugin.version represents the version of the gcloud-maven-plugin you want to use. The list of versions can be found at https://mvnrepository.com/artifact/com.google.appengine/gcloud-maven-plugin
The present version is 2.0.9.133.v201611104 so the correct xml element to use in pom.xml is
<gcloud.plugin.version>2.0.9.133.v201611104</gcloud.plugin.version>
I had the same error.
I took version from here https://cloud.google.com/sdk/downloads
and put it into pom.xml
<gcloud.plugin.version>117</gcloud.plugin.version>
Related
I try to make a local Maven build.
% mvn help:effective-settings
[INFO] Scanning for projects...
Downloading: http://example.com/nexus/content/groups/public/org/springframework/boot/spring-boot-starter-parent/2.1.2.RELEASE/spring-boot-starter-parent-2.1.2.RELEASE.pom
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[FATAL] Non-resolvable parent POM for example.components.discovery:example-app:01-SNAPSHOT: Could not transfer artifact org.springframework.boot:spring-boot-starter-parent:pom:2.1.2.RELEASE from/to nexus (http://example.com/nexus/content/groups/public): Access denied to: http://example.com/nexus/content/groups/public/org/springframework/boot/spring-boot-starter-parent/2.1.2.RELEASE/spring-boot-starter-parent-2.1.2.RELEASE.pom , ReasonPhrase:Forbidden. and 'parent.relativePath' points at no local POM # line 12, column 10
#
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR] The project example.components.discovery:example-app:01-SNAPSHOT (/Users/me/workspace/example-app/pom.xml) has 1 error
[ERROR] Non-resolvable parent POM for example.components.discovery:example-app:99.99.99-SNAPSHOT: Could not transfer artifact org.springframework.boot:spring-boot-starter-parent:pom:2.1.2.RELEASE from/to nexus (http://example.com/nexus/content/groups/public): Access denied to: http://example.com/nexus/content/groups/public/org/springframework/boot/spring-boot-starter-parent/2.1.2.RELEASE/spring-boot-starter-parent-2.1.2.RELEASE.pom , ReasonPhrase:Forbidden. and 'parent.relativePath' points at no local POM # line 12, column 10 -> [Help 2]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException
Some noticeable facts:
I get the same error on other projects with the same Spring dependency.
Co-workers don’t have this problem when they run a Maven build of the project.
Before introducing Nexus, the Maven build was run successfully, and so did for other Spring projects.
If there were some syntax errors in the settings.xml, the above error would show first and follow by complaints of syntax errors in the settings.xml.
My settings.xml seems to have the same structure as my co-worker’s who can run the Maven build successfully, the user credentials are different, of course.
The above facts eliminate all possible causes stated in the help 1 document. Among 6 possible causes stated in the help 2 document, the only possible cause is #4 given the above facts. We have a tool to generate the settins.xml file and use Maven encryption to encrypt the password for the file. I don't know how to verify whether the encrypted password is correct or not. Any other possible causes?
Jenkins throws the following error:
[WARNING] The requested profile "singleflow" could not be activated because it does not exist.
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project factor-esb-autotest: Fatal error compiling: invalid target release: 10 -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
build step 'invoke top-level maven targets' marked build as failure
My POM https://pastebin.com/xeb5Mpcb
At first I thought that the error was due to the fact that in the jenkins global settings the version does not match the plugin (3.8.1), I set it to "Install from Apach" 3.8.1 but it still does not work. What could be the reason ?
Maven in global setting
There must be a configuration for maven-compiler-plugin (<release>10</release>) or a property like <maven.compiler.release>10</maven.compiler.release>
The commented upgrade of JUnit is unrelated to the problem.
Apart from that such information that you have update pom should be part of the question up-front
the full error :
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 25.959 s
[INFO] Finished at: 2022-07-18T10:49:26+01:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.8.2:deploy-file (default-cli) on project projectt: The parameters 'file' for goal org.apache.maven.plugins:maven-deploy-plugin:2.8.2:deploy-file are missing or invalid -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginParameterException
and this is my commande :
mvn clean package -Dmaven.test.failure.ignore=true deploy:deploy-file -Durl=file://C:\Users\username\.m2\repository -DgroupId=com.projectt.api -DartifactId=projectt -Dversion=1.1 -DgeneratePom=true
-Dpackaging=jar -DrepositoryId=deploymentRepo -Durl=http://localhost:8081/repository/maven-releases/ -Dfile=target/projectt-1.1.jar
*im deploying locally
You're either referring to a missing file target/projectt-1.1.jar or you're missing a backslash at end of the first line.
Tip: you shouldn't need to specify groupId/artifactId/version if the jar file is built with maven (i.e. contains a pom.xml file) and you're not overriding the values in the pom.xml file. Haven't tested this, I'm merely assuming on the working of the maven-install-plugin:install-file task. Give it a try and let me know.
After downloading a pom from a project (which I know builds fine on the remote build tools), I get this error when trying to test it locally:
$ mvn clean install -DskipTests
[INFO] Scanning for projects...
Downloading from central: https://repo.maven.apache.org/maven2/com/x/nms/integration/15.2.0.19/integration-15.2.0.19.pom
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[FATAL] Non-resolvable parent POM for com.x.oss.itpf.diagmon.taf:your-testware:2.20.7-SNAPSHOT: Could not find artifact com.x.nms:integration:pom:15.2.0.19 in central (httpepo.maven.apache.org/maven2) and 'parent.relativePath' points at wrong local POM # line 5, column 13
#
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR] The project com.x.oss.itpf.diagmon.taf:ddc-testware:2.20.7-SNAPSHOT (C:\Users\erayfra\Workspace\ddc-testware\pom.xml) has 1 error
[ERROR] Non-resolvable parent POM for com.x.oss.itpf.diagmon.taf:your-testware:2.20.7-SNAPSHOT: Could not find artifact com.x.nms:integration:pom:15.2.0.19 in central (://repo.maven.apache.org/maven2) and 'parent.relativePath' points at wrong local POM # line 5, column 13 -> [Help 2]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException
Looks like, the problem is -
Could not find artifact com.x.nms:integration:pom:15.2.0.19
in central (://repo.maven.apache.org/maven2)
So, there are 2 things -
The artifact you are trying to include in your project is not available at the path of repository you specified.(Its the same what error message is saying)
You can change the repository path where maven is trying to find for this artifact : from repo.maven..., to the correct one. You could do this by
modifying the path either in your local pom,
or by changing it globally by editing the settings.xml file localed at .m2/settings.xml. .m2 is a hidden folder under /Users/{yourName}
( same location for both windows and mac)
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-javadoc-plugin:2.8
.1:jar (module-javadocs) on project hadoop-maven-plugins: MavenReportException:
Error while creating archive:
[ERROR] Exit code: 1 - C:\hsc\hadoop-maven-plugins\src\main\java\org\apache\hado
op\maven\plugin\util\Exec.java:45: error: unknown tag: String
[ERROR] * #param command List<String> containing command and all arguments
[ERROR] ^
[ERROR] C:\hsc\hadoop-maven-plugins\src\main\java\org\apache\hadoop\maven\plugin
\util\Exec.java:46: error: unknown tag: String
[ERROR] * #param output List<String> in/out parameter to receive command output
[ERROR] ^
[ERROR] C:\hsc\hadoop-maven-plugins\src\main\java\org\apache\hadoop\maven\plugin
\util\FileSetUtils.java:50: error: unknown tag: File
[ERROR] * #return List<File> containing every element of the FileSet as a File
[ERROR] ^
[ERROR]
[ERROR] Command line was: C:\Progra~1\Java\jdk1.8.0_20\jre\..\bin\javadoc.exe #o
ptions #packages
[ERROR]
[ERROR] Refer to the generated Javadoc files in 'C:\hsc\hadoop-maven-plugins\tar
get' dir.
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
ch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionE
xception
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <goals> -rf :hadoop-maven-plugins
Prior to this, I've run into the usual error where it asks for file read/write access. I've given it all the permissions through chmod as well as manually changing the permission settings in the file properties on windows.
The wiki link sends me to a page that basically says its a problem with the plugin. Unfortunately, there isn't anything there that would indicate how to fix the problem.
I'm on Windows 7x64, trying to build hadoop 2.5.0 using src and using latest version of maven 3.2.3 and jdk 1.8.0_20
I had a similar issue while building the source. Instead of using the following command for compiling:
mvn package -Pdist,native -DskipTests=true -Dtar
I used:
mvn package -Pdist,native -Dmaven.javadoc.skip=true -DskipTests -Dtar
Do try this!
You can also add below property in parent POM to resolve this issue -
<properties>
<additionalparam>-Xdoclint:none</additionalparam>
</properties>