You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@shiro.apache.org by wlmoore-Arlington <wl...@gmail.com> on 2013/03/28 22:02:22 UTC

Problem running Quickstart tutorial

Hello, I'm having issues running the quickstart and wondering if anyone out
there has some advice.  I checked the source out form svn using the latest
release tag (shiro-root-1.2.1), but I'm having issues when I compile. 
Currently on Windows, I get this output when I run mvn -version:
Apache Maven 3.0.4 (r1232337; 2012-01-17 03:44:56-0500)
Maven home: C:\Program Files\Apache Software Foundation\apache-maven-3.0.4
Java version: 1.6.0_31, vendor: Sun Microsystems Inc.
Java home: C:\Program Files\Java\jdk1.6.0_31\jre
Default locale: en_US, platform encoding: Cp1252
OS name: "windows 7", version: "6.1", arch: "amd64", family: "windows"

When I run maven with the compile goal, I am able to successfully build most
of the sub-projects, however the build fails with the following error on the
Spring project (I ommitted the build output from all the prior projects as
they are all the same / successes).

[INFO]
------------------------------------------------------------------------
[INFO] Building Apache Shiro :: Samples :: Spring 1.2.1
[INFO]
------------------------------------------------------------------------
[INFO]
[INFO] --- buildnumber-maven-plugin:1.0-beta-4:create (default) @
samples-spring
 ---
[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\wmoore.TRITEK\svn\shiro-root-1.2.1\samples\sp
ring
[INFO] Storing buildNumber: 1462291 at timestamp: 1364503987646
[INFO] Executing: cmd.exe /X /C "svn --non-interactive info"
[INFO] Working directory:
C:\Users\wmoore.TRITEK\svn\shiro-root-1.2.1\samples\sp
ring
[INFO] Storing buildScmBranch: tags/shiro-root-1.2.1/samples/spring
[INFO]
[INFO] --- maven-remote-resources-plugin:1.1:process (default) @
samples-spring
---
[INFO]
[INFO] --- dependency-maven-plugin:1.0:unpack (default) @ samples-spring ---
[INFO] Configured Artifact:
org.apache.shiro.samples:samples-spring-client:null:
1.2.1:zip
[INFO]
------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Apache Shiro ...................................... SUCCESS [1.395s]
[INFO] Apache Shiro :: Core .............................. SUCCESS [1.453s]
[INFO] Apache Shiro :: Web ............................... SUCCESS [0.514s]
[INFO] Apache Shiro :: Support :: AspectJ ................ SUCCESS [0.314s]
[INFO] Apache Shiro :: Support :: EHCache ................ SUCCESS [0.458s]
[INFO] Apache Shiro :: Support :: Quartz ................. SUCCESS [0.451s]
[INFO] Apache Shiro :: Support :: Spring ................. SUCCESS [0.517s]
[INFO] Apache Shiro :: Support :: Guice .................. SUCCESS [0.260s]
[INFO] Apache Shiro :: Support :: Karaf Features ......... SUCCESS [0.260s]
[INFO] Apache Shiro :: Support :: CAS .................... SUCCESS [0.289s]
[INFO] Apache Shiro :: Support ........................... SUCCESS [0.129s]
[INFO] Apache Shiro :: Samples ........................... SUCCESS [0.136s]
[INFO] Apache Shiro :: Samples :: AspectJ ................ SUCCESS [0.320s]
[INFO] Apache Shiro :: Samples :: Quick Start ............ SUCCESS [0.204s]
[INFO] Apache Shiro :: Samples :: Web .................... SUCCESS [0.423s]
[INFO] Apache Shiro :: Samples :: Spring Client .......... SUCCESS [0.376s]
[INFO] Apache Shiro :: Samples :: Spring ................. FAILURE [0.339s]
[INFO] Apache Shiro :: Samples :: Spring-Hibernate ....... SKIPPED
[INFO] Apache Shiro :: Tools ............................. SKIPPED
[INFO] Apache Shiro :: Tools :: Hasher ................... SKIPPED
[INFO] Apache Shiro :: Jar Bundle ........................ SKIPPED
[INFO]
------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 8.747s
[INFO] Finished at: Thu Mar 28 16:53:07 EDT 2013
[INFO] Final Memory: 39M/315M
[INFO]
------------------------------------------------------------------------
[ERROR] Failed to execute goal
org.codehaus.mojo:dependency-maven-plugin:1.0:unp
ack (default) on project samples-spring: Unknown archiver type: No such
archiver
: '1\samples\spring-client\target\classes'. -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e
swit
ch.
[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
rea
d the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionE
xception
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the
command

[ERROR]   mvn <goals> -rf :samples-spring

Anyone have any ideas?  Is there something misconfigured on my side that is
causing this?



--
View this message in context: http://shiro-user.582556.n2.nabble.com/Problem-running-Quickstart-tutorial-tp7578539.html
Sent from the Shiro User mailing list archive at Nabble.com.

Re: Problem running Quickstart tutorial

Posted by Les Hazlewood <lh...@apache.org>.
Hiya,

Can you please open a Jira issue if you still think this is a bug?

Thanks,
--
Les Hazlewood | @lhazlewood
CTO, Stormpath | http://stormpath.com | @goStormpath | 888.391.5282


On Thu, Mar 28, 2013 at 2:02 PM, wlmoore-Arlington <wl...@gmail.com> wrote:
> Hello, I'm having issues running the quickstart and wondering if anyone out
> there has some advice.  I checked the source out form svn using the latest
> release tag (shiro-root-1.2.1), but I'm having issues when I compile.
> Currently on Windows, I get this output when I run mvn -version:
> Apache Maven 3.0.4 (r1232337; 2012-01-17 03:44:56-0500)
> Maven home: C:\Program Files\Apache Software Foundation\apache-maven-3.0.4
> Java version: 1.6.0_31, vendor: Sun Microsystems Inc.
> Java home: C:\Program Files\Java\jdk1.6.0_31\jre
> Default locale: en_US, platform encoding: Cp1252
> OS name: "windows 7", version: "6.1", arch: "amd64", family: "windows"
>
> When I run maven with the compile goal, I am able to successfully build most
> of the sub-projects, however the build fails with the following error on the
> Spring project (I ommitted the build output from all the prior projects as
> they are all the same / successes).
>
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Building Apache Shiro :: Samples :: Spring 1.2.1
> [INFO]
> ------------------------------------------------------------------------
> [INFO]
> [INFO] --- buildnumber-maven-plugin:1.0-beta-4:create (default) @
> samples-spring
>  ---
> [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\wmoore.TRITEK\svn\shiro-root-1.2.1\samples\sp
> ring
> [INFO] Storing buildNumber: 1462291 at timestamp: 1364503987646
> [INFO] Executing: cmd.exe /X /C "svn --non-interactive info"
> [INFO] Working directory:
> C:\Users\wmoore.TRITEK\svn\shiro-root-1.2.1\samples\sp
> ring
> [INFO] Storing buildScmBranch: tags/shiro-root-1.2.1/samples/spring
> [INFO]
> [INFO] --- maven-remote-resources-plugin:1.1:process (default) @
> samples-spring
> ---
> [INFO]
> [INFO] --- dependency-maven-plugin:1.0:unpack (default) @ samples-spring ---
> [INFO] Configured Artifact:
> org.apache.shiro.samples:samples-spring-client:null:
> 1.2.1:zip
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Reactor Summary:
> [INFO]
> [INFO] Apache Shiro ...................................... SUCCESS [1.395s]
> [INFO] Apache Shiro :: Core .............................. SUCCESS [1.453s]
> [INFO] Apache Shiro :: Web ............................... SUCCESS [0.514s]
> [INFO] Apache Shiro :: Support :: AspectJ ................ SUCCESS [0.314s]
> [INFO] Apache Shiro :: Support :: EHCache ................ SUCCESS [0.458s]
> [INFO] Apache Shiro :: Support :: Quartz ................. SUCCESS [0.451s]
> [INFO] Apache Shiro :: Support :: Spring ................. SUCCESS [0.517s]
> [INFO] Apache Shiro :: Support :: Guice .................. SUCCESS [0.260s]
> [INFO] Apache Shiro :: Support :: Karaf Features ......... SUCCESS [0.260s]
> [INFO] Apache Shiro :: Support :: CAS .................... SUCCESS [0.289s]
> [INFO] Apache Shiro :: Support ........................... SUCCESS [0.129s]
> [INFO] Apache Shiro :: Samples ........................... SUCCESS [0.136s]
> [INFO] Apache Shiro :: Samples :: AspectJ ................ SUCCESS [0.320s]
> [INFO] Apache Shiro :: Samples :: Quick Start ............ SUCCESS [0.204s]
> [INFO] Apache Shiro :: Samples :: Web .................... SUCCESS [0.423s]
> [INFO] Apache Shiro :: Samples :: Spring Client .......... SUCCESS [0.376s]
> [INFO] Apache Shiro :: Samples :: Spring ................. FAILURE [0.339s]
> [INFO] Apache Shiro :: Samples :: Spring-Hibernate ....... SKIPPED
> [INFO] Apache Shiro :: Tools ............................. SKIPPED
> [INFO] Apache Shiro :: Tools :: Hasher ................... SKIPPED
> [INFO] Apache Shiro :: Jar Bundle ........................ SKIPPED
> [INFO]
> ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 8.747s
> [INFO] Finished at: Thu Mar 28 16:53:07 EDT 2013
> [INFO] Final Memory: 39M/315M
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] Failed to execute goal
> org.codehaus.mojo:dependency-maven-plugin:1.0:unp
> ack (default) on project samples-spring: Unknown archiver type: No such
> archiver
> : '1\samples\spring-client\target\classes'. -> [Help 1]
> [ERROR]
> [ERROR] To see the full stack trace of the errors, re-run Maven with the -e
> swit
> ch.
> [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
> rea
> d the following articles:
> [ERROR] [Help 1]
> http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionE
> xception
> [ERROR]
> [ERROR] After correcting the problems, you can resume the build with the
> command
>
> [ERROR]   mvn <goals> -rf :samples-spring
>
> Anyone have any ideas?  Is there something misconfigured on my side that is
> causing this?
>
>
>
> --
> View this message in context: http://shiro-user.582556.n2.nabble.com/Problem-running-Quickstart-tutorial-tp7578539.html
> Sent from the Shiro User mailing list archive at Nabble.com.