Hi. I just uploaded two artifacts to Artifactory. One (let's call that A) depends on the other (B) and I modified the POM file for A to reflect that.
In my project I add a dependency to A but this results in an error. Maven doesn't find classes contained in B when compiling. If I add an explicit dependency to B however, all is good. So from this I'm assuming that both A and B are reachable when I run maven on my project but the dependency declaration in A is not working properly. Am I falling into some n00b trap here or is something else going on? Below are my POM files for the libraries in question: B: <?xml version="1.0" encoding="UTF-8"?> <project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <modelVersion>4.0.0</modelVersion> <groupId>org.w3c.ddr.simple</groupId> <artifactId>DDRSimpleAPI</artifactId> <version>20081205</version> <description>Artifactory auto generated POM</description> </project> A: <?xml version="1.0" encoding="UTF-8"?> <project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <modelVersion>4.0.0</modelVersion> <groupId>org.openddr.simpleapi.oddr</groupId> <artifactId>OpenDDR-Simple-API</artifactId> <version>1.0.0.21</version> <description>Artifactory auto generated POM</description> <dependencies> <dependency> <groupId>org.apache.commons</groupId> <artifactId>commons-jexl</artifactId> <version>2.1</version> </dependency> <dependency> <groupId>org.slf4j</groupId> <artifactId>slf4j-api</artifactId> <version>1.6.1</version> </dependency> <dependency> <groupId>commons-lang</groupId> <artifactId>commons-lang</artifactId> <version>2.1</version> </dependency> <dependency> <groupId>org.w3c.ddr.simple</groupId> <artifactId>DDRSimpleAPI</artifactId> <version>20081205</version> </dependency> </dependencies> </project> -- View this message in context: http://forums.jfrog.org/Artifact-dependency-problems-tp7579246.html Sent from the Artifactory - Users mailing list archive at Nabble.com. ------------------------------------------------------------------------------ October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register > http://pubads.g.doubleclick.net/gampad/clk?id=60134791&iu=/4140/ostg.clktrk _______________________________________________ Artifactory-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/artifactory-users
