12 Replies Latest reply on Sep 10, 2008 3:53 AM by dimitris

    Not picking up sources consistenly?

    starksm64

      Paul, can you take a look at the changes I made to download the source automatically in the jbossas/thirdparty pom.xml? I'm not seeing some sources get downloaded when I just do a mvn package, while they are getting downloaded when I do a mvn -Pdownload-sources package. We wanted the sources downloaded by default.

        • 1. Re: Not picking up sources consistenly?
          pgier

          I changed the pom to automatically download the sources. The source download can be skipped using this

          mvn package -Dskip-download-sources




          • 2. Re: Not picking up sources consistenly?
            dimitris

            I've reverted the change a few days ago, because the hudson builds were crawling downloading the sources each and every time.

            • 3. Re: Not picking up sources consistenly?
              dimitris

              For AS trunk, that is. There was a discussion in the AS & QA list.

              • 4. Re: Not picking up sources consistenly?
                starksm64

                Can we just override that in the hudson builds then? We need the source downloaded by default for the average developer usage.

                • 5. Re: Not picking up sources consistenly?
                  dimitris

                  That's what I've asked by got no response.

                  • 6. Re: Not picking up sources consistenly?
                    pgier

                    You should be able to just use the above option to skip the source download in hudson. So something like this should work:

                    ./build.sh -Dskip-download-sources

                    If you point me to which hudson build you want to change, I can do it.

                    • 7. Re: Not picking up sources consistenly?
                      pgier

                      Correction to my previous post: the shell script doesn't seem to pass the parameter through directly to maven so if you turn on the default source download, then you can disable it with this.

                      ./build.sh -Dthirdparty.maven.opts="-Dskip-download-sources"


                      • 8. Re: Not picking up sources consistenly?
                        dimitris

                        Ok, I've re-enabled the downloading of sources in AS trunk.

                        Now you've got to disable it on all 7 hudson runs:
                        http://hudson.qa.jboss.com/hudson/view/JBoss%20AS/

                        JBoss-AS-5.0.x
                        JBoss-AS-5.0.x-TestSuite-jrockit15
                        JBoss-AS-5.0.x-TestSuite-sun15
                        JBoss-AS-5.0.x-TestSuite-sun15-sun16
                        JBoss-AS-5.0.x-TestSuite-sun16-sun16
                        JBoss-AS-5.0.x-sun16
                        JBoss-AS-5.0.x-windows

                        And now that the sources are downloaded you've got to fix this, too:
                        https://jira.jboss.org/jira/browse/JBAS-5898 :-)

                        • 9. Re: Not picking up sources consistenly?

                           

                          "dimitris@jboss.org" wrote:
                          Ok, I've re-enabled the downloading of sources in AS trunk.


                          This is ridiculous. It is now trying to download sources on every build I do
                          and it is not incremental, or at least something is very slow.
                          It is checking both the maven and jboss repositories for every jar.

                          There's also clearly an issue with irrelevance as well:

                          4.0.x and 4.2.x sources referenced from the jboss 5 build????
                          The jboss-common reference is well dated as well.

                          What's causing this?

                           [java] Downloading: http://repository.jboss.org/maven2/jboss/jboss-j2ee/4.0.2/jboss-j2ee-4.0.2-sources.jar
                           [java] Downloading: http://repo1.maven.org/maven2/jboss/jboss-j2ee/4.0.2/jboss-j2ee-4.0.2-sources.jar
                           [java] Downloading: http://repository.jboss.org/maven2/jboss/jboss-jmx/4.2.2.GA/jboss-jmx-4.2.2.GA-sources.jar
                           [java] Downloading: http://repo1.maven.org/maven2/jboss/jboss-jmx/4.2.2.GA/jboss-jmx-4.2.2.GA-sources.jar
                           [java] Downloading: http://repository.jboss.org/maven2/jboss/jboss-system/4.2.2.GA/jboss-system-4.2.2.GA-sources.jar
                           [java] Downloading: http://repo1.maven.org/maven2/jboss/jboss-system/4.2.2.GA/jboss-system-4.2.2.GA-sources.jar
                           [java] Downloading: http://repository.jboss.org/maven2/jboss/common/jboss-common-client/1.2.1.GA-brew/jboss-common-client-1.2.1.GA-brew-sources.jar
                           [java] Downloading: http://repo1.maven.org/maven2/jboss/common/jboss-common-client/1.2.1.GA-brew/jboss-common-client-1.2.1.GA-brew-sources.jar
                          
                          etc.
                          


                          • 10. Re: Not picking up sources consistenly?
                            pgier

                            It's not trying to download the sources every time for me. The second time I run the build it just lists the sources that are already downloaded.

                            It looks like the jboss 4 stuff is coming from a dependency in org.jboss.jaxr:juddi-saaj and org.jboss.jaxr:juddi-service. Do we just need exclusions for these, or should the dependency be changed?

                            • 11. Re: Not picking up sources consistenly?

                               

                              "pgier" wrote:
                              It's not trying to download the sources every time for me. The second time I run the build it just lists the sources that are already downloaded.


                              It's trying to do something. After 5 minutes (and not getting very far through the list)
                              I started looking for how to disable it (not obvious from the pom.xml) and found this thread.

                              • 12. Re: Not picking up sources consistenly?
                                dimitris

                                Paul, can you look at https://jira.jboss.org/jira/browse/JBAS-5898 and make sure the hudson runs are configured properly?