Maven bulild fails with Plugins project

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Maven bulild fails with Plugins project

jvemugunta
This is the document I am following. Help is appreciated.

https://connectopensource.atlassian.net/wiki/display/CONNECT4/HIEOS+Document+Registry+and+Repository



git clone https://github.com/CONNECT-Solution/Plugins.git




mvn clean install
[INFO] Scanning for projects...
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]  
[ERROR]   The project org.connectopensource:CONNECTUniversalClientGUI:[unknown-version] (/Users/jvemugunta/software/connect/CONNECT-Direct-4.5.0-GF/Plugins/CONNECTUniversalClientGUI/pom.xml) has 1 error
[ERROR]     Non-resolvable parent POM: Could not find artifact org.connectopensource:General:pom:4.5.0-SNAPSHOT and 'parent.relativePath' points at wrong local POM @ line 5, column 13 -> [Help 2]
[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] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException
Reply | Threaded
Open this post in threaded view
|

Re: Maven bulild fails with Plugins project

christophermay07
Hi,

    Since the Plugins repository often contains reference or experimental code, there are times where building from the top level won't work.  Until that's cleaned up, can you change to the "XDSbPlugin" subfolder and try the build again?  Let us know whether or not that produces the two WARs you need.

Regards,

Chris May
CONNECT Product Team
Reply | Threaded
Open this post in threaded view
|

Re: Maven bulild fails with Plugins project

jvemugunta
It fails with the below error

pwd
/Users/jvemugunta/software/connect/CONNECT-Direct-4.5.0-GF/Plugins/XDSbPlugin


C02ML6FMFD57:XDSbPlugin jvemugunta$
C02ML6FMFD57:XDSbPlugin jvemugunta$ mvn clean install
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] XDSbPlugin
[INFO] CONNECT AdapterDocRegistry2Soap12Web
[INFO] CONNECT AdapterDocRepository2Soap12Web
[INFO]                                                                        
[INFO] ------------------------------------------------------------------------
[INFO] Building XDSbPlugin 4.5.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ XDSbPlugin ---
[INFO]
[INFO] --- maven-install-plugin:2.4:install (default-install) @ XDSbPlugin ---
[INFO] Installing /Users/jvemugunta/software/connect/CONNECT-Direct-4.5.0-GF/Plugins/XDSbPlugin/pom.xml to /Users/jvemugunta/.m2/repository/org/connectopensource/XDSbPlugin/4.5.0-SNAPSHOT/XDSbPlugin-4.5.0-SNAPSHOT.pom
[INFO]                                                                        
[INFO] ------------------------------------------------------------------------
[INFO] Building CONNECT AdapterDocRegistry2Soap12Web 4.5.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[WARNING] The POM for org.connectopensource:DocRegistryCore:jar:4.5.0-SNAPSHOT is missing, no dependency information available
[WARNING] The POM for org.connectopensource:CONNECTCoreLib:jar:4.5.0-SNAPSHOT is missing, no dependency information available
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] XDSbPlugin ......................................... SUCCESS [  0.370 s]
[INFO] CONNECT AdapterDocRegistry2Soap12Web ............... FAILURE [  0.268 s]
[INFO] CONNECT AdapterDocRepository2Soap12Web ............. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.812 s
[INFO] Finished at: 2015-08-29T15:26:13-04:00
[INFO] Final Memory: 8M/245M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project AdapterDocRegistry2Soap12Web: Could not resolve dependencies for project org.connectopensource:AdapterDocRegistry2Soap12Web:war:4.5.0-SNAPSHOT: The following artifacts could not be resolved: org.connectopensource:DocRegistryCore:jar:4.5.0-SNAPSHOT, org.connectopensource:CONNECTCoreLib:jar:4.5.0-SNAPSHOT: Could not find artifact org.connectopensource:DocRegistryCore:jar:4.5.0-SNAPSHOT -> [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] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :AdapterDocRegistry2Soap12Web
Reply | Threaded
Open this post in threaded view
|

Re: Maven bulild fails with Plugins project

christophermay07
To build these plugins, it looks like you'll have to build CONNECT first.  Since you're using CONNECT 4.5.0, make sure to check out the equivalent tag in the local git repo (git checkout 4.5.0) before building.

Also, in the AdapterDocRegistry2Soap12Web and AdapterDocRepository2Soap12Web POMs, you'll need to change any "${project.parent.version}" reference to "4.5.0".

Let us know if you run into any other issues with building this plugin, and I'll work on making some updates to both the repository and the written instructions to make this clearer in the future.

Thanks,

Chris May
CONNECT Product Team