...
Ok, but as we've seen, we added a new dependency to our project: the Log class from the Apache commons logging JAR.
What will happen if we try to build our project from the command line using Maven? It will fail of course, since the pom.xml file of our project doesn't mention any dependency to the Apache commons logging JAR. You can open the pom.xml file (located in the project root) and see with your eyes: there is no reference to the Apache logging artifact. So, before being able to build our project from the command line using Maven, we need to update the pom.xml file.
HopefullyThankfully, Nuxeo IDE provides you with a tool for doing to do this:
| Wiki Markup |
|---|
{multi-excerpt:name=POM-synchronization}
# Right-click on the {{pom.xml}} file file then click on *Nuxeo* > *Synchronize POM*
# You will be prompted to select the artifacts you want to add to the {{pom.xml}} file.
The missing artifacts are discovered by the Nuxeo IDE by scanning the sources of your project, and finding any class that you reference and that is not yet in the POM.
!NxIDE_pom_dependencies.png|border=1,width=350!
# Click *Finish*. Then look again at the {{pom.xml}} file. Now you have your dependency there.{multi-excerpt} |
...