java - Not able to compile Maven project due to dependencies.dependency.version is missing -


why error when try clean , compile maven project root folder? use top level pom defining dependencies in dependencymanagement element. want use in library projects.

i have following maven project structure:

pom     library1     pom         module1         pom         module2         pom     library2         module1         pom         module2         pom 

from top level pom:

 <dependencymanagement>     <dependencies>         <dependency>             <groupid>org.jboss.spec</groupid>             <artifactid>jboss-javaee-6.0</artifactid>             <version>1.0.0.final</version>             <type>pom</type>             <scope>provided</scope>         </dependency>   </dependencymanagement> 

library pom:

<dependencies>     <dependency>         <groupid>org.jboss.spec</groupid>         <artifactid>jboss-javaee-6.0</artifactid>     </dependency> </dependencies> 

i needed add type element in dependency.

<dependencies>     <dependency>         <groupid>org.jboss.spec</groupid>         <artifactid>jboss-javaee-6.0</artifactid>         <type>pom</type>     </dependency> </dependencies> 

Comments

Popular posts from this blog

Ansible - ERROR! the field 'hosts' is required but was not set -

customize file_field button ruby on rails -

SoapUI on windows 10 - high DPI/4K scaling issue -