You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@shiro.apache.org by placydo <pl...@gmail.com> on 2012/04/25 13:44:12 UTC
Problem running Quickstart sample (and all others)
Hello.
When I am trying to run sample codes i get error:
C:\Users\P\Desktop\shiro-root-1.2.0\samples\quickstart>mvn compile exec:java
[INFO] Scanning for projects...
[INFO]
[INFO]
------------------------------------------------------------------------
[INFO] Building Apache Shiro :: Samples :: Quick Start 1.2.0
[INFO]
------------------------------------------------------------------------
[INFO]
[INFO] --- buildnumber-maven-plugin:1.0-beta-4:create (default) @
samples-quickstart ---
[INFO] Checking for local modifications: skipped.
[INFO] Updating project files from SCM: skipped.
[INFO] Executing: cmd.exe /X /C "svn --non-interactive info"
[INFO] Working directory:
C:\Users\P\Desktop\shiro-root-1.2.0\samples\quickstart
Provider message:
The svn command failed.
Command output:
svn: E155007: 'C:\Users\P\Desktop\shiro-root-1.2.0\samples\quickstart' is
not a working copy
[INFO]
------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 1.747s
[INFO] Finished at: Wed Apr 25 13:41:45 CEST 2012
[INFO] Final Memory: 9M/107M
[INFO]
------------------------------------------------------------------------
[ERROR] Failed to execute goal
org.codehaus.mojo:buildnumber-maven-plugin:1.0-beta-4:create (default) on
project samples-quickstart: Cannot get the revision information from the scm
repository :
[ERROR] Error!
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e
switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please
read the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
Tried to work this out but failed hard. What am i missing / doing wrong?
Best ragards
--
View this message in context: http://shiro-user.582556.n2.nabble.com/Problem-running-Quickstart-sample-and-all-others-tp7499096p7499096.html
Sent from the Shiro User mailing list archive at Nabble.com.
Re: Problem running Quickstart sample (and all others)
Posted by placydo <pl...@gmail.com>.
Thank You Sir! Worked as charm! Now i can move forward.
--
View this message in context: http://shiro-user.582556.n2.nabble.com/Problem-running-Quickstart-sample-and-all-others-tp7499096p7499207.html
Sent from the Shiro User mailing list archive at Nabble.com.
Re: Problem running Quickstart sample (and all others)
Posted by Jared Bunting <ja...@peachjean.com>.
It looks like the buildnumber plugin REALLY wants to be running in an
svn checkout. So, the first answer is to placate it. Instead of
downloading the source tarball, checkout the tag:
svn checkout
http://svn.apache.org/repos/asf/shiro/tags/shiro-root-1.2.0/ shiro-1.2.0
However, since it seems completely reasonable to build from the source
tarball, I tried it myself and reproduced your error. I was able to
get around it by adding the following parameter to the <configuration>
section of the buildnumber-maven-plugin (line 395/396) in the root
pom.xml file:
<revisionOnScmFailure>unversioned</revisionOnScmFailure>
Hope that helps.
Thanks,
Jared
On Wed 25 Apr 2012 06:44:12 AM CDT, placydo wrote:
> Hello.
> When I am trying to run sample codes i get error:
>
> C:\Users\P\Desktop\shiro-root-1.2.0\samples\quickstart>mvn compile exec:java
> [INFO] Scanning for projects...
> [INFO]
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Building Apache Shiro :: Samples :: Quick Start 1.2.0
> [INFO]
> ------------------------------------------------------------------------
> [INFO]
> [INFO] --- buildnumber-maven-plugin:1.0-beta-4:create (default) @
> samples-quickstart ---
> [INFO] Checking for local modifications: skipped.
> [INFO] Updating project files from SCM: skipped.
> [INFO] Executing: cmd.exe /X /C "svn --non-interactive info"
> [INFO] Working directory:
> C:\Users\P\Desktop\shiro-root-1.2.0\samples\quickstart
>
> Provider message:
> The svn command failed.
> Command output:
> svn: E155007: 'C:\Users\P\Desktop\shiro-root-1.2.0\samples\quickstart' is
> not a working copy
>
> [INFO]
> ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 1.747s
> [INFO] Finished at: Wed Apr 25 13:41:45 CEST 2012
> [INFO] Final Memory: 9M/107M
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] Failed to execute goal
> org.codehaus.mojo:buildnumber-maven-plugin:1.0-beta-4:create (default) on
> project samples-quickstart: Cannot get the revision information from the scm
> repository :
> [ERROR] Error!
> [ERROR] -> [Help 1]
> [ERROR]
> [ERROR] To see the full stack trace of the errors, re-run Maven with the -e
> switch.
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [ERROR]
> [ERROR] For more information about the errors and possible solutions, please
> read the following articles:
> [ERROR] [Help 1]
> http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
>
> Tried to work this out but failed hard. What am i missing / doing wrong?
> Best ragards
>
> --
> View this message in context: http://shiro-user.582556.n2.nabble.com/Problem-running-Quickstart-sample-and-all-others-tp7499096p7499096.html
> Sent from the Shiro User mailing list archive at Nabble.com.