Do you have a maven repo (Nexus or other). If not, get one. Your life will get a lot easier.
It looks like this is something in your settings.xml. Can you show it as well.
Ron On 18/06/2012 2:19 AM, rlou wrote:
I am behind a proxy and my settings.xml works just fine and the maven project (from book sample of ActiveMQ In Action) ran successfully, too. What's troubling me is this warning message at the beginning of "mvn clean install" command. It seems like i am still having problem with my settings.xml but i have no clue what that will be. I am listing the pom.xml and complete run message and hopefully that's enough. Feel free to request more info as you saw fit. Thans a lot. ----------------------------------------------------------- pom.xml ----------------------------------------------------------- <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/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>org.apache.activemq.book</groupId> <artifactId>activemq-in-action-examples</artifactId> <version>1.0-SNAPSHOT</version> <name>ActiveMQ in Action Examples</name> <description>ActiveMQ in Action Example Code</description> <properties> <activemq-version>5.3.2</activemq-version> <camel-version>2.0.0</camel-version> <commons-logging-version>1.1</commons-logging-version> <commons-pool-version>1.4</commons-pool-version> <geronimo-spec-version>1.1</geronimo-spec-version> <junit-version>4.4</junit-version> <log4j-version>1.2.14</log4j-version> <springframework-version>2.5.6</springframework-version> <stax-version>1.0.1</stax-version> <woodstox-version>3.2.7</woodstox-version> <xbean-version>3.4.3</xbean-version> </properties> <dependencies> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>${junit-version}</version> <scope>test</scope> </dependency> <dependency> <groupId>org.apache.activemq</groupId> <artifactId>activemq-core</artifactId> <version>${activemq-version}</version> <exclusions> <exclusion> <groupId>org.apache.activemq</groupId> <artifactId>activeio-core</artifactId> </exclusion> <exclusion> <groupId>org.apache.camel</groupId> <artifactId>camel-core</artifactId> </exclusion> </exclusions> </dependency> <dependency> <groupId>org.apache.geronimo.specs</groupId> <artifactId>geronimo-jms_1.1_spec</artifactId> <version>${geronimo-spec-version}</version> </dependency> <dependency> <groupId>org.apache.geronimo.specs</groupId> <artifactId>geronimo-j2ee-management_1.0_spec</artifactId> <version>${geronimo-spec-version}</version> </dependency> <dependency> <groupId>org.apache.activemq</groupId> <artifactId>activemq-optional</artifactId> <version>${activemq-version}</version> </dependency> <dependency> <groupId>org.apache.activemq</groupId> <artifactId>activemq-pool</artifactId> <version>${activemq-version}</version> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring</artifactId> <version>${springframework-version}</version> </dependency> <dependency> <groupId>org.apache.xbean</groupId> <artifactId>xbean-spring</artifactId> <version>${xbean-version}</version> </dependency> <dependency> <groupId>stax</groupId> <artifactId>stax-api</artifactId> <version>${stax-version}</version> </dependency> <dependency> <groupId>woodstox</groupId> <artifactId>wstx-asl</artifactId> <version>${woodstox-version}</version> </dependency> <dependency> <groupId>org.apache.activemq</groupId> <artifactId>activemq-camel</artifactId> <version>${activemq-version}</version> </dependency> <dependency> <groupId>org.apache.camel</groupId> <artifactId>camel-jms</artifactId> <version>${camel-version}</version> </dependency> <dependency> <groupId>org.apache.camel</groupId> <artifactId>camel-web</artifactId> <classifier>classes</classifier> <version>${camel-version}</version> </dependency> <dependency> <groupId>org.apache.camel</groupId> <artifactId>camel-core</artifactId> <version>${camel-version}</version> </dependency> <dependency> <groupId>org.apache.camel</groupId> <artifactId>camel-spring</artifactId> <version>${camel-version}</version> </dependency> <dependency> <groupId>commons-logging</groupId> <artifactId>commons-logging</artifactId> <version>${commons-logging-version}</version> <exclusions> <exclusion> <groupId>avalon-framework</groupId> <artifactId>avalon-framework</artifactId> </exclusion> <exclusion> <groupId>logkit</groupId> <artifactId>logkit</artifactId> </exclusion> <exclusion> <groupId>javax.servlet</groupId> <artifactId>servlet-api</artifactId> </exclusion> </exclusions> </dependency> <dependency> <groupId>log4j</groupId> <artifactId>log4j</artifactId> <version>${log4j-version}</version> </dependency> </dependencies> <build> <finalName>activemq-in-action-examples</finalName> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>2.4</version> <configuration> <target>1.5</target> <source>1.5</source> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <version>2.12</version> <configuration> <failIfNoTests>false</failIfNoTests> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-assembly-plugin</artifactId> <version>2.3</version> <executions> <execution> <id>example-src</id> <phase>package</phase> <goals> <goal>single</goal> </goals> <configuration> <descriptors> <descriptor>${project.basedir}/src/main/assembly/activemq-in-action-src.xml</descriptor> </descriptors> </configuration> </execution> </executions> </plugin> </plugins> </build> <repositories> <repository> <id>java.net</id> <name>java.net</name> <url>http://download.java.net/maven/2</url> <layout>default</layout> </repository> </repositories> </project> ----------------------------------------------------------- Complete run message from "mvn clean install -e" command ----------------------------------------------------------- C:\JAVA\PROJECTS_MAVEN\others\amq-in-action-example-src>mvn clean install -e [INFO] Error stacktraces are turned on. [INFO] Scanning for projects... [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building ActiveMQ in Action Examples 1.0-SNAPSHOT [INFO] ------------------------------------------------------------------------ [WARNING] Could not transfer metadata org.springframework:spring-core/maven-metadata.xml from/to m1.dev.java.net (http://download.java.net/maven/1): No connector available to access repository m1.dev. java.net (http://download.java.net/maven/1) of type legacy using the available factories WagonRepositoryConnectorFactory [WARNING] Could not transfer metadata org.springframework:spring/maven-metadata.xml from/to m1.dev.java.net (http://download.java.net/maven/1): No connector available to access repository m1.dev.java. net (http://download.java.net/maven/1) of type legacy using the available factories WagonRepositoryConnectorFactory [WARNING] Could not transfer metadata org.springframework:spring-beans/maven-metadata.xml from/to m1.dev.java.net (http://download.java.net/maven/1): No connector available to access repository m1.dev .java.net (http://download.java.net/maven/1) of type legacy using the available factories WagonRepositoryConnectorFactory [WARNING] Could not transfer metadata org.springframework:spring-context/maven-metadata.xml from/to m1.dev.java.net (http://download.java.net/maven/1): No connector available to access repository m1.d ev.java.net (http://download.java.net/maven/1) of type legacy using the available factories WagonRepositoryConnectorFactory [WARNING] Could not transfer metadata org.springframework:spring-web/maven-metadata.xml from/to m1.dev.java.net (http://download.java.net/maven/1): No connector available to access repository m1.dev.j ava.net (http://download.java.net/maven/1) of type legacy using the available factories WagonRepositoryConnectorFactory [INFO] [INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ activemq-in-action-examples --- [INFO] Deleting C:\JAVA\PROJECTS_MAVEN\others\amq-in-action-example-src\target [INFO] [INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ activemq-in-action-examples --- [debug] execute contextualize [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 49 resources [INFO] [INFO] --- maven-compiler-plugin:2.4:compile (default-compile) @ activemq-in-action-examples --- [INFO] Compiling 68 source files to C:\JAVA\PROJECTS_MAVEN\others\amq-in-action-example-src\target\classes [INFO] [INFO] --- maven-resources-plugin:2.5:testResources (default-testResources) @ activemq-in-action-examples --- [debug] execute contextualize [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 1 resource [INFO] [INFO] --- maven-compiler-plugin:2.4:testCompile (default-testCompile) @ activemq-in-action-examples --- [INFO] Compiling 3 source files to C:\JAVA\PROJECTS_MAVEN\others\amq-in-action-example-src\target\test-classes [INFO] [INFO] --- maven-surefire-plugin:2.12:test (default-test) @ activemq-in-action-examples --- [INFO] Surefire report directory: C:\JAVA\PROJECTS_MAVEN\others\amq-in-action-example-src\target\surefire-reports ------------------------------------------------------- T E S T S ------------------------------------------------------- Running org.apache.activemq.book.ch10.ScalingBrokerConfigTest 10:19:24,262 | INFO | Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@a17083: defining beans [org.springframework.beans.factory.config.PropertyPla ceholderConfigurer#0,org.apache.activemq.xbean.XBeanBrokerService#0]; root of factory hierarchy 10:19:24,575 | INFO | Using Persistence Adapter: org.apache.activemq.store.kahadb.KahaDBPersistenceAdapter@111b910 10:19:24,590 | INFO | JMX consoles can connect to service:jmx:rmi:///jndi/rmi://localhost:1099/jmxrmi 10:19:24,653 | INFO | ActiveMQ 5.3.2 JMS Message Broker (amq-broker) is starting 10:19:24,653 | INFO | For help or more information please see: http://activemq.apache.org/ 10:19:24,825 | INFO | Listening for connections at: nio://localhost:61616 10:19:24,825 | INFO | Connector openwire Started 10:19:24,825 | INFO | ActiveMQ JMS Message Broker (amq-broker, ID:LAJP67PM1-9222-1339953564668-0:0) started 10:19:24,887 | INFO | Successfully connected to tcp://localhost:61616 10:19:24,934 | INFO | Kaha Store using data directory target\data\amq-broker\tmp_storage 10:19:24,950 | INFO | ActiveMQ Message Broker (amq-broker, ID:LAJP67PM1-9222-1339953564668-0:0) is shutting down 10:19:26,887 | INFO | Connector openwire Stopped 10:19:27,137 | INFO | ActiveMQ JMS Message Broker (amq-broker, ID:LAJP67PM1-9222-1339953564668-0:0) stopped Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 3.234 sec Running org.apache.activemq.book.ch11.CamelConfigTest 10:19:27,637 | INFO | Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@df2940: defining beans [org.springframework.beans.factory.config.PropertyPla ceholderConfigurer#0,org.apache.activemq.xbean.XBeanBrokerService#0,template,consumerTemplate,camel:beanPostProcessor,camel,activemq]; root of factory hierarchy 10:19:27,653 | INFO | JMX consoles can connect to service:jmx:rmi:///jndi/rmi://localhost:1099/jmxrmi 10:19:27,653 | INFO | Using Persistence Adapter: MemoryPersistenceAdapter 10:19:27,653 | INFO | ActiveMQ 5.3.2 JMS Message Broker (testBroker) is starting 10:19:27,653 | INFO | For help or more information please see: http://activemq.apache.org/ 10:19:27,653 | INFO | Installing StaticsBroker 10:19:27,653 | INFO | Starting StatisticsBroker 10:19:27,653 | INFO | Listening for connections at: tcp://localhost:61616 10:19:27,653 | INFO | Connector tcp://localhost:61616 Started 10:19:27,653 | INFO | ActiveMQ JMS Message Broker (testBroker, ID:LAJP67PM1-9222-1339953564668-0:1) started 10:19:27,965 | INFO | Connector vm://testBroker Started 10:19:28,059 | INFO | Successfully connected to tcp://localhost:61616 10:19:28,059 | INFO | ActiveMQ Message Broker (testBroker, ID:LAJP67PM1-9222-1339953564668-0:1) is shutting down 10:19:28,106 | WARN | Cannot determine specific JmsMessage type to use from body class. Will use generic JmsMessage. Body is null. If you want to send a POJO then your class might need to implement j ava.io.Serializable, or you can force a specific type by setting the jmsMessageType option on the JMS endpoint. 10:19:30,059 | INFO | Connector tcp://localhost:61616 Stopped 10:19:30,059 | INFO | Connector vm://testBroker Stopped 10:19:30,059 | INFO | ActiveMQ JMS Message Broker (testBroker, ID:LAJP67PM1-9222-1339953564668-0:1) stopped Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.906 sec Results : Tests run: 2, Failures: 0, Errors: 0, Skipped: 0 [INFO] [INFO] --- maven-jar-plugin:2.3.2:jar (default-jar) @ activemq-in-action-examples --- [INFO] Building jar: C:\JAVA\PROJECTS_MAVEN\others\amq-in-action-example-src\target\activemq-in-action-examples.jar [INFO] [INFO] --- maven-assembly-plugin:2.3:single (example-src) @ activemq-in-action-examples --- [INFO] Reading assembly descriptor: C:\JAVA\PROJECTS_MAVEN\others\amq-in-action-example-src/src/main/assembly/activemq-in-action-src.xml [INFO] Building zip: C:\JAVA\PROJECTS_MAVEN\others\amq-in-action-example-src\target\activemq-in-action-examples-src.zip [INFO] [INFO] --- maven-install-plugin:2.3.1:install (default-install) @ activemq-in-action-examples --- [INFO] Installing C:\JAVA\PROJECTS_MAVEN\others\amq-in-action-example-src\target\activemq-in-action-examples.jar to C:\WINDOWS\Profiles\rlou\.m2\repository\org\apache\activemq\book\activemq-in-action- examples\1.0-SNAPSHOT\activemq-in-action-examples-1.0-SNAPSHOT.jar [INFO] Installing C:\JAVA\PROJECTS_MAVEN\others\amq-in-action-example-src\pom.xml to C:\WINDOWS\Profiles\rlou\.m2\repository\org\apache\activemq\book\activemq-in-action-examples\1.0-SNAPSHOT\activemq- in-action-examples-1.0-SNAPSHOT.pom [INFO] Installing C:\JAVA\PROJECTS_MAVEN\others\amq-in-action-example-src\target\activemq-in-action-examples-src.zip to C:\WINDOWS\Profiles\rlou\.m2\repository\org\apache\activemq\book\activemq-in-act ion-examples\1.0-SNAPSHOT\activemq-in-action-examples-1.0-SNAPSHOT-src.zip [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 18.000s [INFO] Finished at: Sun Jun 17 10:19:36 PDT 2012 [INFO] Final Memory: 16M/39M [INFO] ------------------------------------------------------------------------ C:\JAVA\PROJECTS_MAVEN\others\amq-in-action-example-src> -- View this message in context: http://maven.40175.n5.nabble.com/Could-not-transfer-metadata-org-springframework-spring-core-maven-metadata-xml-tp5711441.html Sent from the Maven - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
-- Ron Wheeler President Artifact Software Inc email: [email protected] skype: ronaldmwheeler phone: 866-970-2435, ext 102 --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
