Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Beginning Spring Framework 2 ISBN: 978-0-470-10161-2
This is the forum to discuss the Wrox book Beginning Spring Framework 2 by Thomas Van de Velde, Bruce Snyder, Christian Dupuis, Sing Li, Anne Horton, Naveen Balani; ISBN: 9780470101612
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning Spring Framework 2 ISBN: 978-0-470-10161-2 section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old December 25th, 2007, 08:38 PM
Registered User
Points: 42, Level: 1
Points: 42, Level: 1 Points: 42, Level: 1 Points: 42, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Dec 2007
Location: , , .
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Build Error

INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] The plugin 'org.codehaus.mojo:xfire-maven-plugin' does not exist or no valid version could be found
[INFO] ------------------------------------------------------------------------

Can anybody please help me solve above

Reply With Quote
  #2 (permalink)  
Old December 28th, 2007, 10:27 AM
Registered User
 
Join Date: Dec 2007
Location: , MA, USA.
Posts: 3
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via AIM to racoco
Default

I am having exactly the same problem.

Interestingly, the site

http://mojo.codehaus.org/xfire-maven-plugin/

exists. Not sure why the needed downloads are missing. maybe we need to send a help request to codehaus?


Reply With Quote
The Following User Says Thank You to racoco For This Useful Post:
anwarraja (March 25th, 2009)
  #3 (permalink)  
Old December 28th, 2007, 01:51 PM
Registered User
 
Join Date: Dec 2007
Location: , MA, USA.
Posts: 3
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via AIM to racoco
Default

here is some useful info from:
http://mail-archives.apache.org/mod_....nabble.com%3E

------------

Good day, Rod,

Sorry about that... I have just taken a look at the repository itself and
its seems that the jar of xfire-maven-plugin is not there. Then I guess the
only thing left to do is to checkout the source, and build it yourself.

Cheers,
Franz


Rod Mclaughlin-2 wrote:
>
> *I put this both in <repositories> and <pluginRepositories> and it makes
> no difference*
> <id>Codehaus Snapshots</id>
> <url>http://snapshots.repository.codehaus.org/</url>
> <snapshots>
> <enabled>true</enabled>
> </snapshots>
> <releases>
> <enabled>false</enabled>
> </releases>
> it still says
> *The plugin 'org.codehaus.mojo:xfire-maven-plugin' does not exist or no
> valid version could be found*
>
>
>
>
> franz see wrote:
>> Good day to you, Rod,
>>
>> The xfire-maven-plugin is in codehaus mojo-sandbox. So you either
>> checkout
>> the source and build it, or use the snapshot version deployed
>>
>> <pluginRepository>
>> <id>Codehaus Snapshots</id>
>> <url>http://snapshots.repository.codehaus.org/</url>
>> <snapshots>
>> <enabled>true</enabled>
>> </snapshots>
>> <releases>
>> <enabled>false</enabled>
>> </releases>
>> </pluginRepository>
>>
>> See [1].
>>
>> Cheers,
>> Franz
>>
>> [1] http://mojo.codehaus.org/using-sandbox-plugins.html
>>
>>
>> Rod Mclaughlin-2 wrote:
>>
>>> Wayne Fay wrote:
>>>
>>>> *Without knowing anything more about your project or seeing your
>>>> pom.xml files, I assume you've declared <repositories> but not
>>>> <pluginRepositories> to match. *
>>>>
>>>> Wayne
>>>>
>>> Thanks. Even if I do
>>> <pluginRepositories>
>>> <pluginRepository>
>>> <id>central</id>
>>> <name>Maven Plugin Repository</name>
>>> <url>http://repo1.maven.org/maven2</url>
>>> <layout>default</layout>
>>> <snapshots>
>>> <enabled>false</enabled>
>>> </snapshots>
>>> </pluginRepository>
>>> </pluginRepositories>
>>> it still says *The plugin 'org.apache.maven.plugins:maven-xfire-plugin'
>>> does not exist or no valid version could be found*
>>>
>>> *Craig S. Cottingham: Here it says it's looking for maven-xfire-plugin,
>>> but...
>>> ...here you declare xfire-maven-plugin. Was that a typo (transcribe-o?),
>>> or could this be part of the problem you're seeing? *
>>> It makes no difference whether it says
>>> <artifactId>PLUGINNAME-maven-plugin or maven-PLUGINNAME-plugin in the
>>> plugin section of the POM, it always says
>>> org.apache.maven.plugins:maven-PLUGINNAME-plugin not found for any
>>> plugin.
>>>
>>> ---------------------------------------------------------------------
>>
>>
>
>
> --
> Rod McLaughlin
> Omnimedix Institute
> Rod.McLaughlin@omnimedix.org
>
>
>

--
View this message in context: http://www.nabble.com/Access-depende....html#a8977315
Sent from the Maven - Users mailing list archive at Nabble.com.



Reply With Quote
  #4 (permalink)  
Old December 28th, 2007, 11:29 PM
Registered User
 
Join Date: Dec 2007
Location: Brisbane, QLD, Australia.
Posts: 1
Thanks: 0
Thanked 1 Time in 1 Post
Default

Hey

My slightly modified version of the pom.xml file seems to work.

I added a version no to the plugin:
 <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <version>1.0-20061017.160413-3</version>
        <artifactId>xfire-maven-plugin</artifactId>
          <executions>
           <execution>
              <goals>
                 <goal>wsgen</goal>
              </goals>
           </execution>
        </executions>
        <configuration>
          <package>com.wrox.webservice.emailvalidation.clien t</package>
          <overwrtite>true</overwrtite>
          <generateServerStubs>false</generateServerStubs>
          <forceBare>false</forceBare>
          <outputDirectory>${project.build.directory}/generated-sources</outputDirectory>
          <wsdls>
            <wsdl>http://ws.xwebservices.com/XWebEmailValidation/V2/XWebEmailValidation.wsdl</wsdl>
          </wsdls>
        </configuration>
      </plugin>

and an alternate plugin repository (placed below the </build> tag): <pluginRepositories>
<pluginRepository>
     <id>Codehaus Snapshots</id>
     <url>http://snapshots.repository.codehaus.org/</url>
     <snapshots>
       <enabled>true</enabled>
     </snapshots>
     <releases>
       <enabled>false</enabled>
     </releases>
</pluginRepository>
</pluginRepositories>

I can upload the complete file somewhere if requested.

Thanks

Aneesha
Reply With Quote
The Following User Says Thank You to aneesha For This Useful Post:
pi4630 (April 3rd, 2009)
  #5 (permalink)  
Old December 30th, 2007, 08:34 PM
Registered User
 
Join Date: Dec 2007
Location: , MA, USA.
Posts: 3
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via AIM to racoco
Default

just for the record, the above patch to the POM file worked for me as well. thank you aneesha!

Reply With Quote
  #6 (permalink)  
Old January 17th, 2008, 07:31 PM
Registered User
 
Join Date: Jan 2008
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I followed your suggestions below and was able to run mvn package successfully. Thanks for your help.

Jim


Quote:
quote:Originally posted by aneesha
 Hey

My slightly modified version of the pom.xml file seems to work.

I added a version no to the plugin:
 <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <version>1.0-20061017.160413-3</version>
        <artifactId>xfire-maven-plugin</artifactId>
          <executions>
           <execution>
              <goals>
                 <goal>wsgen</goal>
              </goals>
           </execution>
        </executions>
        <configuration>
          <package>com.wrox.webservice.emailvalidation.clien t</package>
          <overwrtite>true</overwrtite>
          <generateServerStubs>false</generateServerStubs>
          <forceBare>false</forceBare>
          <outputDirectory>${project.build.directory}/generated-sources</outputDirectory>
          <wsdls>
            <wsdl>http://ws.xwebservices.com/XWebEmailValidation/V2/XWebEmailValidation.wsdl</wsdl>
          </wsdls>
        </configuration>
      </plugin>

and an alternate plugin repository (placed below the </build> tag): <pluginRepositories>
<pluginRepository>
     <id>Codehaus Snapshots</id>
     <url>http://snapshots.repository.codehaus.org/</url>
     <snapshots>
       <enabled>true</enabled>
     </snapshots>
     <releases>
       <enabled>false</enabled>
     </releases>
</pluginRepository>
</pluginRepositories>

I can upload the complete file somewhere if requested.

Thanks

Aneesha
Reply With Quote
  #7 (permalink)  
Old January 21st, 2008, 10:21 PM
gxp gxp is offline
Registered User
 
Join Date: Dec 2007
Location: Wilmington, DE, .
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks all, for the info on modifying pom.xml. I am a newbie with Spring and Maven, so this helped a great deal.

After trying to rebuild, I was getting the
"Tests in error: testRotateImage" that is described in Appendix C. I tried "-dmaven.test.skip=true", but found that -d was not recognized. After looking at mvn's help, on a hunch, I tried "-D", and then the build ran to completion, finally building the target .war.

-Greg


Reply With Quote
  #8 (permalink)  
Old February 28th, 2008, 05:27 AM
Registered User
 
Join Date: Feb 2008
Location: , , Belgium.
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

If you look into the Test class it indicates that it is looking for a file footbal.jpg. This file is missing from the code download.

When you add a JPEG image with this name at this place wrox-pix-web\src\test\resources\football.jpg your tests will also run successfully.

Reply With Quote
  #9 (permalink)  
Old March 9th, 2008, 03:11 PM
Registered User
 
Join Date: Mar 2008
Location: Aguascalientes, Aguascalientes, Mexico.
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to bestia_averno
Default

Tks a lot aneesha, your help was great!..

Reply With Quote
  #10 (permalink)  
Old March 9th, 2008, 06:21 PM
Registered User
 
Join Date: Mar 2008
Location: Aguascalientes, Aguascalientes, Mexico.
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to bestia_averno
Default

and also, tks kvandeweyer for your post.

Greetings from Aguascalientes, Mex.

Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
VB2005 Project Build Error ashg657 Visual Basic 2005 Basics 1 August 6th, 2006 06:57 PM
C# - Chapter 3 Build Error TJ BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 0 July 29th, 2006 03:43 PM
Build Error, not IIS application VictorVictor ASP.NET 2.0 Basics 0 January 11th, 2006 03:43 PM
Build Error - Plz Help - Thanks ank2go ASP.NET 1.0 and 1.1 Basics 1 February 23rd, 2004 09:09 PM
error on build stewbaby C++ Programming 1 October 30th, 2003 05:07 PM



All times are GMT -4. The time now is 09:46 AM.


Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.