Maven integration - how to?

Are multi module Maven projects supposed to work with Selena?

Neither with "create project" nor with "open project" I could get this to work: if I point to the pom.xml containing references to other Maven modules (with their belonging pom.xml), no source paths are added to the IDEA project (7330).

Message was edited by:
Tobias Kurzke

3 comments

This can be found in the log file (be aware of the missing first letter in each log line!):
The pom.xml Selena is complaining about are all exactly there where they are looked for.

2007-10-08 14:14:10,360 INFO - aven.project.MavenProjectModel - Cannot load D:/Projekte/NetworkBroker/Quellen/ImageConverter/pom.xml
2007-10-08 14:14:10,970 INFO - aven.project.MavenProjectModel - Cannot load D:/Projekte/NetworkBroker/Quellen/NetworkBrokerAssembly/pom.xml
2007-10-08 14:14:11,612 INFO - aven.project.MavenProjectModel - Cannot load D:/Projekte/NetworkBroker/Quellen/App-NetworkBroker/pom.xml
2007-10-08 14:14:12,410 INFO - aven.project.MavenProjectModel - Cannot load D:/Projekte/NetworkBroker/Quellen/Tools/pom.xml
2007-10-08 14:14:13,035 INFO - aven.project.MavenProjectModel - Cannot load D:/Projekte/NetworkBroker/Quellen/InstrumentGateway/pom.xml
2007-10-08 14:14:13,817 INFO - aven.project.MavenProjectModel - Cannot load D:/Projekte/NetworkBroker/Quellen/DICOM/pom.xml
2007-10-08 14:14:14,442 INFO - aven.project.MavenProjectModel - Cannot load D:/Projekte/NetworkBroker/Quellen/DICOMGateway/pom.xml
2007-10-08 14:14:15,052 INFO - aven.project.MavenProjectModel - Cannot load D:/Projekte/NetworkBroker/Quellen/App-ConfigurationTool/pom.xml
2007-10-08 14:14:15,677 INFO - aven.project.MavenProjectModel - Cannot load D:/Projekte/NetworkBroker/Quellen/Kernel/pom.xml
2007-10-08 14:14:16,443 INFO - aven.project.MavenProjectModel - Cannot load D:/Projekte/NetworkBroker/Quellen/PropertySupport/pom.xml
2007-10-08 14:14:16,458 INFO - aven.project.MavenProjectModel - Cannot find maven module ..\System
2007-10-08 14:14:16,458 INFO - aven.project.MavenProjectModel - Cannot find maven module ..\DICOM
2007-10-08 14:14:16,458 INFO - aven.project.MavenProjectModel - Cannot find maven module ..\DICOMGateway
2007-10-08 14:14:16,458 INFO - aven.project.MavenProjectModel - Cannot find maven module ..\Kernel
2007-10-08 14:14:16,458 INFO - aven.project.MavenProjectModel - Cannot find maven module ..\PropertySupport
2007-10-08 14:14:16,458 INFO - aven.project.MavenProjectModel - Cannot find maven module ..\ImageConverter
2007-10-08 14:14:16,458 INFO - aven.project.MavenProjectModel - Cannot find maven module ..\App-NetworkBroker
2007-10-08 14:14:16,458 INFO - aven.project.MavenProjectModel - Cannot find maven module ..\App-ConfigurationTool
2007-10-08 14:14:16,458 INFO - aven.project.MavenProjectModel - Cannot find maven module ..\NetworkBrokerParentPOM
2007-10-08 14:14:16,458 INFO - aven.project.MavenProjectModel - Cannot find maven module ..\Tools
2007-10-08 14:14:16,458 INFO - aven.project.MavenProjectModel - Cannot find maven module ..\InstrumentGateway
2007-10-08 14:14:17,209 INFO - aven.project.MavenProjectModel - Cannot load D:/Projekte/NetworkBroker/Quellen/System/pom.xml
2007-10-08 14:14:47,579 INFO - epositoryCache.RepositoryCache - Rebuilding repository repository since version changed. Was:22695. New:23205
2007-10-08 14:14:47,594 INFO - epositoryCache.RepositoryCache - Building new repository at: C:\Documents and Settings\mstku\.IntelliJIdea70\system\caches\rt.jar.39ea8b32_
2007-10-08 14:14:48,235 INFO - epositoryCache.RepositoryCache - Rebuilding repository repository since version changed. Was:22695. New:23205
2007-10-08 14:14:48,251 INFO - epositoryCache.RepositoryCache - Building new repository at: C:\Documents and Settings\mstku\.IntelliJIdea70\system\caches\localedata.jar.7f41eb22_
2007-10-08 14:14:48,407 INFO - epositoryCache.RepositoryCache - Rebuilding repository repository since version changed. Was:22695. New:23205
2007-10-08 14:14:48,423 INFO - epositoryCache.RepositoryCache - Building new repository at: C:\Documents and Settings\mstku\.IntelliJIdea70\system\caches\junit-4.3.1.jar.afac48f3_
2007-10-08 14:14:48,688 INFO - epositoryCache.RepositoryCache - Rebuilding repository repository since version changed. Was:22695. New:23205
2007-10-08 14:14:48,704 INFO - epositoryCache.RepositoryCache - Building new repository at: C:\Documents and Settings\mstku\.IntelliJIdea70\system\caches\jsse.jar.d2bcb24b_
2007-10-08 14:14:48,876 INFO - epositoryCache.RepositoryCache - Rebuilding repository repository since version changed. Was:22695. New:23205
2007-10-08 14:14:48,892 INFO - epositoryCache.RepositoryCache - Building new repository at: C:\Documents and Settings\mstku\.IntelliJIdea70\system\caches\sunpkcs11.jar.45bb7dcf_
2007-10-08 14:14:49,001 INFO - epositoryCache.RepositoryCache - Rebuilding repository repository since version changed. Was:22695. New:23205
2007-10-08 14:14:49,017 INFO - epositoryCache.RepositoryCache - Building new repository at: C:\Documents and Settings\mstku\.IntelliJIdea70\system\caches\jce.jar.72dba5b2_
2007-10-08 14:14:49,064 INFO - epositoryCache.RepositoryCache - Rebuilding repository repository since version changed. Was:22695. New:23205
2007-10-08 14:14:49,079 INFO - epositoryCache.RepositoryCache - Building new repository at: C:\Documents and Settings\mstku\.IntelliJIdea70\system\caches\dnsns.jar.b5303f66_
2007-10-08 14:14:49,220 INFO - epositoryCache.RepositoryCache - Rebuilding repository repository since version changed. Was:22695. New:23205
2007-10-08 14:14:49,235 INFO - epositoryCache.RepositoryCache - Building new repository at: C:\Documents and Settings\mstku\.IntelliJIdea70\system\caches\sunjce_provider.jar.faa6cfc8_
2007-10-08 14:14:49,736 INFO - epositoryCache.RepositoryCache - Rebuilding repository repository since version changed. Was:22695. New:23205
2007-10-08 14:14:49,751 INFO - epositoryCache.RepositoryCache - Building new repository at: C:\Documents and Settings\mstku\.IntelliJIdea70\system\caches\javaws.jar.4e0365ee_
2007-10-08 14:14:49,798 INFO - epositoryCache.RepositoryCache - Rebuilding repository repository since version changed. Was:22695. New:23205
2007-10-08 14:14:49,814 INFO - epositoryCache.RepositoryCache - Building new repository at: C:\Documents and Settings\mstku\.IntelliJIdea70\system\caches\annotations-6.0.5.jar.e3cb9822_
2007-10-08 14:14:49,892 INFO - epositoryCache.RepositoryCache - Rebuilding repository repository since version changed. Was:22695. New:23205
2007-10-08 14:14:49,908 INFO - epositoryCache.RepositoryCache - Building new repository at: C:\Documents and Settings\mstku\.IntelliJIdea70\system\caches\sunmscapi.jar.8bc356c1_
2007-10-08 14:14:49,954 INFO - epositoryCache.RepositoryCache - Rebuilding repository repository since version changed. Was:22695. New:23205
2007-10-08 14:14:49,970 INFO - epositoryCache.RepositoryCache - Building new repository at: C:\Documents and Settings\mstku\.IntelliJIdea70\system\caches\management-agent.jar.7188e66b_
2007-10-08 14:14:50,486 INFO - epositoryCache.RepositoryCache - Rebuilding repository repository since version changed. Was:22695. New:23205
2007-10-08 14:14:50,517 INFO - epositoryCache.RepositoryCache - Building new repository at: C:\Documents and Settings\mstku\.IntelliJIdea70\system\caches\deploy.jar.17006b97_
2007-10-08 14:14:50,845 INFO - epositoryCache.RepositoryCache - Rebuilding repository repository since version changed. Was:22695. New:23205
2007-10-08 14:14:50,861 INFO - epositoryCache.RepositoryCache - Building new repository at: C:\Documents and Settings\mstku\.IntelliJIdea70\system\caches\plugin.jar.b08280e3_
2007-10-08 14:14:50,955 INFO - epositoryCache.RepositoryCache - Rebuilding repository repository since version changed. Was:22695. New:23205
2007-10-08 14:14:50,970 INFO - epositoryCache.RepositoryCache - Building new repository at: C:\Documents and Settings\mstku\.IntelliJIdea70\system\caches\resources.jar.48e91e8b_
2007-10-08 14:14:51,252 INFO - epositoryCache.RepositoryCache - Rebuilding repository repository since version changed. Was:22695. New:23205
2007-10-08 14:14:51,267 INFO - epositoryCache.RepositoryCache - Building new repository at: C:\Documents and Settings\mstku\.IntelliJIdea70\system\caches\charsets.jar.74505217_
2007-10-08 14:15:14,760 INFO - s.communicator.p2p.NetworkUtil - Call AddOnlineUser.addOnlineUser([192.168.10.1, mstku, 2864, , ]) Server returned HTTP response code: 504 for URL: http://192.168.10.1:2864/
2007-10-08 14:15:14,760 INFO - s.communicator.p2p.NetworkUtil - Call AddOnlineUser.addOnlineUser([192.168.222.1, mstku, 2864, , ]) Server returned HTTP response code: 504 for URL: http://192.168.222.1:2864/
2007-10-08 14:15:35,939 INFO - odetecting.FacetDetectionIndex - Unknown facet types in cache: gnu.trove.THashSet@0
2007-10-08 14:15:38,065 INFO - unicator.p2p.UserMonitorThread - Force finding users
2007-10-08 14:15:38,722 INFO - aven.project.MavenProjectModel - Cannot find maven module ..\System
2007-10-08 14:15:38,722 INFO - aven.project.MavenProjectModel - Cannot find maven module ..\DICOM
2007-10-08 14:15:38,722 INFO - aven.project.MavenProjectModel - Cannot find maven module ..\DICOMGateway
2007-10-08 14:15:38,722 INFO - aven.project.MavenProjectModel - Cannot find maven module ..\Kernel
2007-10-08 14:15:38,722 INFO - aven.project.MavenProjectModel - Cannot find maven module ..\PropertySupport
2007-10-08 14:15:38,722 INFO - aven.project.MavenProjectModel - Cannot find maven module ..\ImageConverter
2007-10-08 14:15:38,722 INFO - aven.project.MavenProjectModel - Cannot find maven module ..\App-NetworkBroker
2007-10-08 14:15:38,722 INFO - aven.project.MavenProjectModel - Cannot find maven module ..\App-ConfigurationTool
2007-10-08 14:15:38,722 INFO - aven.project.MavenProjectModel - Cannot find maven module ..\NetworkBrokerParentPOM
2007-10-08 14:15:38,722 INFO - aven.project.MavenProjectModel - Cannot find maven module ..\Tools
2007-10-08 14:15:38,722 INFO - aven.project.MavenProjectModel - Cannot find maven module ..\InstrumentGateway

0

Ok, rebuiilding the referenced parent POM solved the problem.
That's still somehow strange, because the parent POM was already built and installed in the local maven repository.

0

Yes, IDEA are supposed to work with multi-module maven projects. If it doesn't then it might be die to invalid pom-file (and some bug in maven plugin of course 8). Have you tried to validate you pom with latest maven? If the problem still occurs that would be nice if you provide example pom that leads to this problem.

0

Please sign in to leave a comment.