Include pattern for single file

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Include pattern for single file

kittle
part of my build process produces files in the form: <module>_package-<version>-dev.zip
I want to setup an artifactory repository to keep these packaged zip files separate from the regular ear/war/jar artifacts.

Ive tried several variations of include patterns, but the zip files always go to the wrong repository.

Currently I have the following virtual repositories (in order)
deploy_packages
prod
dev
everything_else


The prod, dev and everything_else work fine.  but the deploy_packages will not intercept deployments and store the *_package zip files like I want.  The other non-virtual repositories all have the default **/* includes pattern. The deploy_packages group only has a single repository.

How do i set things up so the *_package zip files go into deploy_packages repository?
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Include pattern for single file

Noam Y. Tenne
You cannot direct deployment requests to virtual repositories, only local ones.
So when deploying, simply point the request to the relevant storing repository (the one contained within the deploy_packages virtual, in your case). 

Cheers,
Noam

On Tue, Jan 10, 2012 at 1:55 AM, kittle <[hidden email]> wrote:
part of my build process produces files in the form:
<module>_package-<version>-dev.zip
I want to setup an artifactory repository to keep these packaged zip files
separate from the regular ear/war/jar artifacts.

Ive tried several variations of include patterns, but the zip files always
go to the wrong repository.

Currently I have the following virtual repositories (in order)
deploy_packages
prod
dev
everything_else


The prod, dev and everything_else work fine.  but the deploy_packages will
not intercept deployments and store the *_package zip files like I want.
The other non-virtual repositories all have the default **/* includes
pattern. The deploy_packages group only has a single repository.

How do i set things up so the *_package zip files go into deploy_packages
repository?

--
View this message in context: http://forums.jfrog.org/Include-pattern-for-single-file-tp7170155p7170155.html
Sent from the Artifactory - Users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual
desktops for less than the cost of PCs and save 60% on VDI infrastructure
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
_______________________________________________
Artifactory-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/artifactory-users


------------------------------------------------------------------------------
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create
new or port existing apps to sell to consumers worldwide. Explore the
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev
_______________________________________________
Artifactory-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/artifactory-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Include pattern for single file

kittle
Noam,

Yes i know you cant deploy to a virtual repository - Everything errors out when I try that.  Im using maven to deploy to the "generic" repository 'repo':
      <repositories>
        <repository>
          <id>central</id>
          <url>http://hostname:8081/artifactory/repo/</url>
......

All the other deployments work fine.  They go into the 'dev' repository as expected.  Is there a way to intercept the deployment?  Id rather not have to re-write things on the maven side for this one case.

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Include pattern for single file

Noam Y. Tenne
You can't deploy to "repo" either; it's Artifactory's global virtual repository and aggregates all configured repositories.

Is there a way to intercept the deployment?  Id rather not have
to re-write things on the maven side for this one case.

I'm not sure I understand what you mean, please elaborate.

Cheers,
Noam

On Tue, Jan 10, 2012 at 8:02 PM, kittle <[hidden email]> wrote:
Noam,

Yes i know you cant deploy to a virtual repository - Everything errors out
when I try that.  Im using maven to deploy to the "generic" repository
'repo':
     <repositories>
       <repository>
         <id>central</id>
         <url>http://hostname:8081/artifactory/repo/</url>
......

All the other deployments work fine.  They go into the 'dev' repository as
expected.  Is there a way to intercept the deployment?  Id rather not have
to re-write things on the maven side for this one case.



--
View this message in context: http://forums.jfrog.org/Include-pattern-for-single-file-tp7170155p7173042.html
Sent from the Artifactory - Users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create
new or port existing apps to sell to consumers worldwide. Explore the
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev
_______________________________________________
Artifactory-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/artifactory-users


------------------------------------------------------------------------------
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create
new or port existing apps to sell to consumers worldwide. Explore the
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev
_______________________________________________
Artifactory-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/artifactory-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Include pattern for single file

kittle
Currently I have maven sending deployments to http://hostname:8081/artifactory/repo/  and this works as expected.  remote artifacts are downloaded from maven central, local artifacts are downloaded from locally hosted repositories (dev, thirdparty, etc).   Deploying to the same URL works as well - jar/ear/war files are all uploaded to the dev repository.

Without editing my maven config, I want to redirect deployment of the *_package*.zip files to my new 'package' repository.
Loading...