Hi ,


I now try to use the documentation available over here :

https://cwiki.apache.org/confluence/display/SYNCOPE/Create+a+new+Syncope+project

The build seems successfull, but I get an error when I run "mvn clean package"

-----------------------------------------------------------------------------------------------------------------------------------------------------
suresh@suresh-Latitude-D830:~/syncope$ mvn archetype:generate \
>     -DarchetypeGroupId=org.apache.syncope \
>     -DarchetypeArtifactId=syncope-archetype \
>     -DarchetypeRepository=http://repo1.maven.org/maven2 \
>     -DarchetypeVersion=1.0.0-RC1-incubating
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'archetype'.
[INFO] ------------------------------------------------------------------------
[INFO] Building Maven Default Project
[INFO]    task-segment: [archetype:generate] (aggregator-style)
[INFO] ------------------------------------------------------------------------
[INFO] Preparing archetype:generate
[INFO] No goals needed for project - skipping
[INFO] [archetype:generate {execution: default-cli}]
[INFO] Generating project in Interactive mode
[INFO] Archetype defined by properties
Define value for property 'groupId': : com.suresh
Define value for property 'artifactId': : myproject
Define value for property 'version': 1.0-SNAPSHOT:
Define value for property 'package': com.suresh:
Confirm properties configuration:
groupId: com.suresh
artifactId: myproject
version: 1.0-SNAPSHOT
package: com.suresh
Y:
[INFO] ---------------------------------------------------------------------------- [INFO] Using following parameters for creating project from Archetype: syncope-archetype:1.0.0-RC1-incubating [INFO] ----------------------------------------------------------------------------
[INFO] Parameter: groupId, Value: com.suresh
[INFO] Parameter: artifactId, Value: myproject
[INFO] Parameter: version, Value: 1.0-SNAPSHOT
[INFO] Parameter: package, Value: com.suresh
[INFO] Parameter: packageInPathFormat, Value: com/suresh
[INFO] Parameter: package, Value: com.suresh
[INFO] Parameter: version, Value: 1.0-SNAPSHOT
[INFO] Parameter: groupId, Value: com.suresh
[INFO] Parameter: artifactId, Value: myproject
[INFO] Parent element not overwritten in /home/suresh/syncope/myproject/core/pom.xml [INFO] Parent element not overwritten in /home/suresh/syncope/myproject/console/pom.xml
[INFO] project created from Archetype in dir: /home/suresh/syncope/myproject
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 35 seconds
[INFO] Finished at: Wed Jun 20 20:31:27 IST 2012
[INFO] Final Memory: 22M/213M
[INFO] ------------------------------------------------------------------------
suresh@suresh-Latitude-D830:~/syncope$ ls
myproject

suresh@suresh-Latitude-D830:~/syncope/myproject$ mvn clean package
[INFO] Scanning for projects...
[INFO] Reactor build order:
[INFO]   Apache Syncope sample project
[INFO]   Apache Syncope sample project core
[INFO]   Apache Syncope sample project console
[INFO] ------------------------------------------------------------------------
[INFO] Building Apache Syncope sample project
[INFO]    task-segment: [clean, package]
[INFO] ------------------------------------------------------------------------
[INFO] [clean:clean {execution: default-clean}]
[INFO] [enforcer:enforce {execution: enforce-java}]
[INFO] [antrun:run {execution: default}]
[INFO] Executing tasks

copy-javadoc-files:
[mkdir] Created dir: /home/suresh/syncope/myproject/target/apidocs/META-INF
[INFO] Executed tasks
[INFO] [site:attach-descriptor {execution: default-attach-descriptor}]
[INFO] ------------------------------------------------------------------------
[INFO] Building Apache Syncope sample project core
[INFO]    task-segment: [clean, package]
[INFO] ------------------------------------------------------------------------
[INFO] [clean:clean {execution: default-clean}]
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error building POM (may not be this project's POM).


Project ID: org.activiti:activiti-engine:jar:null

Reason: Cannot find parent: org.activiti:activiti-root for project: org.activiti:activiti-engine:jar:null for project org.activiti:activiti-engine:jar:null


[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 6 seconds
[INFO] Finished at: Wed Jun 20 20:32:39 IST 2012
[INFO] Final Memory: 48M/350M
[INFO] ------------------------------------------------------------------------
suresh@suresh-Latitude-D830:~/syncope/myproject$


-----------------------------------------------------------------------------------------------------------------------------------------------------

Where am I going wrong ?


Regards,

Suresh

On 06/20/2012 08:12 PM, Francesco Chicchiriccò wrote:
On 20/06/2012 16:29, Suresh Samuel wrote:
Hi,


I get the following error when trying to build:


suresh@suresh-Latitude-D830:~/syncope$ svn co https://svn.apache.org/repos/asf/incubator/syncope/tags/syncope-1.0.0-RC1-incubating/
[...]
Checked out revision 1352115.
suresh@suresh-Latitude-D830:~/syncope$ ls
syncope-1.0.0-RC1-incubating
suresh@suresh-Latitude-D830:~/syncope$ cd syncope-1.0.0-RC1-incubating/
suresh@suresh-Latitude-D830:~/syncope/syncope-1.0.0-RC1-incubating$ ls
archetype    client   DISCLAIMER          LICENSE  pom.xml
build-tools  console  hibernate-enhancer  NOTICE   quality
CHANGES      core     legal_ext           parent   src
suresh@suresh-Latitude-D830:~/syncope/syncope-1.0.0-RC1-incubating$ mvn install
[INFO] Scanning for projects...
[INFO] Reactor build order:
[INFO]   Apache Syncope
[INFO]   Apache Syncope Build Tools
[INFO]   Apache Syncope Client
[INFO]   Apache Syncope Core
[INFO]   Apache Syncope Console
[INFO]   Apache Syncope Root
[INFO] ------------------------------------------------------------------------
[INFO] Building Apache Syncope
[INFO]    task-segment: [install]
[INFO] ------------------------------------------------------------------------
[INFO] [enforcer:enforce {execution: enforce-java}]
[INFO] [antrun:run {execution: default}]
[INFO] Executing tasks

copy-javadoc-files:
[mkdir] Created dir: /home/suresh/syncope/syncope-1.0.0-RC1-incubating/parent/target/apidocs/META-INF [copy] Copying 3 files to /home/suresh/syncope/syncope-1.0.0-RC1-incubating/parent/target/apidocs/META-INF
[INFO] Executed tasks
[INFO] [site:attach-descriptor {execution: default-attach-descriptor}]
[WARNING] POM for 'org.apache.commons:commons-compress:pom:1.0:runtime' is invalid.

Its dependencies (if any) will NOT be available to the current build.
[WARNING] POM for 'commons-cli:commons-cli:pom:1.1:runtime' is invalid.

Its dependencies (if any) will NOT be available to the current build.
[WARNING] POM for 'org.apache.maven.doxia:doxia-core:pom:1.0-alpha-8:runtime' is invalid.

Its dependencies (if any) will NOT be available to the current build.
[WARNING] POM for 'org.codehaus.plexus:plexus-velocity:pom:1.1.3:runtime' is invalid.

Its dependencies (if any) will NOT be available to the current build.
[WARNING] POM for 'org.apache.maven.doxia:doxia-decoration-model:pom:1.0-alpha-8:runtime' is invalid.

Its dependencies (if any) will NOT be available to the current build.
[WARNING] POM for 'org.apache.maven:maven-project:pom:2.0.4:runtime' is invalid.

Its dependencies (if any) will NOT be available to the current build.
[WARNING] POM for 'org.apache.maven.doxia:doxia-core:pom:1.0-alpha-7:runtime' is invalid.

Its dependencies (if any) will NOT be available to the current build.
[WARNING] POM for 'oro:oro:pom:2.0.7:runtime' is invalid.

Its dependencies (if any) will NOT be available to the current build.
[WARNING] POM for 'org.apache.maven.reporting:maven-reporting-api:pom:2.0.4:runtime' is invalid.

Its dependencies (if any) will NOT be available to the current build.
[WARNING] POM for 'org.apache.maven.doxia:doxia-site-renderer:pom:1.0-alpha-7:runtime' is invalid.

Its dependencies (if any) will NOT be available to the current build.
[WARNING] POM for 'org.apache.maven:maven-repository-metadata:pom:2.0.4:runtime' is invalid.

Its dependencies (if any) will NOT be available to the current build.
[WARNING] POM for 'org.codehaus.plexus:plexus-utils:pom:1.1:runtime' is invalid.

Its dependencies (if any) will NOT be available to the current build.
[WARNING] POM for 'org.apache.maven:maven-artifact:pom:2.0.4:runtime' is invalid.

Its dependencies (if any) will NOT be available to the current build.
[WARNING] POM for 'org.apache.maven.wagon:wagon-file:pom:1.0-alpha-5:runtime' is invalid.

Its dependencies (if any) will NOT be available to the current build.
[WARNING] POM for 'org.apache.maven:maven-plugin-parameter-documenter:pom:2.0:runtime' is invalid.

Its dependencies (if any) will NOT be available to the current build.
[WARNING] POM for 'org.apache.maven.wagon:wagon-http-lightweight:pom:1.0-alpha-5:runtime' is invalid.

Its dependencies (if any) will NOT be available to the current build.
[WARNING] POM for 'org.apache.maven.reporting:maven-reporting-api:pom:2.0:runtime' is invalid.

Its dependencies (if any) will NOT be available to the current build.
[WARNING] POM for 'org.apache.maven:maven-error-diagnostics:pom:2.0:runtime' is invalid.

Its dependencies (if any) will NOT be available to the current build.
[WARNING] POM for 'org.apache.maven:maven-plugin-registry:pom:2.0:runtime' is invalid.

Its dependencies (if any) will NOT be available to the current build.
[WARNING] POM for 'org.apache.maven:maven-plugin-descriptor:pom:2.0:runtime' is invalid.

Its dependencies (if any) will NOT be available to the current build.
[WARNING] POM for 'org.apache.maven:maven-monitor:pom:2.0:runtime' is invalid.

Its dependencies (if any) will NOT be available to the current build.
[WARNING] POM for 'org.apache.maven.wagon:wagon-ssh:pom:1.0-alpha-5:runtime' is invalid.

Its dependencies (if any) will NOT be available to the current build.
[INFO] [apache-rat:check {execution: default}]
[INFO] Exclude: nbactions.xml
[INFO] Exclude: nb-configuration.xml
[INFO] Exclude: **/META-INF/services/**
[INFO] Exclude: **/*.css
[INFO] Exclude: **/*.js
[INFO] Exclude: **/*.csv
[INFO] Exclude: **/archetype-resources/**
[INFO] Exclude: .externalToolBuilders/**
[INFO] Exclude: maven-eclipse.xml
[WARNING] POM for 'org.codehaus.groovy.maven.runtime:gmaven-runtime-api:pom:1.0-rc-3:runtime' is invalid.

Its dependencies (if any) will NOT be available to the current build.
[WARNING] POM for 'org.codehaus.groovy.maven.runtime:gmaven-runtime-default:pom:1.0-rc-3:runtime' is invalid.

Its dependencies (if any) will NOT be available to the current build.
[WARNING] POM for 'org.codehaus.groovy.maven:gmaven-common:pom:1.0-rc-3:runtime' is invalid.

Its dependencies (if any) will NOT be available to the current build.
[WARNING] POM for 'org.apache.maven:maven-settings:pom:2.0.5:runtime' is invalid.

Its dependencies (if any) will NOT be available to the current build.
[WARNING] POM for 'org.apache.maven:maven-profile:pom:2.0.5:runtime' is invalid.

Its dependencies (if any) will NOT be available to the current build.
[WARNING] POM for 'org.apache.maven:maven-artifact-manager:pom:2.0.5:runtime' is invalid.

Its dependencies (if any) will NOT be available to the current build.
-----------------------------------------------------
this realm = app0.child-container[org.codehaus.mojo:ianal-maven-plugin:1.0-alpha-1] urls[0] = file:/home/suresh/.m2/repository/org/codehaus/mojo/ianal-maven-plugin/1.0-alpha-1/ianal-maven-plugin-1.0-alpha-1.jar urls[1] = file:/home/suresh/.m2/repository/org/codehaus/groovy/maven/gmaven-mojo/1.0-rc-3/gmaven-mojo-1.0-rc-3.jar urls[2] = file:/home/suresh/.m2/repository/org/codehaus/groovy/maven/runtime/gmaven-runtime-api/1.0-rc-3/gmaven-runtime-api-1.0-rc-3.jar urls[3] = file:/home/suresh/.m2/repository/org/codehaus/groovy/maven/runtime/gmaven-runtime-default/1.0-rc-3/gmaven-runtime-default-1.0-rc-3.jar urls[4] = file:/home/suresh/.m2/repository/org/codehaus/groovy/maven/gmaven-common/1.0-rc-3/gmaven-common-1.0-rc-3.jar urls[5] = file:/home/suresh/.m2/repository/org/codehaus/plexus/plexus-utils/1.5.15/plexus-utils-1.5.15.jar
Number of imports: 10
import: org.codehaus.classworlds.Entry@a6c57a42
import: org.codehaus.classworlds.Entry@12f43f3b
import: org.codehaus.classworlds.Entry@20025374
import: org.codehaus.classworlds.Entry@f8e44ca4
import: org.codehaus.classworlds.Entry@92758522
import: org.codehaus.classworlds.Entry@ebf2705b
import: org.codehaus.classworlds.Entry@bb25e54
import: org.codehaus.classworlds.Entry@bece5185
import: org.codehaus.classworlds.Entry@3fee8e37
import: org.codehaus.classworlds.Entry@3fee19d8


this realm = plexus.core
urls[0] = file:/usr/share/maven2/lib/maven-debian-uber.jar
Number of imports: 10
import: org.codehaus.classworlds.Entry@a6c57a42
import: org.codehaus.classworlds.Entry@12f43f3b
import: org.codehaus.classworlds.Entry@20025374
import: org.codehaus.classworlds.Entry@f8e44ca4
import: org.codehaus.classworlds.Entry@92758522
import: org.codehaus.classworlds.Entry@ebf2705b
import: org.codehaus.classworlds.Entry@bb25e54
import: org.codehaus.classworlds.Entry@bece5185
import: org.codehaus.classworlds.Entry@3fee8e37
import: org.codehaus.classworlds.Entry@3fee19d8
-----------------------------------------------------
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------ [INFO] Internal error in the plugin manager executing goal 'org.codehaus.mojo:ianal-maven-plugin:1.0-alpha-1:verify-legal-files': Unable to load the mojo 'org.codehaus.mojo:ianal-maven-plugin:1.0-alpha-1:verify-legal-files' in the plugin 'org.codehaus.mojo:ianal-maven-plugin'. A required class is missing: groovy/lang/GroovyObject
groovy.lang.GroovyObject
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 6 seconds
[INFO] Finished at: Wed Jun 20 19:38:32 IST 2012
[INFO] Final Memory: 45M/597M
[INFO] ------------------------------------------------------------------------
suresh@suresh-Latitude-D830:~/syncope/syncope-1.0.0-RC1-incubating$

Am I doing anything wrong ?

All these "[WARNING] POM for 'XXXX' is invalid." are sympthom of something wrong with your local or remote maven repo.

BTW, why are you building the 1.0.0-RC1-incubating sources? Checking the release artifacts? ;-)

Regards.
--
Francesco Chicchiriccò

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


--
*Suresh Samuel | Senior Solution Support Engineer*
*Everett Solution Support Center*
------------------------------------------------------------------------

Tel:         +31 (0)30 659 2255
Email: [email protected] <mailto:[email protected]>
Website: www.everett-support.com <http://www.everett-support.com>
------------------------------------------------------------------------
The information in this Internet email is confidential and may be legally privileged. It is intended solely for the addressee. Access to this Internet email by anyone else is unauthorised. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it is prohibited and may be unlawful. When addressed to our clients any opinions or advice contained in this Internet email are subject to the terms and conditions expressed in any applicable governing Everett BV terms of business or client engagement letter.

Reply via email to