Re: [Acegisecurity-developer] Unresolved dependency problems
Brad, can you try deleting the following, and trying the build again? YOUR_HOME_FOLDER\.m2\repository\javax\servlet\jsp-api\2.0 Where 'YOUR_HOME_FOLDER' is something like C:\Documents and Settings\bcox Also, are you using Maven 2.0.4 or better? On 2/26/07, Carlos Sanchez [EMAIL PROTECTED] wrote: it works for me, so only thing is open a jira in http://opensource.atlassian.com/projects/spring/browse/SEC On 2/26/07, Brad Cox, Ph.D. [EMAIL PROTECTED] wrote: Carlos Sanchez wrote: check target/surefire-reports folder in the module that failed and you'll find a file with name org.acegisecurity.taglibs.authz.AuthorizeTagExpressionLanguageTests* send the error You mean this? --- Test set: org.acegisecurity.taglibs.authz.AuthorizeTagExpressionLanguageTests --- Tests run: 3, Failures: 0, Errors: 3, Skipped: 0, Time elapsed: 0.052 sec FAILURE! testAllGrantedUsesExpressionLanguageWhenExpressionIsEL(org.acegisecurity.taglibs.authz.AuthorizeTagExpressionLanguageTests) Time elapsed: 0 .018 sec ERROR! java.lang.NoSuchMethodError: javax.servlet.jsp.PageContext.getExpressionEvaluator()Ljavax/servlet/jsp/el/ExpressionEvaluator; at org.springframework.web.util.ExpressionEvaluationUtils$Jsp20ExpressionEvaluationHelper.evaluate(ExpressionEvaluationUtils.java:21 6) at org.springframework.web.util.ExpressionEvaluationUtils.evaluateString(ExpressionEvaluationUtils.java:150) at org.acegisecurity.taglibs.authz.AuthorizeTag.doStartTag(AuthorizeTag.java:93) at org.acegisecurity.taglibs.authz.AuthorizeTagExpressionLanguageTests.testAllGrantedUsesExpressionLanguageWhenExpressionIsEL(Author izeTagExpressionLanguageTests.java:66) testAnyGrantedUsesExpressionLanguageWhenExpressionIsEL(org.acegisecurity.taglibs.authz.AuthorizeTagExpressionLanguageTests) Time elapsed: 0 .007 sec ERROR! java.lang.NoSuchMethodError: javax.servlet.jsp.PageContext.getExpressionEvaluator()Ljavax/servlet/jsp/el/ExpressionEvaluator; at org.springframework.web.util.ExpressionEvaluationUtils$Jsp20ExpressionEvaluationHelper.evaluate(ExpressionEvaluationUtils.java:21 6) at org.springframework.web.util.ExpressionEvaluationUtils.evaluateString(ExpressionEvaluationUtils.java:150) at org.acegisecurity.taglibs.authz.AuthorizeTag.doStartTag(AuthorizeTag.java:102) at org.acegisecurity.taglibs.authz.AuthorizeTagExpressionLanguageTests.testAnyGrantedUsesExpressionLanguageWhenExpressionIsEL(Author izeTagExpressionLanguageTests.java:75) testNotGrantedUsesExpressionLanguageWhenExpressionIsEL(org.acegisecurity.taglibs.authz.AuthorizeTagExpressionLanguageTests) Time elapsed: 0 .002 sec ERROR! java.lang.NoSuchMethodError: javax.servlet.jsp.PageContext.getExpressionEvaluator()Ljavax/servlet/jsp/el/ExpressionEvaluator; at org.springframework.web.util.ExpressionEvaluationUtils$Jsp20ExpressionEvaluationHelper.evaluate(ExpressionEvaluationUtils.java:21 6) at org.springframework.web.util.ExpressionEvaluationUtils.evaluateString(ExpressionEvaluationUtils.java:150) at org.acegisecurity.taglibs.authz.AuthorizeTag.doStartTag(AuthorizeTag.java:82) at org.acegisecurity.taglibs.authz.AuthorizeTagExpressionLanguageTests.testNotGrantedUsesExpressionLanguageWhenExpressionIsEL(Author izeTagExpressionLanguageTests.java:84) On 2/26/07, Brad Cox, Ph.D. [EMAIL PROTECTED] wrote: Carlos Sanchez wrote: run mvn install from the root folder before trying to build the samples so you have the latest acegi jars. Or change the sample to use last release instead of using snapshots. Thanks!! mvn install in the root folder ran except for one test failure: Running org.acegisecurity.taglibs.authz.AuthorizeTagExpressionLanguageTests Tests run: 3, Failures: 0, Errors: 3, Skipped: 0, Time elapsed: 0.051 sec FAILURE! So hoping for the best... First of all, deploy the Tutorial Sample, which is included in the main distribution ZIP file. The sample doesn't do a great deal, but it does give you a template that can be quickly and easily used to integrate into your own project. imac:/G5B/Java/acegisecurity/samples/tutorial bcox$ mvn deploy [INFO] Scanning for projects... [INFO] [INFO] Building Maven Default Project [INFO]task-segment: [deploy] [INFO] [INFO] artifact org.apache.maven.plugins:maven-deploy-plugin: checking for updates from central Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-deploy-plugin/2.3/maven-deploy-plugin-2.3.pom
Re: [Acegisecurity-developer] Unresolved dependency problems
Pasting massive logs to the list makes the listserv mad. I'm truncating this message for clarity. On 2/27/07, Ray Krueger [EMAIL PROTECTED] wrote: I just updated to the latest code from SVN and the build is failing for me as well. Same test actually: org.acegisecurity.taglibs.authz.AuthorizeTagExpressionLanguageTests I'll take a look, but I'm buried at work and can't spend much time on it. Be back in a bit :) On 2/27/07, Brad Cox, Ph.D. [EMAIL PROTECTED] wrote: Ray Krueger wrote: Brad, can you try deleting the following, and trying the build again? YOUR_HOME_FOLDER\.m2\repository\javax\servlet\jsp-api\2.0 Where 'YOUR_HOME_FOLDER' is something like C:\Documents and Settings\bcox Deleted /home/bcox/.m2/repository/javax/servlet/jsp-api/2.0 See attached. Failure still there Also, are you using Maven 2.0.4 or better? imac:/G5B/Java/acegisecurity bcox$ mvn -v Maven version: 2.0.5 - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Home: http://acegisecurity.org Acegisecurity-developer mailing list Acegisecurity-developer@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/acegisecurity-developer
Re: [Acegisecurity-developer] Unresolved dependency problems
This test only fails in Maven 2.0.5 Executing mvn clean test with Maven 2.0.4 passes fine. This test also passes fine when run directly in the IDE (IntelliJ for me). Maven really does not handle test failures well. There is no clue as to what test failed, you only get [INFO] There are test failures. There should be some clue as to what test failed. Can the html report be generated directly to get a summary? Can I run the maven-surefire-report-plugin direclty? (Sorry for the direct email rather than the list Brad, I do that a lot haha) On 2/27/07, Ray Krueger [EMAIL PROTECTED] wrote: Pasting massive logs to the list makes the listserv mad. I'm truncating this message for clarity. On 2/27/07, Ray Krueger [EMAIL PROTECTED] wrote: I just updated to the latest code from SVN and the build is failing for me as well. Same test actually: org.acegisecurity.taglibs.authz.AuthorizeTagExpressionLanguageTests I'll take a look, but I'm buried at work and can't spend much time on it. Be back in a bit :) On 2/27/07, Brad Cox, Ph.D. [EMAIL PROTECTED] wrote: Ray Krueger wrote: Brad, can you try deleting the following, and trying the build again? YOUR_HOME_FOLDER\.m2\repository\javax\servlet\jsp-api\2.0 Where 'YOUR_HOME_FOLDER' is something like C:\Documents and Settings\bcox Deleted /home/bcox/.m2/repository/javax/servlet/jsp-api/2.0 See attached. Failure still there Also, are you using Maven 2.0.4 or better? imac:/G5B/Java/acegisecurity bcox$ mvn -v Maven version: 2.0.5 - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Home: http://acegisecurity.org Acegisecurity-developer mailing list Acegisecurity-developer@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/acegisecurity-developer
Re: [Acegisecurity-developer] Unresolved dependency problems
Thanks! That's a real clue!! 2.0.4 Re: test failures, maven 2.0.5 does report the failure accurately, least on my system. Grep for FAIL (case sensitive) will find the failed test. The hard part is retaining the whole log since they tend to exceed the scroll back buffer. I run compilies in vim for just that reason: :r ! mvn clean test Among dozens of similar ways. Ray Krueger wrote: This test only fails in Maven 2.0.5 Executing mvn clean test with Maven 2.0.4 passes fine. This test also passes fine when run directly in the IDE (IntelliJ for me). Maven really does not handle test failures well. There is no clue as to what test failed, you only get [INFO] There are test failures. There should be some clue as to what test failed. Can the html report be generated directly to get a summary? Can I run the maven-surefire-report-plugin direclty? (Sorry for the direct email rather than the list Brad, I do that a lot haha) On 2/27/07, Ray Krueger [EMAIL PROTECTED] wrote: Pasting massive logs to the list makes the listserv mad. I'm truncating this message for clarity. On 2/27/07, Ray Krueger [EMAIL PROTECTED] wrote: I just updated to the latest code from SVN and the build is failing for me as well. Same test actually: org.acegisecurity.taglibs.authz.AuthorizeTagExpressionLanguageTests I'll take a look, but I'm buried at work and can't spend much time on it. Be back in a bit :) On 2/27/07, Brad Cox, Ph.D. [EMAIL PROTECTED] wrote: Ray Krueger wrote: Brad, can you try deleting the following, and trying the build again? YOUR_HOME_FOLDER\.m2\repository\javax\servlet\jsp-api\2.0 Where 'YOUR_HOME_FOLDER' is something like C:\Documents and Settings\bcox Deleted /home/bcox/.m2/repository/javax/servlet/jsp-api/2.0 See attached. Failure still there Also, are you using Maven 2.0.4 or better? imac:/G5B/Java/acegisecurity bcox$ mvn -v Maven version: 2.0.5 -- --- Brad J. Cox, Ph.D. Phone: 703 361 4751 http://giglite.org http://binarygroup.com http://virtualschool.edu - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Home: http://acegisecurity.org Acegisecurity-developer mailing list Acegisecurity-developer@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/acegisecurity-developer
Re: [Acegisecurity-developer] Unresolved dependency problems
in the previous lines it tells you which test failed On 2/27/07, Ray Krueger [EMAIL PROTECTED] wrote: Maven 2.0.5 says... Results : Tests run: 963, Failures: 0, Errors: 3, Skipped: 0 [INFO] [ERROR] BUILD FAILURE [INFO] [INFO] There are test failures. [INFO] [INFO] For more information, run Maven with the -e switch [INFO] [INFO] Total time: 1 minute 25 seconds [INFO] Finished at: Tue Feb 27 12:22:38 CST 2007 [INFO] Final Memory: 6M/12M [INFO] Is it because these are errors, not failures, that Maven stays silent about the what test went wrong? Why would deleting my repository change fix the 2.0.5 problem, when it builds fine with 2.0.4 using the same repository? On 2/27/07, Carlos Sanchez [EMAIL PROTECTED] wrote: i use 2.0.5 and builds fine for me try deleting your local repo ~/.m2/repository maven reports the tests that fail, just check the lines before [INFO] There are test failures. On 2/27/07, Ray Krueger [EMAIL PROTECTED] wrote: This test only fails in Maven 2.0.5 Executing mvn clean test with Maven 2.0.4 passes fine. This test also passes fine when run directly in the IDE (IntelliJ for me). Maven really does not handle test failures well. There is no clue as to what test failed, you only get [INFO] There are test failures. There should be some clue as to what test failed. Can the html report be generated directly to get a summary? Can I run the maven-surefire-report-plugin direclty? (Sorry for the direct email rather than the list Brad, I do that a lot haha) On 2/27/07, Ray Krueger [EMAIL PROTECTED] wrote: Pasting massive logs to the list makes the listserv mad. I'm truncating this message for clarity. On 2/27/07, Ray Krueger [EMAIL PROTECTED] wrote: I just updated to the latest code from SVN and the build is failing for me as well. Same test actually: org.acegisecurity.taglibs.authz.AuthorizeTagExpressionLanguageTests I'll take a look, but I'm buried at work and can't spend much time on it. Be back in a bit :) On 2/27/07, Brad Cox, Ph.D. [EMAIL PROTECTED] wrote: Ray Krueger wrote: Brad, can you try deleting the following, and trying the build again? YOUR_HOME_FOLDER\.m2\repository\javax\servlet\jsp-api\2.0 Where 'YOUR_HOME_FOLDER' is something like C:\Documents and Settings\bcox Deleted /home/bcox/.m2/repository/javax/servlet/jsp-api/2.0 See attached. Failure still there Also, are you using Maven 2.0.4 or better? imac:/G5B/Java/acegisecurity bcox$ mvn -v Maven version: 2.0.5 - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Home: http://acegisecurity.org Acegisecurity-developer mailing list Acegisecurity-developer@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/acegisecurity-developer -- I could give you my word as a Spaniard. No good. I've known too many Spaniards. -- The Princess Bride - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Home: http://acegisecurity.org Acegisecurity-developer mailing list Acegisecurity-developer@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/acegisecurity-developer - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Home: http://acegisecurity.org Acegisecurity-developer mailing list Acegisecurity-developer@lists.sourceforge.net
Re: [Acegisecurity-developer] Unresolved dependency problems
OK, I assumed you meant there was summary. Having the failure buried in with 600 success messages isn't what I was looking for. That's what I meant by it not being easy. On 2/27/07, Carlos Sanchez [EMAIL PROTECTED] wrote: in the previous lines it tells you which test failed On 2/27/07, Ray Krueger [EMAIL PROTECTED] wrote: Maven 2.0.5 says... Results : Tests run: 963, Failures: 0, Errors: 3, Skipped: 0 [INFO] [ERROR] BUILD FAILURE [INFO] [INFO] There are test failures. [INFO] [INFO] For more information, run Maven with the -e switch [INFO] [INFO] Total time: 1 minute 25 seconds [INFO] Finished at: Tue Feb 27 12:22:38 CST 2007 [INFO] Final Memory: 6M/12M [INFO] Is it because these are errors, not failures, that Maven stays silent about the what test went wrong? Why would deleting my repository change fix the 2.0.5 problem, when it builds fine with 2.0.4 using the same repository? On 2/27/07, Carlos Sanchez [EMAIL PROTECTED] wrote: i use 2.0.5 and builds fine for me try deleting your local repo ~/.m2/repository maven reports the tests that fail, just check the lines before [INFO] There are test failures. On 2/27/07, Ray Krueger [EMAIL PROTECTED] wrote: This test only fails in Maven 2.0.5 Executing mvn clean test with Maven 2.0.4 passes fine. This test also passes fine when run directly in the IDE (IntelliJ for me). Maven really does not handle test failures well. There is no clue as to what test failed, you only get [INFO] There are test failures. There should be some clue as to what test failed. Can the html report be generated directly to get a summary? Can I run the maven-surefire-report-plugin direclty? (Sorry for the direct email rather than the list Brad, I do that a lot haha) On 2/27/07, Ray Krueger [EMAIL PROTECTED] wrote: Pasting massive logs to the list makes the listserv mad. I'm truncating this message for clarity. On 2/27/07, Ray Krueger [EMAIL PROTECTED] wrote: I just updated to the latest code from SVN and the build is failing for me as well. Same test actually: org.acegisecurity.taglibs.authz.AuthorizeTagExpressionLanguageTests I'll take a look, but I'm buried at work and can't spend much time on it. Be back in a bit :) On 2/27/07, Brad Cox, Ph.D. [EMAIL PROTECTED] wrote: Ray Krueger wrote: Brad, can you try deleting the following, and trying the build again? YOUR_HOME_FOLDER\.m2\repository\javax\servlet\jsp-api\2.0 Where 'YOUR_HOME_FOLDER' is something like C:\Documents and Settings\bcox Deleted /home/bcox/.m2/repository/javax/servlet/jsp-api/2.0 See attached. Failure still there Also, are you using Maven 2.0.4 or better? imac:/G5B/Java/acegisecurity bcox$ mvn -v Maven version: 2.0.5 - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Home: http://acegisecurity.org Acegisecurity-developer mailing list Acegisecurity-developer@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/acegisecurity-developer -- I could give you my word as a Spaniard. No good. I've known too many Spaniards. -- The Princess Bride - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Home: http://acegisecurity.org Acegisecurity-developer mailing list Acegisecurity-developer@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/acegisecurity-developer - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your
[Acegisecurity-developer] Unresolved dependency problems
Could someone here please advise on how to get started using acegisecurity? Everything I've tried (including both versions of maven + mvn) leads to unresolved dependencies. I've no clue how to get this thing out of the box. Sorry for the delay on getting back on this. It looks like the dependencies are NOT loaded into a maven repository with the structure outlined below. The org/acegisecurity directory does not exist on apache. It does on sourceforge, but a directory of acegi-security-tiger does not exist under org/acegisecurity. The directory acegi-security does exist under or/acegisecurity. This new directory does have the 1.1-SNAPSHOT version, but not as a POM or JAR. It has archive versions in zip format. So, problem is that the POM and JAR expected are NOT loaded in a Maven repo as they are expected to be in the mvn script you are running. --Phillip -- Original Message --- From: Brad Cox [EMAIL PROTECTED] To: [EMAIL PROTECTED], Brian O'Neill [EMAIL PROTECTED] Cc: Phillip Anderson [EMAIL PROTECTED], Jeremy Thorn [EMAIL PROTECTED], [EMAIL PROTECTED] Sent: Sun, 25 Feb 2007 17:29:54 -0500 Subject: Re: Mavn problems. Can you help? I've about concluded that (part of) the problem is that acegisecurity has moved to maven2 but left their instructions for maven1. Everything's guesswork, but blind guesswork at mvn args gets me further than following those instructions. Here's the latest. Still no joy... BTW: acegisecurity seems to have what we need, if I could only figure out how to use it. Can someone pls help? I think I mainly need basic maven vs mvn how to handholding, particularly how to diagnose problems like this myself. imac:/G5B/Java/acegisecurity/samples/contacts bcox$ mvn install [INFO] Scanning for projects... [INFO] [INFO] Building Acegi Security System for Spring - Contacts sample [INFO]task-segment: [install] [INFO] [INFO] [resources:resources] [INFO] Using default encoding to copy filtered resources. [INFO] snapshot org.acegisecurity:acegi-security-tiger:1.1-SNAPSHOT: checking for updates from sourceforge.net [INFO] snapshot org.acegisecurity:acegi-security-tiger:1.1-SNAPSHOT: checking for updates from apache.org Downloading: http://acegisecurity.sourceforge.net/repository/snapshots/org/acegisecur ity/acegi-security-tiger/1.1-SNAPSHOT/acegi-security-tiger-1.1-SNAPSHOT. pom [WARNING] Unable to get resource 'org.acegisecurity:acegi-security-tiger:pom:1.1-SNAPSHOT' from repository sourceforge.net (http://acegisecurity.sourceforge.net/repository/snapshots) Downloading: http://svn.apache.org/maven-snapshot-repository/org/acegisecurity/acegi- security-tiger/1.1-SNAPSHOT/acegi-security-tiger-1.1-SNAPSHOT.pom [WARNING] Unable to get resource 'org.acegisecurity:acegi-security-tiger:pom:1.1-SNAPSHOT' from repository apache.org (http://svn.apache.org/maven-snapshot-repository) Downloading: http://acegisecurity.sourceforge.net/repository/snapshots/org/acegisecur ity/acegi-security-tiger/1.1-SNAPSHOT/acegi-security-tiger-1.1-SNAPSHOT. jar [WARNING] Unable to get resource 'org.acegisecurity:acegi-security-tiger:jar:1.1-SNAPSHOT' from repository sourceforge.net (http://acegisecurity.sourceforge.net/repository/snapshots) Downloading: http://svn.apache.org/maven-snapshot-repository/org/acegisecurity/acegi- security-tiger/1.1-SNAPSHOT/acegi-security-tiger-1.1-SNAPSHOT.jar [WARNING] Unable to get resource 'org.acegisecurity:acegi-security-tiger:jar:1.1-SNAPSHOT' from repository apache.org (http://svn.apache.org/maven-snapshot-repository) Downloading: http://repo1.maven.org/maven2/javax/servlet/servlet-api/2.4/servlet-api- 2.4.jar 95K downloaded [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Failed to resolve artifact. Missing: -- 1) org.acegisecurity:acegi-security-tiger:jar:1.1-SNAPSHOT Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=org.acegisecurity -DartifactId=acegi-security-tiger \ -Dversion=1.1-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file Path to dependency: 1) org.acegisecurity:acegi-security-sample-contacts:war:1.1-SNAPSHOT 2) org.acegisecurity:acegi-security-tiger:jar:1.1-SNAPSHOT -- 1 required artifact is missing. for artifact: org.acegisecurity:acegi-security-sample-contacts:war:1.1-SNAPSHOT from the specified remote repositories: central (http://repo1.maven.org/maven2), sourceforge.net
Re: [Acegisecurity-developer] Unresolved dependency problems
run mvn install from the root folder before trying to build the samples so you have the latest acegi jars. Or change the sample to use last release instead of using snapshots. On 2/26/07, Brad Cox, Ph.D. [EMAIL PROTECTED] wrote: Could someone here please advise on how to get started using acegisecurity? Everything I've tried (including both versions of maven + mvn) leads to unresolved dependencies. I've no clue how to get this thing out of the box. Sorry for the delay on getting back on this. It looks like the dependencies are NOT loaded into a maven repository with the structure outlined below. The org/acegisecurity directory does not exist on apache. It does on sourceforge, but a directory of acegi-security-tiger does not exist under org/acegisecurity. The directory acegi-security does exist under or/acegisecurity. This new directory does have the 1.1-SNAPSHOT version, but not as a POM or JAR. It has archive versions in zip format. So, problem is that the POM and JAR expected are NOT loaded in a Maven repo as they are expected to be in the mvn script you are running. --Phillip -- Original Message --- From: Brad Cox [EMAIL PROTECTED] To: [EMAIL PROTECTED], Brian O'Neill [EMAIL PROTECTED] Cc: Phillip Anderson [EMAIL PROTECTED], Jeremy Thorn [EMAIL PROTECTED], [EMAIL PROTECTED] Sent: Sun, 25 Feb 2007 17:29:54 -0500 Subject: Re: Mavn problems. Can you help? I've about concluded that (part of) the problem is that acegisecurity has moved to maven2 but left their instructions for maven1. Everything's guesswork, but blind guesswork at mvn args gets me further than following those instructions. Here's the latest. Still no joy... BTW: acegisecurity seems to have what we need, if I could only figure out how to use it. Can someone pls help? I think I mainly need basic maven vs mvn how to handholding, particularly how to diagnose problems like this myself. imac:/G5B/Java/acegisecurity/samples/contacts bcox$ mvn install [INFO] Scanning for projects... [INFO] [INFO] Building Acegi Security System for Spring - Contacts sample [INFO]task-segment: [install] [INFO] [INFO] [resources:resources] [INFO] Using default encoding to copy filtered resources. [INFO] snapshot org.acegisecurity:acegi-security-tiger:1.1-SNAPSHOT: checking for updates from sourceforge.net [INFO] snapshot org.acegisecurity:acegi-security-tiger:1.1-SNAPSHOT: checking for updates from apache.org Downloading: http://acegisecurity.sourceforge.net/repository/snapshots/org/acegisecur ity/acegi-security-tiger/1.1-SNAPSHOT/acegi-security-tiger-1.1-SNAPSHOT. pom [WARNING] Unable to get resource 'org.acegisecurity:acegi-security-tiger:pom:1.1-SNAPSHOT' from repository sourceforge.net (http://acegisecurity.sourceforge.net/repository/snapshots) Downloading: http://svn.apache.org/maven-snapshot-repository/org/acegisecurity/acegi- security-tiger/1.1-SNAPSHOT/acegi-security-tiger-1.1-SNAPSHOT.pom [WARNING] Unable to get resource 'org.acegisecurity:acegi-security-tiger:pom:1.1-SNAPSHOT' from repository apache.org (http://svn.apache.org/maven-snapshot-repository) Downloading: http://acegisecurity.sourceforge.net/repository/snapshots/org/acegisecur ity/acegi-security-tiger/1.1-SNAPSHOT/acegi-security-tiger-1.1-SNAPSHOT. jar [WARNING] Unable to get resource 'org.acegisecurity:acegi-security-tiger:jar:1.1-SNAPSHOT' from repository sourceforge.net (http://acegisecurity.sourceforge.net/repository/snapshots) Downloading: http://svn.apache.org/maven-snapshot-repository/org/acegisecurity/acegi- security-tiger/1.1-SNAPSHOT/acegi-security-tiger-1.1-SNAPSHOT.jar [WARNING] Unable to get resource 'org.acegisecurity:acegi-security-tiger:jar:1.1-SNAPSHOT' from repository apache.org (http://svn.apache.org/maven-snapshot-repository) Downloading: http://repo1.maven.org/maven2/javax/servlet/servlet-api/2.4/servlet-api- 2.4.jar 95K downloaded [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Failed to resolve artifact. Missing: -- 1) org.acegisecurity:acegi-security-tiger:jar:1.1-SNAPSHOT Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=org.acegisecurity -DartifactId=acegi-security-tiger \ -Dversion=1.1-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file Path to dependency: 1)
Re: [Acegisecurity-developer] Unresolved dependency problems
Carlos Sanchez wrote: run mvn install from the root folder before trying to build the samples so you have the latest acegi jars. Or change the sample to use last release instead of using snapshots. Thanks!! mvn install in the root folder ran except for one test failure: Running org.acegisecurity.taglibs.authz.AuthorizeTagExpressionLanguageTests Tests run: 3, Failures: 0, Errors: 3, Skipped: 0, Time elapsed: 0.051 sec FAILURE! So hoping for the best... First of all, deploy the Tutorial Sample, which is included in the main distribution ZIP file. The sample doesn't do a great deal, but it does give you a template that can be quickly and easily used to integrate into your own project. imac:/G5B/Java/acegisecurity/samples/tutorial bcox$ mvn deploy [INFO] Scanning for projects... [INFO] [INFO] Building Maven Default Project [INFO]task-segment: [deploy] [INFO] [INFO] artifact org.apache.maven.plugins:maven-deploy-plugin: checking for updates from central Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-deploy-plugin/2.3/maven-deploy-plugin-2.3.pom 1/1K 1K downloaded Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-deploy-plugin/2.3/maven-deploy-plugin-2.3.jar 2/15K 4/15K 5/15K 7/15K 8/15K 9/15K 11/15K 14/15K 15/15K 15K downloaded [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Cannot execute mojo: resources. It requires a project with an existing pom.xml, but the build is not using one. [INFO] [INFO] For more information, run Maven with the -e switch [INFO] [INFO] Total time: 3 seconds [INFO] Finished at: Mon Feb 26 16:57:29 EST 2007 [INFO] Final Memory: 3M/6M [INFO] --- On 2/26/07, Brad Cox, Ph.D. [EMAIL PROTECTED] wrote: Could someone here please advise on how to get started using acegisecurity? Everything I've tried (including both versions of maven + mvn) leads to unresolved dependencies. I've no clue how to get this thing out of the box. Sorry for the delay on getting back on this. It looks like the dependencies are NOT loaded into a maven repository with the structure outlined below. The org/acegisecurity directory does not exist on apache. It does on sourceforge, but a directory of acegi-security-tiger does not exist under org/acegisecurity. The directory acegi-security does exist under or/acegisecurity. This new directory does have the 1.1-SNAPSHOT version, but not as a POM or JAR. It has archive versions in zip format. So, problem is that the POM and JAR expected are NOT loaded in a Maven repo as they are expected to be in the mvn script you are running. --Phillip -- Original Message --- From: Brad Cox [EMAIL PROTECTED] To: [EMAIL PROTECTED], Brian O'Neill [EMAIL PROTECTED] Cc: Phillip Anderson [EMAIL PROTECTED], Jeremy Thorn [EMAIL PROTECTED], [EMAIL PROTECTED] Sent: Sun, 25 Feb 2007 17:29:54 -0500 Subject: Re: Mavn problems. Can you help? I've about concluded that (part of) the problem is that acegisecurity has moved to maven2 but left their instructions for maven1. Everything's guesswork, but blind guesswork at mvn args gets me further than following those instructions. Here's the latest. Still no joy... BTW: acegisecurity seems to have what we need, if I could only figure out how to use it. Can someone pls help? I think I mainly need basic maven vs mvn how to handholding, particularly how to diagnose problems like this myself. imac:/G5B/Java/acegisecurity/samples/contacts bcox$ mvn install [INFO] Scanning for projects... [INFO] [INFO] Building Acegi Security System for Spring - Contacts sample [INFO]task-segment: [install] [INFO] [INFO] [resources:resources] [INFO] Using default encoding to copy filtered resources. [INFO] snapshot org.acegisecurity:acegi-security-tiger:1.1-SNAPSHOT: checking for updates from sourceforge.net [INFO] snapshot org.acegisecurity:acegi-security-tiger:1.1-SNAPSHOT: checking for updates from apache.org Downloading: http://acegisecurity.sourceforge.net/repository/snapshots/org/acegisecur ity/acegi-security-tiger/1.1-SNAPSHOT/acegi-security-tiger-1.1-SNAPSHOT. pom [WARNING] Unable to get resource 'org.acegisecurity:acegi-security-tiger:pom:1.1-SNAPSHOT' from repository sourceforge.net