On 07/06/2013 15:00, Nik wrote:
But I arrive back to the starting point. I don't get my db connector jar :-(

Of course!

You simply need to adjust

<configuration>
            <artifactItems>
              <artifactItem>
                <groupId>org.connid.bundles</groupId>
                <artifactId>${connid.bundle.name}</artifactId>
                <version>${connid.bundle.version}</version>
                <outputDirectory>${bundles.directory}</outputDirectory>
              </artifactItem>
            </artifactItems>
</configuration>

to

<configuration>
            <artifactItems>
              <artifactItem>
                <groupId>org.connid.bundles.db</groupId>
                <artifactId>org.connid.bundles.db.table</artifactId>
                <version>2.1.15</version>
                <outputDirectory>${bundles.directory}</outputDirectory>
              </artifactItem>
            </artifactItems>
</configuration>

for the DB connector.

As I wrote earlier, "<groupId>org.connid.bundles.db</groupId>" needs to be used everywhere: this is how Maven works.

Regards.

[nik@anvil syncope-archetype]$ find . -name org.connid.bundles.db.table-2.1.5.jar
[nik@anvil syncope-archetype]$ ls -lrt /opt/syncope/bundles/
total 4924
-rw-rw-r--. 1 nik nik 3320691 Jun 7 14:49 org.connid.bundles.soap-1.2.6.jar -rw-rw-r--. 1 nik nik 1515037 Jun 7 14:49 org.connid.bundles.csvdir-0.7.jar -rw-rw-r--. 1 nik nik 204027 Jun 7 14:49 org.connid.bundles.ldap-1.3.5.jar
[nik@anvil syncope-archetype]$


But if I remove the xml wiki advicefor :

_QUOTE_
and adding the following rows to maven-dependency-plugin
<configuration>
             <artifactItems>
               <artifactItem>
                 <groupId>org.connid.bundles</groupId>
                 <artifactId>${connid.bundle.name}</artifactId>
                 <version>${connid.bundle.version}</version>
                 <outputDirectory>${bundles.directory}</outputDirectory>
               </artifactItem>
             </artifactItems>
</configuration>
_UNQUOTE_

and life with maven becomes less complicated:-)

:
[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 [1.944s] [INFO] Apache Syncope sample project core ................ SUCCESS [17.333s] [INFO] Apache Syncope sample project console ............. SUCCESS [48.293s] [INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1:07.913s
[INFO] Finished at: Fri Jun 07 14:50:00 CEST 2013
[INFO] Final Memory: 30M/467M
[INFO] ------------------------------------------------------------------------
[nik@anvil syncope-archetype]$

rgds,
Nik





--
Francesco Chicchiriccò

ASF Member, Apache Syncope PMC chair, Apache Cocoon PMC Member
http://people.apache.org/~ilgrosso/

Reply via email to