[Building Sakai] error running mvn clean install sakai:deploy on 2.7.1

Steve Swinsburg steve.swinsburg at gmail.com
Wed Dec 22 14:06:36 PST 2010


I would double check your environment - that output definitely looks like Maven3 to me. So it's possible it is still building with M3.

cheers,
Steve



On 23/12/2010, at 5:10 AM, Patrick Coleman wrote:

> 
> When I do the initial "maven clean install" in the master directory I get
> "Success"
> at the end but there are these warnings.
> 
> [WARNING] 
> [WARNING] Some problems were encountered while building the effective model
> for org.sakaiproject:master:pom:2.7.1
> [WARNING]
> 'dependencyManagement.dependencies.dependency.(groupId:artifactId:type:classifier)'
> must be unique: javax.jcr:jcr:jar -> version 1.0 vs ${sakai.jcr.version} @
> line 506, column 25
> [WARNING] 'build.plugins.plugin.version' for
> org.apache.maven.plugins:maven-compiler-plugin is missing. @ line 1044,
> column 21
> [WARNING] The expression ${artifactId} is deprecated. Please use
> ${project.artifactId} instead.
> [WARNING] The expression ${version} is deprecated. Please use
> ${project.version} instead.
> [WARNING] 'reporting.plugins.plugin.version' for
> org.apache.maven.plugins:maven-javadoc-plugin is missing. @ line 921, column
> 21
> [WARNING] 'reporting.plugins.plugin.version' for
> org.apache.maven.plugins:maven-surefire-plugin is missing. @ line 938,
> column 21
> [WARNING] 'reporting.plugins.plugin.version' for
> org.apache.maven.plugins:maven-pmd-plugin is missing. @ line 949, column 21
> [WARNING] 'reporting.plugins.plugin.version' for
> org.codehaus.mojo:changelog-maven-plugin is missing. @ line 972, column 21
> [WARNING] 'reporting.plugins.plugin.version' for
> org.codehaus.mojo:taglist-maven-plugin is missing. @ line 982, column 21
> [WARNING] 'reporting.plugins.plugin.version' for
> org.codehaus.mojo:jdepend-maven-plugin is missing. @ line 994, column 21
> [WARNING] 'reporting.plugins.plugin.version' for
> org.codehaus.mojo:jxr-maven-plugin is missing. @ line 999, column 21
> [WARNING] 'reporting.plugins.plugin.version' for
> net.sourceforge.maven-taglib:maven-taglib-plugin is missing. @ line 1009,
> column 21
> [WARNING] 'distributionManagement.repository.id' must not be 'local', this
> identifier is reserved for the local repository, using it for other
> repositories will corrupt your repository metadata. @ line 117, column 17
> [WARNING] 
> [WARNING] It is highly recommended to fix these problems because they
> threaten the stability of your build.
> [WARNING] 
> [WARNING] For this reason, future Maven versions might no longer support
> building such malformed projects.
> [WARNING] 
> 
> 
> Patrick Coleman wrote:
>> 
>> Hi,
>> 
>> Actually I tried it with Maven 2 first and just tried 3 to see what would
>> happen but it's
>> the exact same with 2.
>> 
>> Pat.
>> 
>> 
>> David Horwitz wrote:
>>> 
>>>  Hi Patrick,
>>> 
>>> It looks like your using Maven 3 - Sakai hasn't been tested against 
>>> maven 3 and your likely to get these kind of errors. I would use the 
>>> latest maven 2 (2.2.1)
>>> 
>>> David
>>> 
>>> On 12/22/2010 07:30 PM, Patrick Coleman wrote:
>>>> Hi,
>>>> I'm trying to deploy Sakai 2.7.1 but getting some error when I run..
>>>> 
>>>> mvn clean install sakai:deploy
>>>> 
>>>> The errors are as follows, anyone know what the problem is? Thanks.
>>>> 
>>>> 
>>>> [INFO] Scanning for projects...
>>>> Downloading:
>>>> http://repo1.maven.org/maven2/org/sakaiproject/content/content/2.7.1/content-2.7.1.pom
>>>> Downloading:
>>>> http://repo1.maven.org/maven2/org/sakaiproject/base/2.7.1/base-2.7.1.pom
>>>> [ERROR] The build could not read 8 projects ->  [Help 1]
>>>> [ERROR]
>>>> [ERROR]   The project
>>>> org.sakaiproject.content:content-providers-impl:2.7.1
>>>> (/Volumes/Data1/SakaiUpgrade2.1.1/sakai-src-2.7.1/content/content-impl-providers/impl/pom.xml)
>>>> has 1 error
>>>> [ERROR]     Non-resolvable parent POM: Could not find artifact
>>>> org.sakaiproject.content:content:pom:2.7.1 in central
>>>> (http://repo1.maven.org/maven2) and 'parent.relativePath' points at
>>>> wrong
>>>> local POM @ line 4, column 11 ->  [Help 2]
>>>> [ERROR]
>>>> [ERROR]   The project
>>>> org.sakaiproject.content:content-providers-pack:2.7.1
>>>> (/Volumes/Data1/SakaiUpgrade2.1.1/sakai-src-2.7.1/content/content-impl-providers/pack/pom.xml)
>>>> has 1 error
>>>> [ERROR]     Non-resolvable parent POM: Failure to find
>>>> org.sakaiproject.content:content:pom:2.7.1 in
>>>> http://repo1.maven.org/maven2
>>>> was cached in the local repository, resolution will not be reattempted
>>>> until
>>>> the update interval of central has elapsed or updates are forced and
>>>> 'parent.relativePath' points at wrong local POM @ line 4, column 11 -> 
>>>> [Help
>>>> 2]
>>>> [ERROR]
>>>> [ERROR]   The project org.sakaiproject.content:sakai-content-tool:2.7.1
>>>> (/Volumes/Data1/SakaiUpgrade2.1.1/sakai-src-2.7.1/content/content-tool/tool/pom.xml)
>>>> has 1 error
>>>> [ERROR]     Non-resolvable parent POM: Failure to find
>>>> org.sakaiproject.content:content:pom:2.7.1 in
>>>> http://repo1.maven.org/maven2
>>>> was cached in the local repository, resolution will not be reattempted
>>>> until
>>>> the update interval of central has elapsed or updates are forced and
>>>> 'parent.relativePath' points at wrong local POM @ line 4, column 13 -> 
>>>> [Help
>>>> 2]
>>>> [ERROR]
>>>> [ERROR]   The project org.sakaiproject:warehouse-base:2.7.1
>>>> (/Volumes/Data1/SakaiUpgrade2.1.1/sakai-src-2.7.1/warehouse/pom.xml) has
>>>> 1
>>>> error
>>>> [ERROR]     Non-resolvable parent POM: Could not find artifact
>>>> org.sakaiproject:base:pom:2.7.1 in central
>>>> (http://repo1.maven.org/maven2)
>>>> and 'parent.relativePath' points at wrong local POM @ line 5, column 11
>>>> ->
>>>> [Help 2]
>>>> [ERROR]
>>>> [ERROR]   The project org.sakaiproject:sakai-reports-api:2.7.1
>>>> (/Volumes/Data1/SakaiUpgrade2.1.1/sakai-src-2.7.1/reports/reports-api/api/pom.xml)
>>>> has 1 error
>>>> [ERROR]
>>>> 'build.plugins.plugin[org.codehaus.mojo:hibernate3-maven-plugin].dependencies.dependency.scope'
>>>> for org.sakaiproject:sakai-util-id-hbm:jar must be one of [compile,
>>>> runtime,
>>>> system] but is 'test'. @ line 104, column 20
>>>> [ERROR]
>>>> [ERROR]   The project
>>>> org.sakaiproject.sitemanage:sakai-site-manage-group-section-role-helper:2.7.1
>>>> (/Volumes/Data1/SakaiUpgrade2.1.1/sakai-src-2.7.1/site-manage/site-manage-group-section-role-helper/tool/pom.xml)
>>>> has 1 error
>>>> [ERROR]     Malformed POM
>>>> /Volumes/Data1/SakaiUpgrade2.1.1/sakai-src-2.7.1/site-manage/site-manage-group-section-role-helper/tool/pom.xml:
>>>> expected START_TAG or END_TAG not TEXT (position: TEXT seen
>>>> ...<resources/>\n</build>]\n<r... @76:7)  @
>>>> /Volumes/Data1/SakaiUpgrade2.1.1/sakai-src-2.7.1/site-manage/site-manage-group-section-role-helper/tool/pom.xml,
>>>> line 76, column 7 ->  [Help 3]
>>>> [ERROR]
>>>> [ERROR]   The project org.sakaiproject:sakai-siteassociation-hbm:2.7.1
>>>> (/Volumes/Data1/SakaiUpgrade2.1.1/sakai-src-2.7.1/site-manage/site-association-hbm/hbm/pom.xml)
>>>> has 1 error
>>>> [ERROR]
>>>> 'build.plugins.plugin[org.codehaus.mojo:hibernate3-maven-plugin].dependencies.dependency.scope'
>>>> for org.sakaiproject:sakai-util-id-hbm:jar must be one of [compile,
>>>> runtime,
>>>> system] but is 'test'. @ line 80, column 20
>>>> [ERROR]
>>>> [ERROR]   The project org.sakaiproject:sakai-taggable-hbm:2.7.1
>>>> (/Volumes/Data1/SakaiUpgrade2.1.1/sakai-src-2.7.1/taggable/taggable-hbm/hbm/pom.xml)
>>>> has 1 error
>>>> [ERROR]
>>>> 'build.plugins.plugin[org.codehaus.mojo:hibernate3-maven-plugin].dependencies.dependency.scope'
>>>> for org.sakaiproject:sakai-util-id-hbm:jar must be one of [compile,
>>>> runtime,
>>>> system] but is 'test'. @ line 82, column 20
>>>> [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/ProjectBuildingException
>>>> [ERROR] [Help 2]
>>>> http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException
>>>> [ERROR] [Help 3]
>>>> http://cwiki.apache.org/confluence/display/MAVEN/ModelParseException
>>>> 
>>> _______________________________________________
>>> sakai-dev mailing list
>>> sakai-dev at collab.sakaiproject.org
>>> http://collab.sakaiproject.org/mailman/listinfo/sakai-dev
>>> 
>>> TO UNSUBSCRIBE: send email to
>>> sakai-dev-unsubscribe at collab.sakaiproject.org with a subject of
>>> "unsubscribe"
>>> 
>>> 
>> 
>> 
> 
> -- 
> View this message in context: http://old.nabble.com/error-running-mvn-clean-install-sakai%3Adeploy-on-2.7.1-tp30515973p30516242.html
> Sent from the Sakai - Development mailing list archive at Nabble.com.
> 
> _______________________________________________
> sakai-dev mailing list
> sakai-dev at collab.sakaiproject.org
> http://collab.sakaiproject.org/mailman/listinfo/sakai-dev
> 
> TO UNSUBSCRIBE: send email to sakai-dev-unsubscribe at collab.sakaiproject.org with a subject of "unsubscribe"



More information about the sakai-dev mailing list