Win a copy of OCP Oracle Certified Professional Java SE 11 Programmer I Study Guide: Exam 1Z0-815 this week in the Programmer Certification forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Paweł Baczyński
  • Piet Souris
  • Vijitha Kumara

Build Failure - Maven

 
Ranch Hand
Posts: 455
6
Netbeans IDE Oracle Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When you deploy my project I see:



------------------------------------------------------------------------
BUILD FAILURE
------------------------------------------------------------------------
Total time: 2.652s
Finished at: Fri Jul 28 15:41:18 EEST 2017
Final Memory: 7M/109M
------------------------------------------------------------------------


my pom.xml:




Can someone tell me what is the problem?

Thanks in advance.






 
Java Cowboy
Posts: 16084
88
Android Scala IntelliJ IDE Spring Java
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The mvn deploy command, which uses the Maven Deploy plugin, is for installing the build artifacts (jar file, war file etc. that is being built) to a remote Maven repository.

If you want to do this, then of course you need to tell the plugin where the remote repository is that you want to deploy your build artifacts to. The error message is telling you that you did not specify where the remote repository is:


Deployment failed: repository element was not specified in the POM inside distributionManagement element or in -DaltDeploymentRepository=id::layout::url parameter


So it doesn't know where to upload the build artifacts to.

Was this what you actually intended to do, or did you really want to do something else?

Note: What is meant with "deploying" here is not the same as deploying your application on a Java EE server. Specifically, mvn deploy is not what you need when you want to deploy your application on a Glassfish server.
 
Dana Ucaed
Ranch Hand
Posts: 455
6
Netbeans IDE Oracle Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a REST service and I want to do deploy to GlassFish server.

Thanks Jesper.

 
Dana Ucaed
Ranch Hand
Posts: 455
6
Netbeans IDE Oracle Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Rob for your efforts.
 
Rob Spoor
Sheriff
Posts: 21817
104
Eclipse IDE Spring VI Editor Chrome Java Ubuntu Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You're welcome.
 
What's that smell? I think this tiny ad may have stepped in something.
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!