maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hervé BOUTEMY <herve.bout...@free.fr>
Subject Re: maven ant task, copy local libs
Date Wed, 07 May 2008 18:37:35 GMT
Le mercredi 07 mai 2008, roman schoenbichler a écrit :
> Hm the last post shouldn't be on this mailing list I guess sry,
>
> but I've one last quesiton.
>
> How can I copy one specific library from my local  repository to the ear..?
>
> or better, how can I access one specific lib from my repository..?

(since 2.0.8)  For each dependency resolved, the property 
groupId:artifactId:type[:classifier]  is defined pointing to the 
corresponding file.

>
> I need to unjar one of them, and I need to copy one of them to an extra
> location.
>
> Thanks guys!
>
> Greets
>
> > Hey!
> >
> > Thanks for the help, everything is running fine except one last
> > problem I guess:
> >
> > when I deploy the ear file, jboss throws this error:
> >
> > org.jboss.deployment.DeploymentException: Failed to find module file:
> > jboss-seam.jar
> >
> > jboss gets the module defintion from the application.xml file.
> >
> > The funny thing is, that the jboss-seam.jar is in the ears' lib folder
> > and has the correct filename (because of the versionmapper).
> >
> > Thanks again,
> > Greets
> >
> >> ok, if you don't want to use simple <mapper type="flatten" />
> >> but prefer the VersionMapper (to remove version from filenames), you
> >> need to add versionsId="dependency.versions" to you dependencies task
> >>
> >> Hervé
> >>
> >> Le lundi 05 mai 2008, roman schoenbichler a écrit :
> >>> Hervé BOUTEMY schrieb:
> >>>
> >>> Ok the archives arn't build right, the libs arn't copied into the new
> >>> archives....
> >>>
> >>> I'm using the following lines:
> >>>
> >>> <artifact:dependencies pomRefId="maven.project"
> >>> filesetId="dependency.fileset" useScope="runtime"/>
> >>>
> >>> <copy todir="${war.dir}/WEB-INF/lib">
> >>>                     <!--<fileset dir="${lib.dir}">
> >>>                             <include name="richfaces-impl*.jar" />
> >>>                             <include name="richfaces-ui*.jar" />
> >>>                             <include name="oscache*.jar" />
> >>>                             <include name="commons-digester.jar" />
> >>>                             <include name="commons-beanutils.jar" />
> >>>                             <include name="jsf-facelets.jar" />
> >>>                             <include name="jboss-seam-*.jar" />
> >>>                             <exclude name="jboss-seam-gen.jar" />
> >>>                     </fileset>-->
> >>>                     <fileset refid="dependency.fileset"/>
> >>>                     <mapper classpathref="maven-ant-tasks.classpath"
> >>> classname="org.apache.maven.artifact.ant.VersionMapper"
> >>> from="${dependency.versions}" to="flatten" />
> >>>             </copy>
> >>>
> >>> notice that the fileset which is commented was the initial ant script,
> >>> which copied the libs from the local ./lib folder ...
> >>>
> >>> Am I missing something, or is the code simply wrong..?
> >>>
> >>> Think this would be the last problem!
> >>>
> >>> Thanks,
> >>> Greets
> >>>
> >>>> yes, with pomRefId, it should work better:
> >>>> <artifact:dependencies pomRefId="maven" filesetId="dependency.fileset"
> >>>> useScope="runtime"/>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Mime
View raw message