|Re: Getting other kind of files using maven, maven2 provider [message #654329 is a reply to message #654254]
||Tue, 15 February 2011 08:52
| Fabian Baboschi
Registered: December 2009
I read in the documentation that the maven and maven2 tasks are able to get jar files (it doesn't say anything about other types) so that's why I wondered if there is some support for other file extensions.|
My question is actually: how do I specify that I want a .zip file named xxx.zip?
This is what I did:
In the rmap I have:
<provider xsi:type="mp:MavenProvider" componentTypes="maven" readerType="maven2" source="false" mutable="false">
<uri format="http://server/artifactory/repo/" />
<mp:entry artifactId="JarFile" groupId="com.company.group1" name="JarFile" />
<mp:entry artifactId="ZipFile" groupId="com.company.group2" name="ZipFile" />
and in the buckminster.cspex I have:
<cs:dependency componentType="maven" name="ZipFile" versionDesignator="[1.2.1,1.2.1]" versionType="Triplet"/>
<cs:dependency componentType="maven" name="JarFile" versionDesignator="[3.4.0,3.4.0]" versionType="Triplet"/>
So, when I materialize, instead of getting the .zip file, I get only the pom file corresponding to that ZipFile.
I have 2 questions from this:
1. Should I be able to specify that the type of the maven artifact that I want is a zip file or should buckminster find automatically that it's a zip by reading the pom file corresponding to ZipFile?
2. If the answer to the first question is that buckminster parses the pom, what should the pom contain at the minimum and could a complex pom mess it up?
As a note, I'm trying to get it to behave like the maven-ant-tasks dependency task which works on another build (called from ant).
One more note, the server is an artifactory server (don't know if this matters).
If you want, I can also add the content of the pom file.
Powered by FUDForum
. Page generated in 0.02066 seconds