On 07/06/2013 12:49, Nik wrote:
Thanks Andrea,
Updating both the parent and core poms as you advise (and also doing
the same for the console pom, just in case!).
gives the following:
[nik@anvil syncope-archetype]$ rm -rf ~/.m2
[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] Configured Artifact:
org.connid.bundles:org.connid.bundles.db.table:2.1.5:jar
Downloading:
https://repository.apache.org/content/repositories/snapshots/org/connid/bundles/org.connid.bundles.db.table/2.1.5/org.connid.bundles.db.table-2.1.5.jar
Downloading:
https://artifacts.alfresco.com/nexus/content/groups/public/org/connid/bundles/org.connid.bundles.db.table/2.1.5/org.connid.bundles.db.table-2.1.5.jar
Downloading:
http://repo.maven.apache.org/maven2/org/connid/bundles/org.connid.bundles.db.table/2.1.5/org.connid.bundles.db.table-2.1.5.jar
[INFO]
------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Apache Syncope sample project ..................... SUCCESS
[34.787s]
[INFO] Apache Syncope sample project core ................ FAILURE
[6:12.988s]
[INFO] Apache Syncope sample project console ............. SKIPPED
[INFO]
------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 6:56.866s
[INFO] Finished at: Fri Jun 07 12:42:01 CEST 2013
[INFO] Final Memory: 30M/104M
[INFO]
------------------------------------------------------------------------
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-dependency-plugin:2.7:copy
(set-bundles) on project core: Unable to find artifact. Could not find
artifact org.connid.bundles:org.connid.bundles.db.table:jar:2.1.5 in
ASF (https://repository.apache.org/content/repositories/snapshots/)
[...]
POINTS TO NOTE:
http://repo.maven.apache.org/maven2/org/connid/bundles/org.connid.bundles.db.table/2.1.5/org.connid.bundles.db.table-2.1.5.jar
DOES NOT EXIST
http://repo.maven.apache.org/maven2/org/connid/bundles/db/org.connid.bundles.db.table/2.1.5/org.connid.bundles.db.table-2.1.5.jar
DOES EXIT
CONCLUSION
Need to add ../db/.. or softlink db with
org.connid.bundles.db.tablepath??? A bug perhaps?
No, you simply need to check where you put the wrong groupId :-)
It has to be
<groupId>org.connid.bundles.db</groupId>
<artifactId>org.connid.bundles.db.table</artifactId>
everywhere: check again and you will find the mistake.
Regards.
--
Francesco Chicchiriccò
ASF Member, Apache Syncope PMC chair, Apache Cocoon PMC Member
http://people.apache.org/~ilgrosso/