[Building Sakai] Problem with pom.xml at root of edu-services

Anthony Whyte arwhyte at umich.edu
Thu Oct 21 14:59:06 PDT 2010


The 2.8.0-a01 / a02 tags are considered by Maven as inside the Maven version range [2.7.0, 2.8.0) if I am interpreting the following rule correctly:

"if qualifier does not exist, it is newer than if it does"

http://docs.codehaus.org/display/MAVEN/Dependency+Mediation+and+Conflict+Resolution
"For ordering, the following is done in order until an element is found that are not equal:

numerical comparison of major version
numerical comparison of minor version
if revision does not exist, add ".0" for comparison purposes
numerical comparison of revision
if qualifier does not exist, it is newer than if it does
case-insensitive string comparison of qualifier
this ensures timestamps are correctly ordered, and SNAPSHOT is newer than an equivalent timestamp
this also ensures that beta comes after alpha, as does rc
if no qualifier, and build does not exist, add "-0" for comparison purposes
numerical comparison of build"
Starting tomorrow I'll yank the version ranges out of 2.7.x-related projects (including indies) and in the case of the latter, generate new releases as required that will be deployed by 2.7.x.  If necessary we can also roll a sakai-2.7.2 maintenance release.

There are no version ranges used in trunk, 2.8.x or 2.8-related indies.

~Anth





On Oct 21, 2010, at 3:24 PM, Noah Botimer wrote:

> Maybe we can start up a FAQ / Troubleshooting Guide?
> 
> We've been seeing a lot of these build / deployment / pom problems tripping up some of our most experienced people, as well as newcomers.
> 
> There's a lot of complexity in our packaging and it's hard to find good answers, check for (ill-)advised patterns, or debug problems quickly. Burning a half day of senior developer time at a crack on getting a build going isn't really a best practice.
> 
> Thanks,
> -Noah
> 
> On Oct 21, 2010, at 3:05 PM, Jim Eng wrote:
> 
>> Is it possible that we are downloading org.sakaiproject.edu-services.gradebook:gradebook-service-impl:jar:1.0.6 and that somehow depends on org.sakaiproject.edu-services.sections:sections-integrationsupport:jar:1.1.0-a02?
>> 
>> The relevant part of the error message is shown below.  This occurs while trying to build gradebook2 in a fresh checkout of sakai 2.7.1 (also in sakai 2.7.x):
>> 
>> [INFO] ------------------------------------------------------------------------
>> [ERROR] BUILD ERROR
>> [INFO] ------------------------------------------------------------------------
>> [INFO] Failed to resolve artifact.
>> 
>> Missing:
>> ----------
>> 1) org.sakaiproject.edu-services.sections:sections-integrationsupport:jar:1.1.0-a02
>> 
>>   Try downloading the file manually from: 
>>       http://source.sakaiproject.org/maven2/
>> 
>>   Then, install it using the command: 
>>       mvn install:install-file -DgroupId=org.sakaiproject.edu-services.sections -DartifactId=sections-integrationsupport -Dversion=1.1.0-a02 -Dpackaging=jar -Dfile=/path/to/file
>> 
>>   Alternatively, if you host your own repository you can deploy the file there: 
>>       mvn deploy:deploy-file -DgroupId=org.sakaiproject.edu-services.sections -DartifactId=sections-integrationsupport -Dversion=1.1.0-a02 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
>> 
>>   Path to dependency: 
>>   	1) org.sakaiproject.gradebook2:gradebook2-model:jar:1.3.0-SNAPSHOT
>>   	2) org.sakaiproject.edu-services.gradebook:gradebook-service-impl:jar:1.0.6
>>   	3) org.sakaiproject.edu-services.sections:sections-integrationsupport:jar:1.1.0-a02
>> 
>> ----------
>> 1 required artifact is missing.
>> 
>> 
>> 
>> 
>> On Oct 21, 2010, at 2:46 PM, Jim Eng wrote:
>> 
>>> master/pom.xml defines this property:
>>> 
>>> <sakai.edu-services.version>1.0.6</sakai.edu-services.version>
>>> 
>>> I am not seeing any hardcoded versions in master, core-deploy, sections or gradebook2.  
>>> 
>>> 
>>> 
>>> On Oct 21, 2010, at 2:39 PM, Jim Eng wrote:
>>> 
>>>> Turns out there's another problem. Sakai 2.7.1 and 2.7.x seem to have a mix of versions for edu-services.  After cleaning out everything from ~/.m2/repository/org/sakaiproject and starting to build full sakai version 2.7.1, I find that sections-integrationsupport-1.0.6.jar has been put into my m2 repo.  But when gradebook2 tries to find the sections-api jar, it ends up using ${sakai.edu-services.version} when looking for that jar, and ${sakai.edu-services.version} seems to have a value of 1.1.0-a02 instead of 1.0.6.  
>>>> 
>>>> I have been trying to unwind this to see why core-deply gets the 1.0.6 versions of various edu-services jars, but then the sections project seems to want the 1.1.0-a02 versions.   
>>>> 
>>>> Jim
>>>> 
>>>> 
>>>> 
>>>> On Oct 20, 2010, at 2:08 PM, Anthony Whyte wrote:
>>>> 
>>>>> I'll handle this.
>>>>> 
>>>>> Anth
>>>>> 
>>>>> 
>>>>> On Oct 20, 2010, at 1:32 PM, Matthew Jones wrote:
>>>>> 
>>>>>> Looks like Anthony removed this from master in November 2009? Searching email it's given people a lot of problems in various messages.
>>>>>> 
>>>>>> http://collab.sakaiproject.org/pipermail/sakai-dev/2010-January/005521.html
>>>>>> 
>>>>>> On Wed, Oct 20, 2010 at 1:29 PM, Jim Eng <jimeng at umich.edu> wrote:
>>>>>> What I meant was:  Could someone remove or update **the apache-repo repository element in** the edu-services pom.xml file?
>>>>>> 
>>>>>> :-)
>>>>>> 
>>>>>> On Oct 20, 2010, at 1:26 PM, Jim Eng wrote:
>>>>>> 
>>>>>> > The "repositories" tag in the root pom.xml file for edu-services includes the following repository element:
>>>>>> >
>>>>>> >        <repository>
>>>>>> >            <id>apache-repo</id>
>>>>>> >            <name>apache-repo</name>
>>>>>> >            <layout>default</layout>
>>>>>> >            <url>http://myfaces.zones.apache.org/dist/maven-repository</url>
>>>>>> >            <releases>
>>>>>> >                <enabled>true</enabled>
>>>>>> >            </releases>
>>>>>> >            <snapshots>
>>>>>> >                <enabled>false</enabled>
>>>>>> >            </snapshots>
>>>>>> >        </repository>
>>>>>> >
>>>>>> > This seems to be an invalid URL, and it causes problems when doing a full build of sakai with gradebook2.  The build hangs at this point for several minutes before timing out:
>>>>>> >
>>>>>> > [INFO] artifact org.sakaiproject.edu-services.sections:sections-integrationsupport: checking for updates from apache-repo
>>>>>> >
>>>>>> > After that long delay, the following messages are displayed:
>>>>>> >
>>>>>> > [WARNING] repository metadata for: 'artifact org.sakaiproject.edu-services.sections:sections-integrationsupport' could not be retrieved from repository: apache-repo due to an error: Operation timed out
>>>>>> > [INFO] Repository 'apache-repo' will be blacklisted
>>>>>> >
>>>>>> > A similar repository element has been commented out in the master/pom.xml file.  Could someone remove or update the edu-services pom.xml file?
>>>>>> >
>>>>>> > Thanks.
>>>>>> >
>>>>>> > Jim
> _______________________________________________
> 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"

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20101021/fd3be834/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3829 bytes
Desc: not available
Url : http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20101021/fd3be834/attachment.bin 


More information about the sakai-dev mailing list