You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by Gary Jones <ac...@garydjones.name> on 2009/03/06 15:22:54 UTC

Maven related error during building

I followed the instructions at
http://activemq.apache.org/contributing.html mostly without problem
until I received:

  Downloading: http://people.apache.org/repo/m2-snapshot-repository/org/apache/activemq/activemq-core/5.3-SNAPSHOT/activemq-core-5.3-SNAPSHOT-tests.jar
  [INFO] ------------------------------------------------------------------------
  [ERROR] BUILD ERROR
  [INFO] ------------------------------------------------------------------------
  [INFO] Failed to resolve artifact.

  Missing:
  ----------
  1) org.apache.activemq:activemq-core:jar:tests:5.3-SNAPSHOT
[snip]
  ----------
  1 required artifact is missing.

  for artifact:
    org.apache.activemq:activemq-ra:bundle:5.3-SNAPSHOT

Does anyone have any ideas? The jar isn't available with a web browser,
either.

Thanks,
Gary

Re: Maven related error during building

Posted by Gary Jones <ac...@garydjones.name>.
On Sun, Mar 08, 2009 at 04:26:25PM +0100, I wrote:
> On Sun, Mar 08, 2009 at 09:51:20AM -0400, Hiram Chirino wrote:
> > See: http://maven.apache.org/guides/mini/guide-ide-eclipse.html
> > 
> > basically the M2_REPO path needs to be configured in eclipse.
> 
> It already is. The value is as would be expected on a German language
> Windows installation: C:\Dokumente und Einstellungen\gary\.m2\repository
> Something to do with spaces in the directory name? I can't see why the
> tools would not consider this (nor why it would only affect those
> dependencies which do not have .jar files in the local repo), since it
> is the default location, but I will try changing the location and see
> what happens. If you don't see another email from me it is safe to
> assume it didn't work and I am still being frustrated by maven.

Whoo! Well I have no idea why that would have worked, but doing the
above (moving the local repo), followed by mvn eclipse:eclipse on the
command line, followed by clean/build in Eclipse has sorted it
out. Let's just hope it really is a solution, rather than just chance
(maven and I don't have a very easy relationship...).

-- 
Thanks for your help,
Gary

Re: Maven related error during building

Posted by Gary Jones <ac...@garydjones.name>.
On Sun, Mar 08, 2009 at 09:51:20AM -0400, Hiram Chirino wrote:
> See: http://maven.apache.org/guides/mini/guide-ide-eclipse.html
> 
> basically the M2_REPO path needs to be configured in eclipse.

It already is. The value is as would be expected on a German language
Windows installation: C:\Dokumente und Einstellungen\gary\.m2\repository
Something to do with spaces in the directory name? I can't see why the
tools would not consider this (nor why it would only affect those
dependencies which do not have .jar files in the local repo), since it
is the default location, but I will try changing the location and see
what happens. If you don't see another email from me it is safe to
assume it didn't work and I am still being frustrated by maven.

It seems to affect just three dependencies (logkit-1.0.1.jar,
avalon-framework-4.1.3.jar and servlet-api-2.3.jar) but it causes nearly
50 errors in the Eclipse projects altogether.

I seem to have Maven Embedder 2.1.0.20080530-2300, and Maven Integration
for Eclipse 0.9.7.200902090947 installed, if that's important.

> On Sun, Mar 8, 2009 at 3:53 AM, Gary Jones <ac...@garydjones.name> wrote:

> > In Eclipse I now get:
> >  Project 'maven-activemq-plugin' is missing required library: '<M2_REPO>\logkit\logkit\1.0.1\logkit-1.0.1.jar'
> > (and many other similar errors)
> >
> > Does anyone have any ideas? The jar files are definitly not there -
> > should they be? What step is supposed to get them, in Eclipse or before
> > that? Has some step been missed out (either by me or by the
> > documentation)?

Re: Maven related error during building

Posted by Hiram Chirino <ch...@gmail.com>.
See: http://maven.apache.org/guides/mini/guide-ide-eclipse.html

basically the M2_REPO path needs to be configured in eclipse.

On Sun, Mar 8, 2009 at 3:53 AM, Gary Jones <ac...@garydjones.name> wrote:
> It seems I spoke too soon.
>
> In Eclipse I now get:
>  Project 'maven-activemq-plugin' is missing required library: '<M2_REPO>\logkit\logkit\1.0.1\logkit-1.0.1.jar'
> (and many other similar errors)
>
> Does anyone have any ideas? The jar files are definitly not there -
> should they be? What step is supposed to get them, in Eclipse or before
> that? Has some step been missed out (either by me or by the
> documentation)?
>
> On Fri, Mar 06, 2009 at 09:17:32PM +0100, Gary Jones wrote:
>> Okay, it works now, thanks.
>



-- 
Regards,
Hiram

Blog: http://hiramchirino.com

Open Source SOA
http://fusesource.com/

Re: Maven related error during building

Posted by Gary Jones <ac...@garydjones.name>.
It seems I spoke too soon.

In Eclipse I now get:
  Project 'maven-activemq-plugin' is missing required library: '<M2_REPO>\logkit\logkit\1.0.1\logkit-1.0.1.jar'
(and many other similar errors)

Does anyone have any ideas? The jar files are definitly not there -
should they be? What step is supposed to get them, in Eclipse or before
that? Has some step been missed out (either by me or by the
documentation)?

On Fri, Mar 06, 2009 at 09:17:32PM +0100, Gary Jones wrote:
> Okay, it works now, thanks.

Re: Maven related error during building

Posted by Gary Jones <ac...@garydjones.name>.
On Fri, Mar 06, 2009 at 11:33:15AM -0500, Hiram Chirino wrote:
> note that the updated procedure slightly changes the mvn install command.

Okay, it works now, thanks. Not sure what was going on earlier, but it
does work now, anyway, so I'm not so worried :-)

-- 
Thanks again,
Gary

Re: Maven related error during building

Posted by Hiram Chirino <ch...@gmail.com>.
note that the updated procedure slightly changes the mvn install command.

On Fri, Mar 6, 2009 at 10:45 AM, Gary Jones <ac...@garydjones.name> wrote:
> Hi,
>
> On Fri, Mar 06, 2009 at 10:23:20AM -0500, Hiram Chirino wrote:
>> Actually website updates take about an hour to roll out to the
>> mirrors.  You see the updated build procedure here:
>> http://cwiki.apache.org/confluence/display/ACTIVEMQ/Contributing
>
> You mean the mvn eclipse:eclipse, I guess? I now get the error I
> mentioned before at that step instead of at the
>  mvn -Dmaven.test.skip=true install
> step :-(
>
> Or could it now be somehow related to my previous attempts (some stale
> files or something)? I mean it really looks from the error messages like
> a missing file in
> people.apache.org/repo/m2-snapshot-repository/org/apache/activemq/activemq-core/5.3-SNAPSHOT/
> but... maven... hmm...
>
> Thanks,
> Gary
>



-- 
Regards,
Hiram

Blog: http://hiramchirino.com

Open Source SOA
http://fusesource.com/

Re: Maven related error during building

Posted by Gary Jones <ac...@garydjones.name>.
Hi,

On Fri, Mar 06, 2009 at 10:23:20AM -0500, Hiram Chirino wrote:
> Actually website updates take about an hour to roll out to the
> mirrors.  You see the updated build procedure here:
> http://cwiki.apache.org/confluence/display/ACTIVEMQ/Contributing

You mean the mvn eclipse:eclipse, I guess? I now get the error I
mentioned before at that step instead of at the
  mvn -Dmaven.test.skip=true install
step :-(

Or could it now be somehow related to my previous attempts (some stale
files or something)? I mean it really looks from the error messages like
a missing file in
people.apache.org/repo/m2-snapshot-repository/org/apache/activemq/activemq-core/5.3-SNAPSHOT/
but... maven... hmm...

Thanks,
Gary

Re: Maven related error during building

Posted by Hiram Chirino <ch...@gmail.com>.
Actually website updates take about an hour to roll out to the
mirrors.  You see the updated build procedure here:
http://cwiki.apache.org/confluence/display/ACTIVEMQ/Contributing

On Fri, Mar 6, 2009 at 10:22 AM, Hiram Chirino <ch...@gmail.com> wrote:
> Old build instructions.. I just updated the info.  Please try that.
> Should work better.
>
> On Fri, Mar 6, 2009 at 9:22 AM, Gary Jones <ac...@garydjones.name> wrote:
>> I followed the instructions at
>> http://activemq.apache.org/contributing.html mostly without problem
>> until I received:
>>
>>  Downloading: http://people.apache.org/repo/m2-snapshot-repository/org/apache/activemq/activemq-core/5.3-SNAPSHOT/activemq-core-5.3-SNAPSHOT-tests.jar
>>  [INFO] ------------------------------------------------------------------------
>>  [ERROR] BUILD ERROR
>>  [INFO] ------------------------------------------------------------------------
>>  [INFO] Failed to resolve artifact.
>>
>>  Missing:
>>  ----------
>>  1) org.apache.activemq:activemq-core:jar:tests:5.3-SNAPSHOT
>> [snip]
>>  ----------
>>  1 required artifact is missing.
>>
>>  for artifact:
>>    org.apache.activemq:activemq-ra:bundle:5.3-SNAPSHOT
>>
>> Does anyone have any ideas? The jar isn't available with a web browser,
>> either.
>>
>> Thanks,
>> Gary
>>
>
>
>
> --
> Regards,
> Hiram
>
> Blog: http://hiramchirino.com
>
> Open Source SOA
> http://fusesource.com/
>



-- 
Regards,
Hiram

Blog: http://hiramchirino.com

Open Source SOA
http://fusesource.com/

Re: Maven related error during building

Posted by Hiram Chirino <ch...@gmail.com>.
Old build instructions.. I just updated the info.  Please try that.
Should work better.

On Fri, Mar 6, 2009 at 9:22 AM, Gary Jones <ac...@garydjones.name> wrote:
> I followed the instructions at
> http://activemq.apache.org/contributing.html mostly without problem
> until I received:
>
>  Downloading: http://people.apache.org/repo/m2-snapshot-repository/org/apache/activemq/activemq-core/5.3-SNAPSHOT/activemq-core-5.3-SNAPSHOT-tests.jar
>  [INFO] ------------------------------------------------------------------------
>  [ERROR] BUILD ERROR
>  [INFO] ------------------------------------------------------------------------
>  [INFO] Failed to resolve artifact.
>
>  Missing:
>  ----------
>  1) org.apache.activemq:activemq-core:jar:tests:5.3-SNAPSHOT
> [snip]
>  ----------
>  1 required artifact is missing.
>
>  for artifact:
>    org.apache.activemq:activemq-ra:bundle:5.3-SNAPSHOT
>
> Does anyone have any ideas? The jar isn't available with a web browser,
> either.
>
> Thanks,
> Gary
>



-- 
Regards,
Hiram

Blog: http://hiramchirino.com

Open Source SOA
http://fusesource.com/