Hi It's good to hear you have managed to build the sources. I had to repeat more times the build as well to download all dependencies while building with empty local repository. The 'install' goal is sufficient to build the sources and no additional profile is necessary.
Regards Krzysztof ---------- Forwarded message ---------- From: "Mykel Alvis" <[email protected]> Date: 10 Jul 2015 18:08 Subject: Re: Settings? To: "Krzysztof Sobkowiak" <[email protected]> Cc: Hi Krzysztof, I did finally get a completely clean build to work (no repo, no settings). I'm going to suspect that there was a network issue or something else made one or more of the dependent maven repos inaccessible to me. But stubbornness and perseverance finally paid off. After 5 such completely clean tries with mvn clean install and maven 3.3.1, it finally retrieved all of its dependencies and the build and test passed. Thanks for prodding me into a re-try cycle! On a different note, is "mvn install" a sufficient build or do I need to activate additional profiles to have the full package set built? M On Thu, Jul 9, 2015 at 4:48 PM, Krzysztof Sobkowiak < [email protected]> wrote: > Hi > > I could successfully build the tag with maven 3.3.3, empty local > repository and no setings.xml file. This is my configuration: > > kso@lenovo:/tmp/servicemix$ mvn -v > Apache Maven 3.3.3 (7994120775791599e205a5524ec3e0dfe41d4a06; > 2015-04-22T13:57:37+02:00) > Maven home: /home/kso/work/pde/dev/maven/apache-maven-3.3.3 > Java version: 1.7.0_71, vendor: Oracle Corporation > Java home: /home/kso/work/pde/run/jvm/jdk1.7.0_71/jre > Default locale: en_US, platform encoding: UTF-8 > OS name: "linux", version: "3.16.0-41-generic", arch: "amd64", family: > "unix" > > It looks like you have problem with > org.jboss.dashboard-builder:dashboard-builder-bom:pom:6.2.0.Final, because > maven cannot find this dependency in Central. Indeed, this dependency is > not available in Central, but in Jboss Repository. Looking in my build log > I could find following: > > > [INFO] > ------------------------------------------------------------------------ > [INFO] Building Apache ServiceMix :: Examples :: Drools :: Simple 6.0.0 > [INFO] > ------------------------------------------------------------------------ > Downloading: > https://repo.maven.apache.org/maven2/org/jboss/dashboard-builder/dashboard-builder-bom/6.2.0.Final/dashboard-builder-bom-6.2.0.Final.pom > Downloading: > https://repository.jboss.org/nexus/content/groups/public/org/jboss/dashboard-builder/dashboard-builder-bom/6.2.0.Final/dashboard-builder-bom-6.2.0.Final.pom > Downloaded: > https://repository.jboss.org/nexus/content/groups/public/org/jboss/dashboard-builder/dashboard-builder-bom/6.2.0.Final/dashboard-builder-bom-6.2.0.Final.pom > (12 KB at 6.2 KB/sec) > [INFO] > > The dependency is downloaded from the JBoss Repository. I'm not sure why. > I have no custom settings.xml adding this repository nor any of ServiceMix > poms adds this repository as well. Probably one of the parent poms of the > Drools BOM adds the repository and it is used to resolve the missing jar. > > From any reason your build doesn't use the JBoss Repository to resolve the > missing jar. Are you behind a proxy which blocks the connection with this > repository? You haven't included this part of the build log which could > give a bit more information whether maven tried to use the JBoss Repository. > > Could you try to add the > https://repository.jboss.org/nexus/content/groups/public repository in > your settings.xml and check whether it helps? We should change our poms for > the next release to make the usage of the JBoss Repository not necessary > (if possible) > > Regards > Krzysztof > > > > > > On 09.07.2015 15:21, Mykel Alvis wrote: > > Hi Krzysztof, > I created a gist [1] that documents what's gone on so far. > > tl;dr version is that with Maven 3.3.1 and no settings.xml at all on an > updated Mac, "mvn clean install" gives me this (eventually): > [ERROR] Failed to execute goal on project drools-simple: Could not resolve > dependencies for project > org.apache.servicemix.examples:drools-simple:bundle:6.0.0: Failed to > collect dependencies at org.kie:kie-api:jar:6.2.0.Final: Failed to read > artifact descriptor for org.kie:kie-api:jar:6.2.0.Final: Could not find > artifact org.jboss.dashboard-builder:dashboard-builder-bom:pom:6.2.0.Final > in central (https://repo.maven.apache.org/maven2) -> [Help 1] > > Mykel > > [1] https://gist.github.com/mykelalvis/45bc723ef61a52087d5c > > On Wed, Jul 8, 2015 at 3:35 PM, Krzysztof Sobkowiak < > [email protected]> wrote: > > > > Hi > > > > Everything should be available in Central or in repositories included in > the pom file. Could you give more details which dependencies are missing? > Are you behind proxy? > > > > Regards > > Krzysztof > > > > On 8 Jul 2015 21:40, "Mykel Alvis" <[email protected]> wrote: > >> > >> I'm trying to build the tag for servicemix-6.0.0 from the source and I > seem > >> to be missing a number of available dependencies. Is there a specific > >> settings.xml or profile that's needed to make this work? > >> Mykel > > > -- > Krzysztof Sobkowiak > > JEE & OSS Architect > Apache Software Foundation Member > Apache ServiceMix <http://servicemix.apache.org/> Committer & PMC > Senior Solution Architect @ Capgemini SSC > <http://www.pl.capgemini-sdm.com/en/> >
