Return-Path: Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: (qmail 19259 invoked from network); 1 Apr 2008 17:38:21 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 1 Apr 2008 17:38:21 -0000 Received: (qmail 2965 invoked by uid 500); 1 Apr 2008 17:38:21 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 2936 invoked by uid 500); 1 Apr 2008 17:38:21 -0000 Mailing-List: contact dev-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list dev@activemq.apache.org Received: (qmail 2925 invoked by uid 99); 1 Apr 2008 17:38:21 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Apr 2008 10:38:21 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of chris.custine@gmail.com designates 74.125.46.156 as permitted sender) Received: from [74.125.46.156] (HELO yw-out-1718.google.com) (74.125.46.156) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Apr 2008 17:37:37 +0000 Received: by yw-out-1718.google.com with SMTP id 4so222811ywq.86 for ; Tue, 01 Apr 2008 10:37:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:references:x-google-sender-auth; bh=bmwtG91yogYGp5c9pee9Nfu490RnzFvGhc19IEZevwY=; b=Q9630mHnO/POhD77byzm/DXw7L5OtXL3hm0S/z0cFLYbcvNegzWaeCBPXwC5+MtrarfQx4YchoLPxnOWWiVbuws0V87CVdQHLRI61fTSjoKJTHrkcUmsc2JWsbR49UkURsfYRYXSrjqog8RmpSqg0A7WxN1NOVlJN0L+yikaYgg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:references:x-google-sender-auth; b=gRHGVKrk6evHMi0eBTto8tP5iIYaSfnL6Ddxx148LNXzGAs/hSqPXD8/lhOx75b3fnJXf0BQlJv0m1MXa19TL+1e1E28c64gei5QeFBflTlVsx8SB+5rYytPTWfmIoLYge/9Em3fDyMTzdipHXb3ufyrvd+5jbQ+H01rN5e+Wdc= Received: by 10.142.108.14 with SMTP id g14mr2862111wfc.52.1207071462753; Tue, 01 Apr 2008 10:37:42 -0700 (PDT) Received: by 10.143.125.4 with HTTP; Tue, 1 Apr 2008 10:37:42 -0700 (PDT) Message-ID: <43b026c70804011037p626bf51cp9c52c16caf9406e1@mail.gmail.com> Date: Tue, 1 Apr 2008 11:37:42 -0600 From: "Chris Custine" Sender: chris.custine@gmail.com To: dev@activemq.apache.org Subject: Re: Build Failure In-Reply-To: <15FAB345-718C-4202-A65A-0FD96FF45641@comcast.net> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_18509_21701204.1207071462700" References: <8674D71026D5C848831DB7CA34B1C75802426CF6@fds1wmail01.funddevelopmentservices.com> <7b3355cb0803281255n7311fa05je272b50b6b7b6e0f@mail.gmail.com> <6FA8F716-4992-4611-8EBD-1FFDD8F50E79@comcast.net> <7207DE17-4E7C-4C0C-B197-395508E2A722@yahoo.com> <15FAB345-718C-4202-A65A-0FD96FF45641@comcast.net> X-Google-Sender-Auth: 44fd6f4183b86d69 X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_18509_21701204.1207071462700 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline The problem is running the build with -Dmaven.test.skip=true. This causes maven to not build the test jars and when you zapped your repo you lost some old ones that were sitting around and now the build fails. Surefire has changed recently so depending on which version is being used, you can try -Dtest=false which is a hack to make the tests compile, but not execute since you are naming a non-existent test, or if you have the newer version of Surefire that will cause a build failure in which case you can use - Dmaven.test.skip.exec=true which allows the tests to compile but won't run them. Chris On Tue, Apr 1, 2008 at 10:33 AM, Daryl Richter wrote: > David- > > On Apr 1, 2008, at 11:18 AM, David Jencks wrote: > > > > On Apr 1, 2008, at 6:58 AM, Daryl Richter wrote: > > > >> All- > >> > >> Ok, so I managed to get the trunk of ActiveMQ to build against a > >> new repository. In order to do this, I had to go through all the > >> poms and take out the following new elements wherever they appeared: > >> > >> test-jar > >> > >> Why were these elements introduced? What am i now missing that I > >> have removed them? > > > > It looks to me as if they have been there for a long time... they > > are in the 4.1 branch for instance. > > > > I suspect they are intended to be test in > > order to pick up test jars produced by the maven-jar-plugin test- > > jar goal from other projects/sub-projects. > > > > Which maven version are you using? Maybe some stricter checking in > > a more recent version has started to object to these. > > Thanks for the response. I did recently upgrade maven to 2.0.8, > perhaps that's it? > > I build AMQ off the trunk every week. I wasn't having any problems > until I dumped my .m2/repository. > > > > > > I'll need to fix these shortly in at least the 4.1 branch. If I > > can figure out definitely what is supposed to be going on I'll fix > > trunk also. > > > > thanks > > david jencks > >> > >> > >> On Mar 28, 2008, at 3:55 PM, Bruce Snyder wrote: > >>> On Fri, Mar 28, 2008 at 11:40 AM, Daryl Richter > >>> wrote: > >>>> Guys- > >>>> > >>>> Can others successfully build from a clean .m2/repository? I > >>>> was able > >>>> to just last week but now I get this: > >>>> > >>>> [220:~/Code/Java/activemq] ngzax% mvn -Dmaven.test.skip=true > >>>> install > >>>> [INFO] Scanning for projects... > >>>> > >>>> [INFO] > >>>> > >>>> ------------------------------------------------------------------- > >>>> ----- > >>>> [ERROR] BUILD ERROR > >>>> [INFO] > >>>> > >>>> ------------------------------------------------------------------- > >>>> ----- > >>>> [INFO] Failed to resolve artifact. > >>>> > >>>> Missing: > >>>> ---------- > >>>> 1) org.apache.activemq:activemq-core:test-jar:tests:5.1-SNAPSHOT > >>>> > >>>> Try downloading the file manually from the project website. > >>>> > >>>> Then, install it using the command: > >>>> mvn install:install-file -DgroupId=org.apache.activemq > >>>> -DartifactId=activemq-core -Dversion=5.1-SNAPSHOT - > >>>> Dclassifier=tests > >>>> -Dpackaging=test-jar -Dfile=/path/to/file > >>>> > >>>> Alternatively, if you host your own repository you can deploy > >>>> the file > >>>> there: > >>>> mvn deploy:deploy-file -DgroupId=org.apache.activemq > >>>> -DartifactId=activemq-core -Dversion=5.1-SNAPSHOT - > >>>> Dclassifier=tests > >>>> -Dpackaging=test-jar -Dfile=/path/to/file -Durl=[url] > >>>> -DrepositoryId=[id] > >>>> > >>>> Path to dependency: > >>>> 1) org.apache.activemq:activemq-console:jar:5.1-SNAPSHOT > >>>> 2) org.apache.activemq:activemq-core:test-jar:tests:5.1- > >>>> SNAPSHOT > >>>> > >>>> ---------- > >>>> 1 required artifact is missing. > >>>> > >>>> for artifact: > >>>> org.apache.activemq:activemq-console:jar:5.1-SNAPSHOT > >>>> > >>>> from the specified remote repositories: > >>>> repo1.maven (http://repo1.maven.org/maven2/), > >>>> central (http://repo1.maven.org/maven2), > >>>> apache.snapshots > >>>> (http://people.apache.org/repo/m2-snapshot-repository), > >>>> apache.incubating.releases > >>>> (http://people.apache.org/repo/m2-incubating-repository) > >>> > >>> I'm see a different failure: > >>> > >>> [INFO] > >>> -------------------------------------------------------------------- > >>> ---- > >>> [ERROR] FATAL ERROR > >>> [INFO] > >>> -------------------------------------------------------------------- > >>> ---- > >>> [INFO] com.thoughtworks.qdox.parser.ParseException: syntax error > >>> @[19,1] in file:/Users/bsnyder/src/activemq/trunk/activemq-core/ > >>> src/main/java/org/apache/activemq/broker/jmx/BrokerView.java > >>> [INFO] > >>> -------------------------------------------------------------------- > >>> ---- > >>> [INFO] Trace > >>> com.thoughtworks.qdox.parser.ParseException: syntax error @[19,1] in > >>> file:/Users/bsnyder/src/activemq/trunk/activemq-core/src/main/ > >>> java/org/apache/activemq/broker/jmx/BrokerView.java > >>> at org.apache.xbean.maven.XBeanMojo.execute > >>> (XBeanMojo.java:202) > >>> at > >>> org.apache.maven.plugin.DefaultPluginManager.executeMojo > >>> (DefaultPluginManager.java:447) > >>> at > >>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals > >>> (DefaultLifecycleExecutor.java:539) > >>> at > >>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithL > >>> ifecycle(DefaultLifecycleExecutor.java:480) > >>> at > >>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal > >>> (DefaultLifecycleExecutor.java:459) > >>> at > >>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHa > >>> ndleFailures(DefaultLifecycleExecutor.java:311) > >>> at > >>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegme > >>> nts(DefaultLifecycleExecutor.java:278) > >>> at > >>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute > >>> (DefaultLifecycleExecutor.java:143) > >>> at org.apache.maven.DefaultMaven.doExecute > >>> (DefaultMaven.java:333) > >>> at org.apache.maven.DefaultMaven.execute > >>> (DefaultMaven.java:126) > >>> at org.apache.maven.cli.MavenCli.main(MavenCli.java:282) > >>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native > >>> Method) > >>> at sun.reflect.NativeMethodAccessorImpl.invoke > >>> (NativeMethodAccessorImpl.java:39) > >>> at sun.reflect.DelegatingMethodAccessorImpl.invoke > >>> (DelegatingMethodAccessorImpl.java:25) > >>> at java.lang.reflect.Method.invoke(Method.java:585) > >>> at org.codehaus.classworlds.Launcher.launchEnhanced > >>> (Launcher.java:315) > >>> at org.codehaus.classworlds.Launcher.launch(Launcher.java: > >>> 255) > >>> at org.codehaus.classworlds.Launcher.mainWithExitCode > >>> (Launcher.java:430) > >>> at org.codehaus.classworlds.Launcher.main(Launcher.java:375) > >>> Caused by: com.thoughtworks.qdox.parser.ParseException: syntax error > >>> @[19,1] in file:/Users/bsnyder/src/activemq/trunk/activemq-core/ > >>> src/main/java/org/apache/activemq/broker/jmx/BrokerView.java > >>> at com.thoughtworks.qdox.parser.impl.Parser.yyerror > >>> (Parser.java:638) > >>> at com.thoughtworks.qdox.parser.impl.Parser.yyparse > >>> (Parser.java:747) > >>> at com.thoughtworks.qdox.parser.impl.Parser.parse > >>> (Parser.java:619) > >>> at com.thoughtworks.qdox.JavaDocBuilder.addSource > >>> (JavaDocBuilder.java:300) > >>> at com.thoughtworks.qdox.JavaDocBuilder.addSource > >>> (JavaDocBuilder.java:316) > >>> at com.thoughtworks.qdox.JavaDocBuilder.addSource > >>> (JavaDocBuilder.java:312) > >>> at > >>> org.apache.xbean.spring.generator.QdoxMappingLoader.listAllFileNames > >>> (QdoxMappingLoader.java:533) > >>> at > >>> org.apache.xbean.spring.generator.QdoxMappingLoader.listAllFileNames > >>> (QdoxMappingLoader.java:531) > >>> at > >>> org.apache.xbean.spring.generator.QdoxMappingLoader.listAllFileNames > >>> (QdoxMappingLoader.java:531) > >>> at > >>> org.apache.xbean.spring.generator.QdoxMappingLoader.listAllFileNames > >>> (QdoxMappingLoader.java:531) > >>> at > >>> org.apache.xbean.spring.generator.QdoxMappingLoader.listAllFileNames > >>> (QdoxMappingLoader.java:531) > >>> at > >>> org.apache.xbean.spring.generator.QdoxMappingLoader.listAllFileNames > >>> (QdoxMappingLoader.java:531) > >>> at > >>> org.apache.xbean.spring.generator.QdoxMappingLoader.getSourceFiles > >>> (QdoxMappingLoader.java:516) > >>> at > >>> org.apache.xbean.spring.generator.QdoxMappingLoader.loadNamespaces > >>> (QdoxMappingLoader.java:92) > >>> at org.apache.xbean.maven.XBeanMojo.execute > >>> (XBeanMojo.java:173) > >>> ... 18 more > >>> --- Nested Exception --- > >>> com.thoughtworks.qdox.parser.ParseException: syntax error @[19,1] in > >>> file:/Users/bsnyder/src/activemq/trunk/activemq-core/src/main/ > >>> java/org/apache/activemq/broker/jmx/BrokerView.java > >>> at com.thoughtworks.qdox.parser.impl.Parser.yyerror > >>> (Parser.java:638) > >>> at com.thoughtworks.qdox.parser.impl.Parser.yyparse > >>> (Parser.java:747) > >>> at com.thoughtworks.qdox.parser.impl.Parser.parse > >>> (Parser.java:619) > >>> at com.thoughtworks.qdox.JavaDocBuilder.addSource > >>> (JavaDocBuilder.java:300) > >>> at com.thoughtworks.qdox.JavaDocBuilder.addSource > >>> (JavaDocBuilder.java:316) > >>> at com.thoughtworks.qdox.JavaDocBuilder.addSource > >>> (JavaDocBuilder.java:312) > >>> at > >>> org.apache.xbean.spring.generator.QdoxMappingLoader.listAllFileNames > >>> (QdoxMappingLoader.java:533) > >>> at > >>> org.apache.xbean.spring.generator.QdoxMappingLoader.listAllFileNames > >>> (QdoxMappingLoader.java:531) > >>> at > >>> org.apache.xbean.spring.generator.QdoxMappingLoader.listAllFileNames > >>> (QdoxMappingLoader.java:531) > >>> at > >>> org.apache.xbean.spring.generator.QdoxMappingLoader.listAllFileNames > >>> (QdoxMappingLoader.java:531) > >>> at > >>> org.apache.xbean.spring.generator.QdoxMappingLoader.listAllFileNames > >>> (QdoxMappingLoader.java:531) > >>> at > >>> org.apache.xbean.spring.generator.QdoxMappingLoader.listAllFileNames > >>> (QdoxMappingLoader.java:531) > >>> at > >>> org.apache.xbean.spring.generator.QdoxMappingLoader.getSourceFiles > >>> (QdoxMappingLoader.java:516) > >>> at > >>> org.apache.xbean.spring.generator.QdoxMappingLoader.loadNamespaces > >>> (QdoxMappingLoader.java:92) > >>> at org.apache.xbean.maven.XBeanMojo.execute > >>> (XBeanMojo.java:173) > >>> at > >>> org.apache.maven.plugin.DefaultPluginManager.executeMojo > >>> (DefaultPluginManager.java:447) > >>> at > >>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals > >>> (DefaultLifecycleExecutor.java:539) > >>> at > >>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithL > >>> ifecycle(DefaultLifecycleExecutor.java:480) > >>> at > >>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal > >>> (DefaultLifecycleExecutor.java:459) > >>> at > >>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHa > >>> ndleFailures(DefaultLifecycleExecutor.java:311) > >>> at > >>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegme > >>> nts(DefaultLifecycleExecutor.java:278) > >>> at > >>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute > >>> (DefaultLifecycleExecutor.java:143) > >>> at org.apache.maven.DefaultMaven.doExecute > >>> (DefaultMaven.java:333) > >>> at org.apache.maven.DefaultMaven.execute > >>> (DefaultMaven.java:126) > >>> at org.apache.maven.cli.MavenCli.main(MavenCli.java:282) > >>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native > >>> Method) > >>> at sun.reflect.NativeMethodAccessorImpl.invoke > >>> (NativeMethodAccessorImpl.java:39) > >>> at sun.reflect.DelegatingMethodAccessorImpl.invoke > >>> (DelegatingMethodAccessorImpl.java:25) > >>> at java.lang.reflect.Method.invoke(Method.java:585) > >>> at org.codehaus.classworlds.Launcher.launchEnhanced > >>> (Launcher.java:315) > >>> at org.codehaus.classworlds.Launcher.launch(Launcher.java: > >>> 255) > >>> at org.codehaus.classworlds.Launcher.mainWithExitCode > >>> (Launcher.java:430) > >>> at org.codehaus.classworlds.Launcher.main(Launcher.java:375) > >>> > >>> > >>> > >>> Bruce > >>> -- > >>> perl -e 'print unpack("u30","D0G)U8V4\@4VYY9&5R\"F)R=6-E+G-N>61E >>> \!G;6%I;\"YC;VT*" > >>> );' > >>> > >>> Apache ActiveMQ - http://activemq.org/ > >>> Apache Camel - http://activemq.org/camel/ > >>> Apache ServiceMix - http://servicemix.org/ > >>> Apache Geronimo - http://geronimo.apache.org/ > >>> > >>> Blog: http://bruceblog.org/ > >> > >> -- > >> Daryl > >> http://itsallsemantics.com > >> > >> > > > > -- > Daryl > http://itsallsemantics.com > > "We want great men who, when fortune frowns, will not be discouraged." > -- Colonel Henry Knox, 1776 > > > > > > ------=_Part_18509_21701204.1207071462700--