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.