On 03/05/2016 13:49, Shagun Akarsh wrote:
Hello,
I followed the link provided for 2.0.0-M2. It is unable to find this
dependency
org.apache.syncope.fit:syncope-fit-build-tools:war:2.0.0-M2. I even
checked http://repo1.maven.org/maven2/org/syncope/
<https://repo.maven.apache.org/maven2/org/apache/syncope/> but could
not find any org.apache.syncope.fit. artifact
Hi,
you are right:
org.apache.syncope.fit:syncope-fit-build-tools:war
is not part of the release, so you won't find it in the central Maven
repository.
This needs to be fixed before next release: would you mind opening an
issue on JIRA?
As a temporary workaround, I'd suggest switching to 2.0.0-SNAPSHOT, e.g.
creating the Maven project via
mvn archetype:generate \
-DarchetypeGroupId=org.apache.syncope \
-DarchetypeArtifactId=syncope-archetype \
-DarchetypeRepository=http://repository.apache.org/content/repositories/snapshots
\
-DarchetypeVersion=2.0.0-SNAPSHOT
then adding the following code right before </project> in root pom.xml
of the generated project:
<repositories>
<repository>
<id>ASF</id>
<url>https://repository.apache.org/content/repositories/snapshots/</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>
At this point you can proceed as indicated in the getting started guide.
Regards.
On Tue, May 3, 2016 at 3:59 PM, Francesco Chicchiriccò
<[email protected] <mailto:[email protected]>> wrote:
On 03/05/2016 10:28, Shagun Akarsh wrote:
Hello,
I am trying to deploy Apache Syncope 2.0.0-M2 in embedded mode.
I created a new archetype project (groupId: com.wooqer,
artifactId: wooqer-idm, versionNumber: 1.0.0-SNAPSHOT,
packageName: com.wooqer, secretKey: 16digits, anonymousKey: 16
digits) as suggested in documentation and all wars are generated
without any issue on running (mvn clean package & then mvn clean
install) from wooqer-idm directory. Wars are in corresponding
target folders:
wooqer-idm/console/target/syncope-console.war,
wooqer-idm/core/target/syncope.war,
wooqer-idm/core/target/common-1.0-SNAPSHOT.war,
wooqer-idm/enduser/target/syncope-enduser.war.
But when I deploy in embedded mode (mvn -P embedded) from
wooqer-idm/console/ directory I get the following error:
[ERROR] Failed to execute goal on project console: Could not
resolve dependencies for project
com.wooqer:console:war:1.0-SNAPSHOT: The following artifacts
could not be resolved: com.wooqer:common:jar:1.0-SNAPSHOT,
org.apache.syncope.fit:syncope-fit-build-tools:war:2.0.0-M2:
Could not find artifact com.wooqer:common:jar:1.0-SNAPSHOT in
sonatype
(https://oss.sonatype.org/content/repositories/snapshots) -> [Help 1]
I am following all steps as mentioned in documentation
<https://cwiki.apache.org/confluence/display/SYNCOPE/Create+a+new+Syncope+project>,
but still getting this error.
That page is for Syncope 1.2; if you are on 2.0.0-M2, please follow
http://syncope.apache.org/docs/getting-started.html#create-project
instead.
Regards.
--
Francesco Chicchiriccò
Tirasa - Open Source Excellence
http://www.tirasa.net/
Involved at The Apache Software Foundation:
member, Syncope PMC chair, Cocoon PMC,
Olingo PMC, CXF Committer, OpenJPA Committer
http://home.apache.org/~ilgrosso/