Adding a repo to Maven
tomdoe420 opened this issue · 1 comments
PS C:\apache-maven-3.5.3> mvn -v Apache Maven 3.5.3 (3383c37e1f9e9b3bc3df5050c29c8aff9f295297; 2018-02-24T14:49:05-05:00) Maven home: C:\apache-maven-3.5.3\bin\.. Java version: 10.0.1, vendor: Oracle Corporation Java home: C:\Program Files\Java\jdk-10.0.1 Default locale: en_US, platform encoding: Cp1252 OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"
I wasn't sure where to put the code in the main page so I looked around and found I needed to put it in pom.xml which should be at the root of the directory. I did not find it there and did a search if it was elsewhere. I created it and added 0.8.0 instead of 0.7.8 since that's the latest version at Clojars
Here's what my whole pom.xml looks like
<project> <seettings> <repositories> <repository> <id>clojars.org</id> <url>http://clojars.org/repo</url> </repository> </repositories> </dependency> <dependency> <groupId>json-to-pdf</groupId> <artifactId>json-to-pdf</artifactId> <version>0.8.0</version> </settings> </project>
Running
`PS C:\apache-maven-3.5.3> import .\book_metadata.json
import : The term 'import' is not recognized as the name of a cmdlet, function, script file, or operable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
- import .\book_metadata.json
-
+ CategoryInfo : ObjectNotFound: (import:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException`