Maven Entry For raml-java-parser


#1

Hi Can i know what is the pom.xml entry for java-raml-parser , i tried the below entry it did not work , Is this dependency available in Maven repo.

	<dependency>
		<groupId>org.raml</groupId>
		<artifactId>raml-parser</artifactId>
		<version>0.9-SNAPSHOT</version>
	</dependency>

#2

Hi @Paul,

having a quick look at the Maven repo - the parser is indeed not there http://search.maven.org/#search|ga|1|org.raml

Anyways, I am not a Maven expert - but I found this explanation in Stackoverflow of how you can load dependencies from a Github account:

Maybe that helps you :wink:


#3

Have you added the Mulesoft Repository on your pom file?


#4

@agines i have not added Mulesoft Repository into pom file.If you can you share the pom file snippet on how to add it it would be really helpful.


#5

Hi @Paul This is our current config. We are not using the 0.9-SNAPSHOT so I dont know if this will be useful for you, anyway here it goes:

       <repository>
            <id>mulesoft-releases</id>
            <name>MuleSoft Releases Repository</name>
            <url>https://repository-master.mulesoft.org/releases/</url>
        </repository>

   <dependency>
            <groupId>org.raml</groupId>
            <artifactId>raml-parser</artifactId>
            <version>0.8.9</version>
        </dependency>

Kind regards,

Alex


#6

@agines thank you for the entries . I did the below changes to my pom.xml and settings.xml in .m2 folder and things started to work

pom.xml:

<repository>
	<id>mulesoft-releases</id>
	<name>MuleSoft Repository</name>
	<url>https://repository-master.mulesoft.org/releases/</url>
	<layout>default</layout>
</repository>
<repository>
	<id>mulesoft-snapshots</id>
	<name>MuleSoft Snapshot Repository</name>
	<url>https://repository-master.mulesoft.org/snapshots/</url>
	<layout>default</layout>
</repository>
<dependency>
		<groupId>org.raml</groupId>
		<artifactId>raml-parser</artifactId>
	        <version>0.8.11</version>
</dependency>

Settings.xml

<profile>
    <id>Mule</id> 
    <activation> 
        <activeByDefault>true</activeByDefault> 
    </activation>
    <repositories> 
        <repository> 
            <id>MuleRepository</id> 
            <name>MuleRepository</name> 
            <url>https://repository.mulesoft.org/nexus-ee/content/repositories/releases-ee/</url> 
            <layout>default</layout> 
            <releases> 
                <enabled>true</enabled> 
            </releases> 
            <snapshots> 
                <enabled>true</enabled> 
            </snapshots> 
        </repository> 
    </repositories>
</profile>
<server>
      <id>Mule</id>
      <username>xyz</username>
      <password>xyz</password>
</server>

I am not a expert on maven not sure if the settings.xml entry is required , but it was suggested on the mulesoft site
configuring pom and settings for mule dependencies