How to configure Maven2 to publish to Artifactory?
Currently I have a Maven2 project that builds a JAR when you run: mvn clean package I need to now tweak the pom.xml to publish this JAR ( myapp.jar ) to an Artifactory server running at: http://myartifactory/artifactory/simple/myorg/myapp/0.1 I tried adding a <repositories> element to my pom.xml but nothing is being published with this config: <repositories> <repository> <id>myartifactory</id> <url>http://myartifactory/artifactory/simple/</url> </repository> </repositories> Any ideas as to how I could get publishing to work? For simplicity's sake, pretend that this Artifactory repo is