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 (http://acegisecurity.sourceforge.net/repository/snapshots), > > apache.org (http://svn.apache.org/maven-snapshot-repository) > > > > [INFO] ------------------------------------------------------------------------ > > [INFO] For more information, run Maven with the -e switch > > [INFO] ------------------------------------------------------------------------ > > [INFO] Total time: 8 seconds > > [INFO] Finished at: Sun Feb 25 17:14:36 EST 2007 > > [INFO] Final Memory: 5M/9M > > [INFO] ------------------------------------------------------------------------ > > imac:/G5B/Java/acegisecurity/samples/contacts bcox$ > > > > -- > > Brad Cox, Ph.D: Enterprise Architect, Binary Group > > Mail: [EMAIL PROTECTED]; Phone: 703 361 4751 > > Chat: [EMAIL PROTECTED]; Web: http://virtualschool.edu > > > > ---------- Original Message ----------- > > From: "Brad Cox, Ph.D." <[EMAIL PROTECTED]> > > To: "Brian O'Neill" <[EMAIL PROTECTED]> > > Cc: Brad Cox <[EMAIL PROTECTED]>, Phillip Anderson > > <[EMAIL PROTECTED]>, Jeremy Thorn <[EMAIL PROTECTED]> > > Sent: Sun, 25 Feb 2007 12:40:47 -0500 > > Subject: Mavn problems. Can you help? > > >> > > OK, self-help and google's just not doing it for this. Could someone >> > > here help? >> > > >> > > I've figured out there are two mavens in use by different projects. So >> > > I've blown away everything they might depend on (~/.m2, ~/.maven) and >> > > installed both with recommended names; maven for maven1, mvn for maven2). >> > > >> > > I've enclosed a typical log of what I'm seeing for both of them; this >> > > one uses maven1. >> > > >> > > The puzzling thing is, URL's like >> > > http://www.ibiblio.org/maven/ehcache/jars/ehcache-1.1.jar resolve fine >> > > in firefox. There is no proxy configured under Networking. >> > > >> > > imac:/G5B/Java/acegisecurity/core bcox$ maven jar:install >> > > __ __ >> > > | \/ |__ _Apache__ ___ >> > > | |\/| / _` \ V / -_) ' \ ~ intelligent projects ~ >> > > |_| |_\__,_|\_/\___|_||_| v. 1.0.2 >> > > >> > > Attempting to download ehcache-1.1.jar. >> > > Error retrieving artifact from >> > > [http://www.ibiblio.org/maven/ehcache/jars/ehcache-1.1.jar]: >> > > java.io.IOException: Unknown error downloading; status code was: 301 >> > > WARNING: Failed to download ehcache-1.1.jar. >> > > Attempting to download aopalliance-1.0.jar. >> > > Error retrieving artifact from >> > > [http://www.ibiblio.org/maven/aopalliance/jars/aopalliance-1.0.jar]: >> > > java.io.IOException: Unknown error downloading; status code was: 301 >> > > WARNING: Failed to download aopalliance-1.0.jar. >> > > Attempting to download commons-lang-2.1.jar. >> > > Error retrieving artifact from >> > > [http://www.ibiblio.org/maven/commons-lang/jars/commons-lang-2.1.jar]: >> > > java.io.IOException: Unknown error downloading; status code was: 301 >> > > WARNING: Failed to download commons-lang-2.1.jar. >> > > Attempting to download commons-collections-3.1.jar. >> > > Error retrieving artifact from >> > > > > [http://www.ibiblio.org/maven/commons-collections/jars/commons-collectio ns-3.1.jar]: > > >> > > java.io.IOException: Unknown error downloading; status code was: 301 >> > > WARNING: Failed to download commons-collections-3.1.jar. >> > > Attempting to download commons-logging-1.0.4.jar. >> > > Error retrieving artifact from >> > > [http://www.ibiblio.org/maven/commons-logging/jars/commons-logging-1.0.4 .jar]: >> > > java.io.IOException: Unknown error downloading; status code was: 301 >> > > WARNING: Failed to download commons-logging-1.0.4.jar. >> > > Attempting to download jstl-1.0.6.jar. >> > > Error retrieving artifact from >> > > [http://www.ibiblio.org/maven/javax.servlet/jars/jstl-1.0.6.jar]: >> > > java.io.IOException: Unknown error downloading; status code was: 301 >> > > WARNING: Failed to download jstl-1.0.6.jar. >> > > Attempting to download servlet-api-2.4.jar. >> > > Error retrieving artifact from >> > > [http://www.ibiblio.org/maven/javax.servlet/jars/servlet-api-2.4.jar]: >> > > java.io.IOException: Unknown error downloading; status code was: 301 >> > > WARNING: Failed to download servlet-api-2.4.jar. >> > > Attempting to download oro-2.0.8.jar. >> > > Error retrieving artifact from >> > > [http://www.ibiblio.org/maven/oro/jars/oro-2.0.8.jar]: >> > > java.io.IOException: Unknown error downloading; status code was: 301 >> > > WARNING: Failed to download oro-2.0.8.jar. >> > > Attempting to download hsqldb-1.8.0.4.jar. >> > > Error retrieving artifact from >> > > [http://www.ibiblio.org/maven/hsqldb/jars/hsqldb-1.8.0.4.jar]: >> > > java.io.IOException: Unknown error downloading; status code was: 301 >> > > WARNING: Failed to download hsqldb-1.8.0.4.jar. >> > > Attempting to download junit-3.8.1.jar. >> > > Error retrieving artifact from >> > > [http://www.ibiblio.org/maven/junit/jars/junit-3.8.1.jar]: >> > > java.io.IOException: Unknown error downloading; status code was: 301 >> > > WARNING: Failed to download junit-3.8.1.jar. >> > > Attempting to download spring-1.2.8.jar. >> > > Error retrieving artifact from >> > > [http://www.ibiblio.org/maven/org.springframework/jars/spring-1.2.8.jar] : >> > > java.io.IOException: Unknown error downloading; status code was: 301 >> > > WARNING: Failed to download spring-1.2.8.jar. >> > > Attempting to download spring-mock-1.2.8.jar. >> > > Error retrieving artifact from >> > > [http://www.ibiblio.org/maven/org.springframework/jars/spring-mock-1.2.8 .jar]: >> > > java.io.IOException: Unknown error downloading; status code was: 301 >> > > WARNING: Failed to download spring-mock-1.2.8.jar. >> > > Attempting to download commons-attributes-api-2.1.jar. >> > > Error retrieving artifact from >> > > > > [http://www.ibiblio.org/maven/commons-attributes/jars/commons-attributes -api-2.1.jar]: > > >> > > java.io.IOException: Unknown error downloading; status code was: 301 >> > > WARNING: Failed to download commons-attributes-api-2.1.jar. >> > > Attempting to download commons-attributes-compiler-2.1.jar. >> > > Error retrieving artifact from >> > > > > [http://www.ibiblio.org/maven/commons-attributes/jars/commons-attributes -compiler-2.1.jar]: > > >> > > java.io.IOException: Unknown error downloading; status code was: 301 >> > > WARNING: Failed to download commons-attributes-compiler-2.1.jar. >> > > Attempting to download standard-1.0.6.jar. >> > > Error retrieving artifact from >> > > [http://www.ibiblio.org/maven/taglibs/jars/standard-1.0.6.jar]: >> > > java.io.IOException: Unknown error downloading; status code was: 301 >> > > WARNING: Failed to download standard-1.0.6.jar. >> > > Attempting to download casclient-2.0.11.jar. >> > > Error retrieving artifact from >> > > [http://www.ibiblio.org/maven/cas/jars/casclient-2.0.11.jar]: >> > > java.io.IOException: Unknown error downloading; status code was: 301 >> > > WARNING: Failed to download casclient-2.0.11.jar. >> > > Attempting to download jcifs-1.2.6.jar. >> > > Error retrieving artifact from >> > > [http://www.ibiblio.org/maven/org.samba.jcifs/jars/jcifs-1.2.6.jar]: >> > > java.io.IOException: Unknown error downloading; status code was: 301 >> > > WARNING: Failed to download jcifs-1.2.6.jar. >> > > Attempting to download aspectjrt-1.2.jar. >> > > Error retrieving artifact from >> > > [http://www.ibiblio.org/maven/aspectj/jars/aspectjrt-1.2.jar]: >> > > java.io.IOException: Unknown error downloading; status code was: 301 >> > > WARNING: Failed to download aspectjrt-1.2.jar. >> > > Attempting to download jsp-api-2.0.jar. >> > > Error retrieving artifact from >> > > [http://www.ibiblio.org/maven/javax.servlet/jars/jsp-api-2.0.jar]: >> > > java.io.IOException: Unknown error downloading; status code was: 301 >> > > WARNING: Failed to download jsp-api-2.0.jar. >> > > Attempting to download apacheds-core-1.0-RC1.jar. >> > > Error retrieving artifact from >> > > > > [http://www.ibiblio.org/maven/org.apache.directory.server/jars/apacheds- core-1.0-RC1.jar]: > > >> > > java.io.IOException: Unknown error downloading; status code was: 301 >> > > WARNING: Failed to download apacheds-core-1.0-RC1.jar. >> > > Attempting to download apacheds-core-shared-1.0-RC1.jar. >> > > Error retrieving artifact from >> > > > > [http://www.ibiblio.org/maven/org.apache.directory.server/jars/apacheds- core-shared-1.0-RC1.jar]: > > >> > > java.io.IOException: Unknown error downloading; status code was: 301 >> > > WARNING: Failed to download apacheds-core-shared-1.0-RC1.jar. >> > > Attempting to download shared-asn1-0.9.5.jar. >> > > Error retrieving artifact from >> > > > > [http://www.ibiblio.org/maven/org.apache.directory.shared/jars/shared-as n1-0.9.5.jar]: > > >> > > java.io.IOException: Unknown error downloading; status code was: 301 >> > > WARNING: Failed to download shared-asn1-0.9.5.jar. >> > > Attempting to download shared-ldap-0.9.5.jar. >> > > Error retrieving artifact from >> > > > > [http://www.ibiblio.org/maven/org.apache.directory.shared/jars/shared-ld ap-0.9.5.jar]: > > >> > > java.io.IOException: Unknown error downloading; status code was: 301 >> > > WARNING: Failed to download shared-ldap-0.9.5.jar. >> > > Attempting to download antlr-2.7.2.jar. >> > > Error retrieving artifact from >> > > [http://www.ibiblio.org/maven/antlr/jars/antlr-2.7.2.jar]: >> > > java.io.IOException: Unknown error downloading; status code was: 301 >> > > WARNING: Failed to download antlr-2.7.2.jar. >> > > Attempting to download jdbm-1.0.jar. >> > > Error retrieving artifact from >> > > [http://www.ibiblio.org/maven/jdbm/jars/jdbm-1.0.jar]: >> > > java.io.IOException: Unknown error downloading; status code was: 301 >> > > WARNING: Failed to download jdbm-1.0.jar. >> > > Attempting to download regexp-1.2.jar. >> > > Error retrieving artifact from >> > > [http://www.ibiblio.org/maven/regexp/jars/regexp-1.2.jar]: >> > > java.io.IOException: Unknown error downloading; status code was: 301 >> > > WARNING: Failed to download regexp-1.2.jar. >> > > Attempting to download slf4j-log4j12-1.0-rc5.jar. >> > > Error retrieving artifact from >> > > [http://www.ibiblio.org/maven/org.slf4j/jars/slf4j-log4j12-1.0-rc5.jar]: >> > > java.io.IOException: Unknown error downloading; status code was: 301 >> > > WARNING: Failed to download slf4j-log4j12-1.0-rc5.jar. >> > > Attempting to download log4j-1.2.9.jar. >> > > Error retrieving artifact from >> > > [http://www.ibiblio.org/maven/log4j/jars/log4j-1.2.9.jar]: >> > > java.io.IOException: Unknown error downloading; status code was: 301 >> > > WARNING: Failed to download log4j-1.2.9.jar. >> > > Attempting to download jmock-1.0.1.jar. >> > > Error retrieving artifact from >> > > [http://www.ibiblio.org/maven/jmock/jars/jmock-1.0.1.jar]: >> > > java.io.IOException: Unknown error downloading; status code was: 301 >> > > WARNING: Failed to download jmock-1.0.1.jar. >> > > The build cannot continue because of the following unsatisfied dependencies: >> > > >> > > ehcache-1.1.jar (try downloading from http://ehcache.sourceforge.net) >> > > aopalliance-1.0.jar (try downloading from >> > > http://aopalliance.sourceforge.net) >> > > commons-lang-2.1.jar (try downloading from >> > > http://jakarta.apache.org/commons) >> > > commons-collections-3.1.jar (try downloading from >> > > http://jakarta.apache.org/commons) >> > > commons-logging-1.0.4.jar (try downloading from >> > > http://jakarta.apache.org/commons) >> > > jstl-1.0.6.jar >> > > servlet-api-2.4.jar (try downloading from >> > > http://java.sun.com/products/servlet) >> > > oro-2.0.8.jar (try downloading from http://jakarta.apache.org/oro/) >> > > hsqldb-1.8.0.4.jar (try downloading from http://hsqldb.sourceforge.net/) >> > > junit-3.8.1.jar >> > > spring-1.2.8.jar (try downloading from http://www.springframework.org) >> > > spring-mock-1.2.8.jar (try downloading from http://www.springframework.org) >> > > commons-attributes-api-2.1.jar (try downloading from >> > > http://jakarta.apache.org/commons) >> > > commons-attributes-compiler-2.1.jar (try downloading from >> > > http://jakarta.apache.org/commons) >> > > standard-1.0.6.jar (try downloading from http://jakarta.apache.org/taglibs/) >> > > casclient-2.0.11.jar (try downloading from http://www.yale.edu/tp/cas) >> > > jcifs-1.2.6.jar (try downloading from http://jcifs.samba.org/) >> > > aspectjrt-1.2.jar (try downloading from http://www.eclipse.org/aspectj) >> > > jsp-api-2.0.jar (try downloading from http://java.sun.com/products/jsp) >> > > apacheds-core-1.0-RC1.jar >> > > apacheds-core-shared-1.0-RC1.jar >> > > shared-asn1-0.9.5.jar >> > > shared-ldap-0.9.5.jar >> > > antlr-2.7.2.jar >> > > jdbm-1.0.jar >> > > regexp-1.2.jar >> > > slf4j-log4j12-1.0-rc5.jar >> > > log4j-1.2.9.jar >> > > jmock-1.0.1.jar >> > > >> > > Total time: 34 seconds >> > > Finished at: Sun Feb 25 12:31:55 EST 2007 >> > > >> > > imac:/G5B/Java/acegisecurity/core bcox$ > > ------- End of Original Message ------- ------- End of Original Message ------- --- 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.php&p=sourceforge&CID=DEVDEV _______________________________________________ Home: http://acegisecurity.org Acegisecurity-developer mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/acegisecurity-developer
