maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stephen Connolly <stephen.alan.conno...@gmail.com>
Subject Re: Mavenize a java project, need to include legacy jar files
Date Mon, 01 Apr 2013 14:15:09 GMT
http://developer-blog.cloudbees.com/2013/03/playing-trade-offs-with-maven.html

Should give you some pointers

On Monday, 1 April 2013, laurelkhall@gmail.com wrote:

> I inherited an old java project that required a minor update. The project
> did
> not use Maven and I am trying to mavenize it. It had three jar files that
> were customized specifically for the application which are preventing the
> project from being built outside of my development environment.
>
> It builds in my local dev environment because I added the jar files to my
> local Maven repository.  Now, when I deploy the project in QA environment,
> the jars are not in the central repository and the build fails. I have an
> issue with putting these jars into the central Maven repository. They were
> customized for the project and not reusable for any other project (though
> still in production).
>
> My thought was to use "<include>" - as in a native library, but I can't get
> it to work. Is there something else I need to do? I put these jars in
> src/main/resources/native directory and they are part of the target.
>
> I'm guessing this is not a good practice, however, there were a lot of bad
> practices that I have eliminated already and at this point, I just need to
> find a reasonable solution that isn't too horribly bad.
>
> Am I missing something below?
>
>   <build>
>     <resources>
>       <resource>
>         <filtering>false</filtering>
>         <directory>${basedir}/src/main/resource/native</directory>
>         <includes>
>           <include>*.jar</include>
>         </includes>
>       </resource>
>     </resources>
> ...
> </build>
>
> Is there anyone who could help with this?
>
> Thank you in advance for your suggestions/recommendations!
>
>
>
>
> -----
> Co-founder, Swyzzle.com
> --
> View this message in context:
> http://maven.40175.n5.nabble.com/Mavenize-a-java-project-need-to-include-legacy-jar-files-tp5752336.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org <javascript:;>
> For additional commands, e-mail: users-help@maven.apache.org<javascript:;>
>
>

-- 
Sent from my phone

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message