Il 07/06/2013 11:05, Nik ha scritto:
Hi IDM'ers,
Back to my original issue.
My goal:
- to create a project that has all my required connectors
under/opt/syncope/bundles/after executing
mvn clean package -Dbundles.directory=/opt/syncope/bundles
-Dlog.directory=/opt/syncope/log
i.ethese jars
org.connid.bundles.csvdir-0.7.jar
org.connid.bundles.ldap-1.3.5.jar
org.connid.bundles.soap-1.2.6.jar
org.connid.bundles.db.table-2.1.5.jar
So I have worked on this ML with Massi in finding out, that without
doing anything I can get by default:
org.connid.bundles.csvdir-0.7.jar
org.connid.bundles.ldap-1.3.5.jar
org.connid.bundles.soap-1.2.6.jar
under /opt/syncope/bundles/
(using gen_pom_ori.xml, core_pom_ori.xml & console_pom_ori.xml
(attached))
VIZ:
[INFO] --- maven-site-plugin:3.2:attach-descriptor (attach-descriptor)
@ console ---
[INFO]
------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Apache Syncope sample project ..................... SUCCESS
[2.106s]
[INFO] Apache Syncope sample project core ................ SUCCESS
[31.816s]
[INFO] Apache Syncope sample project console ............. SUCCESS
[48.148s]
[INFO]
------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 1:22.421s
[INFO] Finished at: Fri Jun 07 10:35:20 CEST 2013
[INFO] Final Memory: 27M/286M
[INFO]
------------------------------------------------------------------------
[nik@anvil syncope-archetype]$ ls -l /opt/syncope/bundles/
total 4924
-rw-rw-r--. 1 nik nik 1515037 Jun 7 10:34
org.connid.bundles.csvdir-0.7.jar
-rw-rw-r--. 1 nik nik 204027 Jun 7 10:34
org.connid.bundles.ldap-1.3.5.jar
-rw-rw-r--. 1 nik nik 3320691 Jun 7 10:34
org.connid.bundles.soap-1.2.6.jar
[nik@anvil syncope-archetype]$
Now, if I follow the instructions in [1] (as best I can)I adjust the
poms to gen_pom_db.xml core_pom_db.xml & console_pom_db.xml (attached)
and I get the following build failure:
VIZ:
nik@anvil syncope-archetype]$ mvn clean package
-Dbundles.directory=/opt/syncope/bundles -Dlog.directory=/opt/syncope/log
/usr/lib/jvm/java
[INFO] Scanning for projects...
[INFO]
------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] Apache Syncope sample project
[INFO] Apache Syncope sample project core
[INFO] Apache Syncope sample project console
[INFO]
[INFO]
------------------------------------------------------------------------
[INFO] Building Apache Syncope sample project 1.1.2-SNAPSHOT
[INFO]
------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @
syncope-archetype ---
[INFO] Deleting
/home/nik/UShareSoft/WKS/syncopeOnGlassfish/syncope-archetype/target
[INFO]
[INFO] --- maven-enforcer-plugin:1.2:enforce (enforce-java) @
syncope-archetype ---
[INFO]
[INFO] --- gmaven-plugin:1.5:execute (default) @ syncope-archetype ---
[INFO]
[INFO] --- maven-resources-plugin:2.6:copy-resources
(copy-javadoc-legal-files) @ syncope-archetype ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 0 resource
[INFO]
[INFO] --- maven-site-plugin:3.2:attach-descriptor (attach-descriptor)
@ syncope-archetype ---
[INFO]
[INFO]
------------------------------------------------------------------------
[INFO] Building Apache Syncope sample project core 1.1.2-SNAPSHOT
[INFO]
------------------------------------------------------------------------
[WARNING] The POM for
org.connid.bundles:org.connid.bundles.db.table:jar:2.1.5 is missing,
no dependency information available
[INFO]
------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Apache Syncope sample project ..................... SUCCESS
[2.052s]
[INFO] Apache Syncope sample project core ................ FAILURE
[0.679s]
[INFO] Apache Syncope sample project console ............. SKIPPED
[INFO]
------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 3.060s
[INFO] Finished at: Fri Jun 07 10:51:55 CEST 2013
[INFO] Final Memory: 20M/216M
[INFO]
------------------------------------------------------------------------
[ERROR] Failed to execute goal on project core: Could not resolve
dependencies for project org.apache.syncope:core:war:1.1.2-SNAPSHOT:
Failure to find
org.connid.bundles:org.connid.bundles.db.table:jar:2.1.5 in
https://repository.apache.org/content/repositories/snapshots/ was
cached in the local repository, resolution will not be reattempted
until the update interval of ASF has elapsed or updates are forced ->
[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 :core
[nik@anvil syncope-archetype]$
My question is, what is missing in my pom definitions or in the doc
[1] to get the org.connid.bundles.db.table-2.1.5.jar
added under /opt/syncope/bundles/?
Regards,
Nik
[1]
https://cwiki.apache.org/confluence/display/SYNCOPE/Install+connector+bundles
Hi Massi,
I understand this stand point.
I have already thought about unravelling the war and re-creating it
with the extra/optional bits - but it
seems against the open source spirit of building apache syncope
projects with maven (from my ignorant/debutant
perspective on the subject).
Anyway, we have other rather "messy" options to package software for
our use, for the moment, things may change in
the long term.
Thanks for the advice in any case.
rgds,
Nik
Sorry Nik,
but this is a tipical architectural question and the right answer
would be possible only if we were directly involved into your project.
A possible solution (I HAVE NOT TESTED IT) is to execute package
phase with "deployment directory" after put jar bundle files in
syncope-core.war.
On 05/06/2013 13:52, Nik wrote:
So here is my real question Massi. This is what I really want.
When I generate syncope-core how can I do it so the deafult
connectors are part of the syncope-core.war? The goal is to
help me do a package install and deploy from less bits.
Nik
Hi Nik,
you have to set db-table dependency in your parent POM as follows:
<dependency>
<groupId>org.connid.bundles.db</groupId>
<artifactId>org.connid.bundles.db.table</artifactId>
<version>${connid.db.table.version}</version>
<scope>test</scope>
</dependency>
Regards,
Andrea
--
Dott. Andrea Patricelli
Tel +393204524292
Trainee @ Tirasa S.r.l.
Viale D'Annunzio 267 - 65127 Pescara
Tel +390859116307 / FAX +39 0859111173
http://www.tirasa.net