Maven Error Building Module

classic Classic list List threaded Threaded
2 messages Options
Apurv Mehra-2 Apurv Mehra-2
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Maven Error Building Module

Hello all,

All module fail to build. I have checked the poms and config.xml but I'm unable to fix the problem.
Goals 'clean install'

Version: Indigo Service Release 2
JDK: 1.7
Subclipse: 1.6.18
m2e - Maven Integration for Eclipse:1.0.200.20111228-1245

"[INFO] 
[INFO] --- maven-jar-plugin:2.3.1:jar (default-jar) @ hospitalcore-api ---
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] Hospital core module .............................. SUCCESS [0.306s]
[INFO] Hospitalcore API .................................. FAILURE [3.442s]
[INFO] Hospital core module OMOD ......................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4.344s
[INFO] Finished at: Wed May 16 20:04:11 IST 2012
[INFO] Final Memory: 15M/45M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-jar-plugin:2.3.1:jar (default-jar) on project hospitalcore-api: Error assembling JAR: For artifact {org.openmrs.module:webservices.rest-omod:null:jar}: The version cannot be empty. -> [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] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :hospitalcore-api"


Thanks and Regards,
Apurv

[hidden email] from OpenMRS Developers' mailing list
Darius Jazayeri-3 Darius Jazayeri-3
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Maven Error Building Module

Hi Apurv,

As I said on IRC:

Look at the error message. It says:
   For artifact {org.openmrs.module:webservices.rest-omod:null:jar}: The version cannot be empty.

...and if you look at webservices.rest-omod in your main pom.xml, it has no version.

You need to give it one. Probably 1.0-SNAPSHOT

Presumably that means you also need to check out the webservices.rest module and mvn install it, so it's in your local maven repo.

-Darius

On Wed, May 16, 2012 at 7:47 AM, Apurv Mehra <[hidden email]> wrote:
Hello all,

All module fail to build. I have checked the poms and config.xml but I'm unable to fix the problem.
Goals 'clean install'

Version: Indigo Service Release 2
JDK: 1.7
Subclipse: 1.6.18
m2e - Maven Integration for Eclipse:1.0.200.20111228-1245

"[INFO] 
[INFO] --- maven-jar-plugin:2.3.1:jar (default-jar) @ hospitalcore-api ---
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] Hospital core module .............................. SUCCESS [0.306s]
[INFO] Hospitalcore API .................................. FAILURE [3.442s]
[INFO] Hospital core module OMOD ......................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4.344s
[INFO] Finished at: Wed May 16 20:04:11 IST 2012
[INFO] Final Memory: 15M/45M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-jar-plugin:2.3.1:jar (default-jar) on project hospitalcore-api: Error assembling JAR: For artifact {org.openmrs.module:webservices.rest-omod:null:jar}: The version cannot be empty. -> [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] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :hospitalcore-api"


Thanks and Regards,
Apurv

[hidden email] from OpenMRS Developers' mailing list


[hidden email] from OpenMRS Developers' mailing list
Loading...