I'm having an "ah-ha" moment Massi :-)
I don't do anything and I get all the default connectors (in red) :-)
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources
(default-testResources) @ core ---
[INFO] Not copying test resources
[INFO]
[INFO] --- maven-dependency-plugin:2.7:copy (set-bundles) @ core ---
[INFO] Configured Artifact:
org.connid.bundles.soap:org.connid.bundles.soap:1.2.6:jar
[INFO] Configured Artifact:
org.connid.bundles:org.connid.bundles.csvdir:0.7:jar
[INFO] Configured Artifact:
org.connid.bundles:org.connid.bundles.ldap:1.3.5:jar
[INFO] Copying org.connid.bundles.soap-1.2.6.jar to
/opt/syncope/bundles/org.connid.bundles.soap-1.2.6.jar
[INFO] Copying org.connid.bundles.csvdir-0.7.jar to
/opt/syncope/bundles/org.connid.bundles.csvdir-0.7.jar
[INFO] Copying org.connid.bundles.ldap-1.3.5.jar to
/opt/syncope/bundles/org.connid.bundles.ldap-1.3.5.jar
[INFO]
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @
core ---
[INFO] Not compiling test sources
[INFO]
[INFO] --- maven-surefire-plugin:2.14:test (default-test) @ core ---
[INFO] Tests are skipped.
[INFO]
[INFO] --- maven-war-plugin:2.1.1:war (default-war) @ core ---
[INFO] Packaging webapp
[INFO] Assembling webapp [core] in
[/home/nik/UShareSoft/WKS/syncopeOnGlassfish/syncope-archetype/core/target/syncope]
[INFO] Processing war project
[INFO] Copying webapp resources
[/home/nik/UShareSoft/WKS/syncopeOnGlassfish/syncope-archetype/core/src/main/webapp]
[INFO] Processing overlay [ id org.apache.syncope:syncope-core]
[INFO] Webapp assembled in [1356 msecs]
[INFO] Building war:
/home/nik/UShareSoft/WKS/syncopeOnGlassfish/syncope-archetype/core/target/syncope.war
[INFO] WEB-INF/web.xml already added, skipping
[INFO]
[INFO] --- maven-site-plugin:3.2:attach-descriptor (attach-descriptor) @
core ---
[INFO]
[INFO]
------------------------------------------------------------------------
[INFO] Building Apache Syncope sample project console 1.1.2-SNAPSHOT
[INFO]
------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ console ---
[INFO] Deleting
/home/nik/UShareSoft/WKS/syncopeOnGlassfish/syncope-archetype/console/target
[INFO]
[INFO] --- maven-enforcer-plugin:1.2:enforce (enforce-java) @ console ---
[INFO]
[INFO] --- gmaven-plugin:1.5:execute (default) @ console ---
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @
console ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 4 resources
[INFO]
[INFO] --- maven-resources-plugin:2.6:copy-resources
(copy-javadoc-legal-files) @ console ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 0 resource
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ console ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources
(default-testResources) @ console ---
[INFO] Not copying test resources
[INFO]
[INFO] --- maven-dependency-plugin:2.7:copy (set-bundles) @ console ---
[INFO] Configured Artifact:
org.connid.bundles.soap:org.connid.bundles.soap:1.2.6:jar
[INFO] Configured Artifact:
org.connid.bundles:org.connid.bundles.csvdir:0.7:jar
[INFO] Configured Artifact:
org.connid.bundles:org.connid.bundles.ldap:1.3.5:jar
[INFO] org.connid.bundles.soap:org.connid.bundles.soap:1.2.6:jar already
exists in /opt/syncope/bundles
[INFO] org.connid.bundles:org.connid.bundles.csvdir:0.7:jar already
exists in /opt/syncope/bundles
[INFO] org.connid.bundles:org.connid.bundles.ldap:1.3.5:jar already
exists in /opt/syncope/bundles
[INFO]
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @
console ---
[INFO] Not compiling test sources
[INFO]
[INFO] --- maven-surefire-plugin:2.14:test (default-test) @ console ---
[INFO] Tests are skipped.
[INFO]
[INFO] --- maven-war-plugin:2.1.1:war (default-war) @ console ---
[INFO] Packaging webapp
[INFO] Assembling webapp [console] in
[/home/nik/UShareSoft/WKS/syncopeOnGlassfish/syncope-archetype/console/target/syncope-console]
[INFO] Processing war project
[INFO] Copying webapp resources
[/home/nik/UShareSoft/WKS/syncopeOnGlassfish/syncope-archetype/console/src/main/webapp]
[INFO] Processing overlay [ id org.apache.syncope:syncope-console]
[INFO] Webapp assembled in [913 msecs]
[INFO] Building war:
/home/nik/UShareSoft/WKS/syncopeOnGlassfish/syncope-archetype/console/target/syncope-console.war
[INFO] WEB-INF/web.xml already added, skipping
[INFO]
[INFO] --- maven-site-plugin:3.2:attach-descriptor (attach-descriptor) @
console ---
[INFO]
------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Apache Syncope sample project ..................... SUCCESS [2.858s]
[INFO] Apache Syncope sample project core ................ SUCCESS [9.715s]
[INFO] Apache Syncope sample project console ............. SUCCESS [2.468s]
[INFO]
------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 15.562s
[INFO] Finished at: Wed Jun 05 13:33:29 CEST 2013
[INFO] Final Memory: 25M/224M
[INFO]
------------------------------------------------------------------------
[nik@anvil syncope-archetype]$
[nik@anvil syncope-archetype]$ ls -lR /opt/syncope/
/opt/syncope/:
total 8
drwxrwxrwx. 2 root root 4096 Jun 5 13:33 bundles
drwxrwxrwx. 2 root root 4096 May 22 17:29 log
/opt/syncope/bundles:
total 4924
-rw-rw-r--. 1 nik nik 1515037 Jun 5 13:33 org.connid.bundles.csvdir-0.7.jar
-rw-rw-r--. 1 nik nik 204027 Jun 5 13:33 org.connid.bundles.ldap-1.3.5.jar
-rw-rw-r--. 1 nik nik 3320691 Jun 5 13:33 org.connid.bundles.soap-1.2.6.jar
/opt/syncope/log:
total 0
[nik@anvil syncope-archetype]$
Great.
So here is my question. 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.
rgds,
Nik
Nik,
you have NOT to define follow bundle:
*) CSV
*) LDAP
*) SOAP
because they are already defined into Syncope project.
You have to define a bundle in your project's pom for example to db
table or AD bundle, because they aren't used by default.
Massi
On 05/06/2013 10:52, Nik wrote:
Getting there Massi.
So with workaround to
https://issues.apache.org/jira/browse/SYNCOPE-388and defining the
connectors correctly in the pom, I get the following now:
mvn clean package -Dmaven.test.skip=true
-Dbundles.directory=/opt/syncope/bundles -Dlog.directory=/opt/syncope/log
:
:
INFO]
[INFO] --- maven-resources-plugin:2.6:testResources
(default-testResources) @ core ---
[INFO] Not copying test resources
[INFO]
[INFO] --- maven-dependency-plugin:2.7:copy (set-bundles) @ core ---
[INFO] Configured Artifact:
org.connid.bundles:org.connid.bundles.csvdir:0.7:jar
[INFO] org.connid.bundles:org.connid.bundles.csvdir:0.7:jar already
exists in /opt/syncope/bundles
[INFO]
[INFO] --- maven-compiler-plugin:3.1:testCompile
(default-testCompile) @ core ---
[INFO] Not compiling test sources
[INFO]
[INFO] --- maven-surefire-plugin:2.14.1:test (default-test) @ core ---
[INFO] Tests are skipped.
[INFO]
[INFO] --- maven-war-plugin:2.1.1:war (default-war) @ core ---
[INFO] Packaging webapp
[INFO] Assembling webapp [core] in
[/home/nik/UShareSoft/WKS/syncopeOnGlassfish/syncope-archetype/core/target/syncope]
[INFO] Processing war project
[INFO] Copying webapp resources
[/home/nik/UShareSoft/WKS/syncopeOnGlassfish/syncope-archetype/core/src/main/webapp]
[INFO] Processing overlay [ id org.apache.syncope:syncope-core]
[INFO] Webapp assembled in [739 msecs]
[INFO]
------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Apache Syncope sample project ..................... SUCCESS
[2.001s]
[INFO] Apache Syncope sample project core ................ FAILURE
[3.656s]
[INFO] Apache Syncope sample project console ............. SKIPPED
[INFO]
------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 6.024s
[INFO] Finished at: Wed Jun 05 10:49:31 CEST 2013
[INFO] Final Memory: 29M/342M
[INFO]
------------------------------------------------------------------------
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-war-plugin:2.1.1:war (default-war) on
project core: Execution default-war of goal
org.apache.maven.plugins:maven-war-plugin:2.1.1:war failed: For
artifact {org.connid.bundles:org.connid.bundles.csvdir:null:jar}: The
version cannot be empty. -> [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/PluginExecutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with
the command
[ERROR] mvn <goals> -rf :core
[nik@anvil syncope-archetype]$
[nik@anvil syncope-archetype]$ ls -lrt /opt/syncope/bundles/total 1480
-rw-rw-r--. 1 nik nik 1515037 Jun 5 10:34
org.connid.bundles.csvdir-0.7.jar
[nik@anvil syncope-archetype]$
So I'm now missing the ldap/DB/SOAP connectors
and I get the maven plugin error.
rgds,
Nik
On 05/06/2013 10:30, Nik wrote:
sorry Massi I misunderstood,
you mean:
<connid.bundle.version>2.1.5</connid.bundle.version>
<connid.bundle.name>org.connid.bundles.db.table-2.1.5.jar</connid.bundle.name>
<connid.bundle.version>1.3.5</connid.bundle.version>
<connid.bundle.name>org.connid.bundles.ldap-1.3.5.jar</connid.bundle.name>
<connid.bundle.version>1.2.6</connid.bundle.version>
<connid.bundle.name>org.connid.bundles.soap-1.2.6.jar</connid.bundle.name>
<connid.bundle.version>0.7</connid.bundle.version>
<connid.bundle.name>org.connid.bundles.csvdir-0.7.jar</connid.bundle.name>
should be declared as:
<connid.bundle.version>2.1.5</connid.bundle.version>
<connid.bundle.name>org.connid.bundles.db.table</connid.bundle.name>
<connid.bundle.version>1.3.5</connid.bundle.version>
<connid.bundle.name>org.connid.bundles.ldap</connid.bundle.name>
<connid.bundle.version>1.2.6</connid.bundle.version>
<connid.bundle.name>org.connid.bundles.soap</connid.bundle.name>
<connid.bundle.version>0.7</connid.bundle.version>
<connid.bundle.name>org.connid.bundles.csvdir</connid.bundle.name>
rgds,
Nik
Yeah, this is the right way to configure a bundle in pom, but
Syncope downloads soap bundle by default.
--
Massimiliano Perrone
Tel +39 393 9121310
Tirasa S.r.l.
Viale D'Annunzio 267 - 65127 Pescara
Tel +39 0859116307 / FAX +39 0859111173
http://www.tirasa.net
Apache Syncope PMC Member
http://people.apache.org/~massi/
"L'apprendere molte cose non insegna l'intelligenza"
(Eraclito)