Hi,

I'm using Maven 3.0.3.  Within the last hour, this started happening, and I
can't figure out why.  When I run "mvn dependency:tree" or "mvn clean
compile", I get this error -- "Access denied to:
http://repository.jboss.org/maven2/apache-log4j/log4j/1.2.14/log4j-1.2.14.pom,
ReasonPhrase:Forbidden" ...


Daves-MacBook-Pro:didoclient davea$ mvn clean compile
[INFO] Scanning for projects...
[WARNING] 
[WARNING] Some problems were encountered while building the effective model
for org.myco.subco:didoclient:jar:1.0-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for
org.apache.maven.plugins:maven-install-plugin is missing. @ line 256, column
12
[WARNING] 
[WARNING] It is highly recommended to fix these problems because they
threaten the stability of your build.
[WARNING] 
[WARNING] For this reason, future Maven versions might no longer support
building such malformed projects.
[WARNING] 
[INFO]                                                                         
[INFO]
------------------------------------------------------------------------
[INFO] Building didoclient 1.0-SNAPSHOT
[INFO]
------------------------------------------------------------------------
Downloading:
http://repo1.maven.org/maven2/apache-log4j/log4j/1.2.14/log4j-1.2.14.pom
Downloading:
http://repository.jboss.org/maven2/apache-log4j/log4j/1.2.14/log4j-1.2.14.pom
[INFO]
------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 1.916s
[INFO] Finished at: Mon Aug 06 21:29:27 CDT 2012
[INFO] Final Memory: 4M/81M
[INFO]
------------------------------------------------------------------------
[ERROR] Failed to execute goal on project didoclient: Could not resolve
dependencies for project org.myco.subco:didoclient:jar:1.0-SNAPSHOT: Failed
to collect dependencies for [quickbase:quickbase:jar:1.0 (compile),
log4j:log4j:jar:1.2.15 (compile), org.hibernate:hibernate-core:jar:4.1.5.SP1
(compile), org.hibernate:hibernate-validator:jar:4.2.0.Final (compile),
org.hibernate.javax.persistence:hibernate-jpa-2.0-api:jar:1.0.1.Final
(compile), org.hibernate:hibernate-entitymanager:jar:4.1.5.SP1 (compile),
javax.validation:validation-api:jar:1.0.0.GA (compile),
org.slf4j:slf4j-api:jar:1.6.4 (compile),
mysql:mysql-connector-java:jar:5.0.5 (compile),
net.sf.opencsv:opencsv:jar:2.3 (compile), commons-lang:commons-lang:jar:2.3
(compile), google:gdata-core:jar:1.0 (compile), quartz:quartz:jar:1.5.2
(provided), jboss:jboss-annotations-ejb3:jar:4.2.2.GA (provided),
org.jboss.logging:jboss-logging:jar:3.0.0.Beta1 (compile),
org.jboss.logging:jboss-logging-log4j:jar:2.0.5.GA (compile),
jboss:jbossall-client:jar:3.2.3 (provided),
org.apache.geronimo.specs:geronimo-ejb_3.0_spec:jar:1.0 (compile),
junit:junit:jar:4.8.1 (test), org.hsqldb:hsqldb:jar:2.0.0 (test),
org.mockito:mockito-all:jar:1.9.0 (test)]: Failed to read artifact
descriptor for apache-log4j:log4j:jar:1.2.14: Could not transfer artifact
apache-log4j:log4j:pom:1.2.14 from/to repository.jboss.org
(http://repository.jboss.org/maven2/): Access denied to:
http://repository.jboss.org/maven2/apache-log4j/log4j/1.2.14/log4j-1.2.14.pom,
ReasonPhrase:Forbidden. -> [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/DependencyResolutionException



Why is Maven trying to download log4j-1.2.14.pom and how can i instruct it
not to (or rather, what is the right repository where it should be
searching)?

Below is my pom file ...


<project xmlns="http://maven.apache.org/POM/4.0.0";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
        xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/xsd/maven-4.0.0.xsd";>
        <modelVersion>4.0.0</modelVersion>

        <groupId>org.mainco.subco</groupId>
        <artifactId>didoclient</artifactId>
        <version>1.0-SNAPSHOT</version>
        <packaging>jar</packaging>

        <name>didoclient</name>
        <url>http://maven.apache.org</url>

        <properties>
                
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
                <hibernate.version>4.1.5.SP1</hibernate.version>
        </properties>

        <repositories>
                <repository>
                        <id>jboss-public-repository</id>
                        <name>JBoss Repository</name>
                        
<url>http://repository.jboss.org/nexus/content/groups/public-jboss/</url>
                </repository>
                <repository>
                        <id>Main Maven Repo</id>
                        <name>Maven Repo</name>
                        <url>http://repo1.maven.org/maven2</url>
                </repository>
        </repositories>

        <dependencies>
                <dependency>
                        <groupId>quickbase</groupId>
                        <artifactId>quickbase</artifactId>
                        <version>1.0</version>
                </dependency>
                <dependency>
                        <groupId>log4j</groupId>
                        <artifactId>log4j</artifactId>
                        <version>1.2.15</version>
                        <exclusions>
                                <exclusion>
                                        <groupId>com.sun.jmx</groupId>
                                        <artifactId>jmxri</artifactId>
                                </exclusion>
                                <exclusion>
                                        <groupId>com.sun.jdmk</groupId>
                                        <artifactId>jmxtools</artifactId>
                                </exclusion>
                                <exclusion>
                                        <groupId>javax.jms</groupId>
                                        <artifactId>jms</artifactId>
                                </exclusion>
                        </exclusions>
                </dependency>
                
                <dependency>
                        <groupId>org.hibernate</groupId>
                        <artifactId>hibernate-core</artifactId>
                        <version>${hibernate.version}</version>
                        <exclusions>
                                <exclusion>
                                        
<groupId>org.jboss.spec.javax.transaction</groupId>
                                        
<artifactId>jboss-transaction-api_1.1_spec</artifactId>
                                </exclusion>
                                <exclusion>
                                        <groupId>org.jboss.logging</groupId>
                                        <artifactId>jboss-logging</artifactId>
                                </exclusion>
                        </exclusions>
                </dependency>
                <dependency>
                        <groupId>org.hibernate</groupId>
                        <artifactId>hibernate-validator</artifactId>
                        <version>4.2.0.Final</version>
                </dependency>

                <dependency>
                        <groupId>org.hibernate.javax.persistence</groupId>
                        <artifactId>hibernate-jpa-2.0-api</artifactId>
                        <version>1.0.1.Final</version>
                </dependency>
                <dependency>
                        <groupId>org.hibernate</groupId>
                        <artifactId>hibernate-entitymanager</artifactId>
                        <version>${hibernate.version}</version>
                        <exclusions>
                                <exclusion>
                                        
<groupId>org.jboss.spec.javax.transaction</groupId>
                                        
<artifactId>jboss-transaction-api_1.1_spec</artifactId>
                                </exclusion>
                                <exclusion>
                                        <groupId>org.jboss.logging</groupId>
                                        <artifactId>jboss-logging</artifactId>
                                </exclusion>
                        </exclusions>
                </dependency>
                <dependency>
                        <groupId>javax.validation</groupId>
                        <artifactId>validation-api</artifactId>
                        <version>1.0.0.GA</version>
                </dependency>
                <dependency>
                        <groupId>org.slf4j</groupId>
                        <artifactId>slf4j-api</artifactId>
                        <version>1.6.4</version>
                </dependency>
                <dependency>
                        <groupId>mysql</groupId>
                        <artifactId>mysql-connector-java</artifactId>
                        <version>5.0.5</version>
                </dependency>
                <dependency>
                        <groupId>net.sf.opencsv</groupId>
                        <artifactId>opencsv</artifactId>
                        <version>2.3</version>
                </dependency>
                <dependency>
                        <groupId>commons-lang</groupId>
                        <artifactId>commons-lang</artifactId>
                        <version>2.3</version>
                </dependency>
                <dependency>
                        <groupId>google</groupId>
                        <artifactId>gdata-core</artifactId>
                        <version>1.0</version>
                        <type>jar</type>
                </dependency>
                <dependency>
                        
                        <groupId>quartz</groupId>
                        <artifactId>quartz</artifactId>
                        <version>1.5.2</version>
                        <scope>provided</scope>
                </dependency>
                <dependency>
                        <groupId>jboss</groupId>
                        <artifactId>jboss-annotations-ejb3</artifactId>
                        <version>4.2.2.GA</version>
                        <scope>provided</scope>
                </dependency>
                <dependency>
                        <groupId>org.jboss.logging</groupId>
                        <artifactId>jboss-logging</artifactId>
                        
                        <version>3.1.1.GA</version>
                </dependency>
                <dependency>
                        <groupId>org.jboss.logging</groupId>
                        <artifactId>jboss-logging-log4j</artifactId>
                        <version>2.0.5.GA</version>
                </dependency>
                <dependency>
                        <groupId>jboss</groupId>
                        <artifactId>jbossall-client</artifactId>
                        <version>3.2.3</version>
                        <scope>provided</scope>
                </dependency>

                <dependency>
                        <groupId>org.apache.geronimo.specs</groupId>
                        <artifactId>geronimo-ejb_3.0_spec</artifactId>
                        <version>1.0</version>
                </dependency>
                <dependency>
                        <groupId>junit</groupId>
                        <artifactId>junit</artifactId>
                        <version>4.8.1</version>
                        <scope>test</scope>
                </dependency>
                <dependency>
                        <groupId>org.hsqldb</groupId>
                        <artifactId>hsqldb</artifactId>
                        <version>2.0.0</version>
                        <scope>test</scope>
                </dependency>
                <dependency>
                        <groupId>org.mockito</groupId>
                        <artifactId>mockito-all</artifactId>
                        <version>1.9.0</version>
                        <scope>test</scope>
                </dependency>
        </dependencies>

        <build>
                <plugins>
                        <plugin>
                                <artifactId>maven-assembly-plugin</artifactId>
                                <version>2.2.1</version>
                                <configuration>
                                        <descriptorRefs>
                                                
<descriptorRef>jar-with-dependencies</descriptorRef>
                                        </descriptorRefs>
                                </configuration>
                                <executions>
                                        <execution>
                                                <id>make-assembly</id>
                                                <phase>package</phase> 
                                                <goals>
                                                        <goal>single</goal>
                                                </goals>
                                        </execution>
                                </executions>
                        </plugin>
                        <plugin>
                                <groupId>org.apache.maven.plugins</groupId>
                                <artifactId>maven-jar-plugin</artifactId>
                                <version>2.3.1</version>
                                <configuration>
                                        <archive>
                                                <manifest>
                                                
<mainClass>org.collegeboard.springboard.util.ProtectedConfigFile</mainClass>
                                                        
                                                
<mainClass>org.collegeboard.springboard.orders.ImportOrdersMain</mainClass>
                                                        
                                                
<mainClass>org.collegeboard.springboard.accesscodes.AccessCodeImporterMain</mainClass>
                                                </manifest>
                                        </archive>
                                </configuration>
                        </plugin>
                        <plugin>
                                <artifactId>maven-antrun-plugin</artifactId>
                                <executions>
                                        <execution>
                                                <id>TestCompileCopies</id>
                                                <phase>test-compile</phase>
                                                <configuration>
                                                        <tasks>
                                                                <copy 
file="src/main/resources/${log4j.properties.file}"
                                                                        
tofile="${project.build.outputDirectory}/log4j.properties" />
                                                                <copy 
file="src/main/resources/${hibernate.cfg.xml.file}"
                                                                        
tofile="${project.build.outputDirectory}/hibernate.cfg.xml" />
                                                        </tasks>
                                                </configuration>
                                                <goals>
                                                        <goal>run</goal>
                                                </goals>
                                        </execution>
                                        <execution>
                                                <id>PackageCopies</id>
                                                <phase>package</phase>
                                                <configuration>
                                                        <tasks>
                                                                <copy 
file="src/main/resources/${hibernate.cfg.xml.file}"
                                                                        
tofile="${project.build.outputDirectory}/hibernate.cfg.xml" />
                                                        </tasks>
                                                </configuration>
                                                <goals>
                                                        <goal>run</goal>
                                                </goals>
                                        </execution>
                                </executions>
                        </plugin>
                        <plugin>
                                <groupId>org.apache.maven.plugins</groupId>
                                <artifactId>maven-install-plugin</artifactId>
                                <executions>
                                        <execution>
                                                <id>install-quickbase-jar</id>
                                                <phase>validate</phase>
                                                <configuration>
                                                        
<file>${basedir}/lib/quickbase.jar</file>
                                                        
<repositoryLayout>default</repositoryLayout>
                                                        
<groupId>quickbase</groupId>
                                                        
<artifactId>quickbase</artifactId>
                                                        <version>1.0</version>
                                                        
<packaging>jar</packaging>
                                                        
<generatePom>true</generatePom>
                                                </configuration>
                                                <goals>
                                                        
<goal>install-file</goal>
                                                </goals>
                                        </execution>
                                </executions>
                        </plugin>
                </plugins>
        </build>

        <profiles>
                <profile>
                        <id>dev</id>
                        <activation>
                                <activeByDefault>true</activeByDefault>
                        </activation>
                        <properties>
                                
<log4j.properties.file>dev_log4j.properties</log4j.properties.file>
                                
<hibernate.cfg.xml.file>dev_hibernate.cfg.xml</hibernate.cfg.xml.file>
                        </properties>
                </profile>
                <profile>
                        <id>qa</id>
                        <properties>
                                
<log4j.properties.file>qa_log4j.properties</log4j.properties.file>
                                
<hibernate.cfg.xml.file>qa_hibernate.cfg.xml</hibernate.cfg.xml.file>
                        </properties>
                </profile>
                <profile>
                        <id>prod</id>
                        <properties>
                                
<log4j.properties.file>prod_log4j.properties</log4j.properties.file>
                                
<hibernate.cfg.xml.file>prod_hibernate.cfg.xml</hibernate.cfg.xml.file>
                        </properties>
                </profile>
        </profiles>

</project>



Thanks, - Dave



--
View this message in context: 
http://maven.40175.n5.nabble.com/Why-is-Maven-trying-to-download-this-log4j-jar-tp5716280.html
Sent from the Maven - Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org

Reply via email to