[cle-release-team] jobscheduler build fun

Aaron Zeckoski azeckoski at unicon.net
Mon Feb 25 05:28:04 PST 2013


Anyone know anything about the way the jobscheduler build is setup?
It has an odd profile in place which only builds when tests are
enabled however deploy depends on these and therefore fails to build
if they are not there. This happens to work out OK if you have the
sakai maven repo (or other repo with the artifacts) available to your
build but if you are building offline with a repo with no sakai
artifacts, it simply fails like so:

ERROR] Failed to execute goal on project scheduler-assembly: Could not
resolve dependencies for project
org.sakaiproject.scheduler:scheduler-assembly:pom:2.9: The following
artifacts could not be resolved:
org.sakaiproject.scheduler:scheduler-test-component:war:2.9,
org.sakaiproject.scheduler:scheduler-test-component-shared:jar:2.9:
The repository system is offline but the artifact
org.sakaiproject.scheduler:scheduler-test-component:war:2.9 is not
available in the local repository. -> [Help 1]

As far as I can tell, there should be no profiles here are all and the
default should be the second one.

    <profiles>
        <profile>
            <id>default</id>
            <activation>
                <activeByDefault>true</activeByDefault>
            </activation>
            <modules>
                <module>scheduler-api</module>
                <module>scheduler-deploy</module>
                <module>scheduler-component</module>
                <module>scheduler-component-shared</module>
                <module>scheduler-events-model</module>
                <module>scheduler-tool</module>
            </modules>
         </profile>
         <profile>
            <id>testing</id>
            <activation>
                <property>
                    <name>!maven.test.skip</name>
                </property>
            </activation>
            <modules>
                <module>scheduler-api</module>
                <module>scheduler-deploy</module>
                <module>scheduler-component</module>
                <module>scheduler-component-shared</module>
                <module>scheduler-test-component</module>
                <module>scheduler-test-component-shared</module>
                <module>scheduler-events-model</module>
                <module>scheduler-tool</module>
            </modules>
         </profile>
    </profiles>

If no one disagrees, I plan to remove the profiles later today (or
just make them both identical).
-AZ


-- 
Aaron Zeckoski - Software Architect - http://tinyurl.com/azprofile



More information about the cle-release-team mailing list