Hi Artifactory user,

In a none unique repository, as you can see, the metadata contains only the
the last updated timestamp which is simply the last timestamp of deployment.
For clarification, Artifactory generates the version info using the Maven
API which selects UTC by default. Most of our costumers who work in
different timezones simply enforce Artifactory to completely use UTC as it's
the most simple solution.
If this difference still poses a problem, you may open an issue on our JIRA
<https://issues.jfrog.org/jira/browse/RTFACT>for using customized timezones
when generating Maven metadata.
In any case, if I am not mistaken, Maven resolves snapshot artifacts by
build number, and not by the last updated.
HTH,

Eli
The Artifactory team




On Wed, Nov 24, 2010 at 7:04 PM, cmo <[email protected]> wrote:

>  Thx for your reply!
>
>
>
> The metadata I posted was misleading, I deploy to a non-unique repository,
> following metadata should be considered.
>
>
>
> <?xml version="1.0" encoding="UTF-8"?>
>
> <metadata>
>
>   <groupId>re.produce</groupId>
>
>   <artifactId>sourcesReproduce</artifactId>
>
>   <version>1.0.0-SNAPSHOT</version>
>
>   <versioning>
>
>     <snapshot>
>
>       <buildNumber>1</buildNumber>
>
>     </snapshot>
>
>     <lastUpdated>20101124165236</lastUpdated>
>
>   </versioning>
>
> </metadata>
>
>
>
> Server and client are in the same timezone, timezone and time is correct
> tuned from client. My timezone is GMT + 1.
>
> It seems like artifactory takes the timestamp correctly from maven, local
> metadata and remote metadata timestamps are equal. I guess maven sets as
> timestamp the GMT value.
>
>
>
> What is artifactory doing with the timestamp if an artifact is deployed to
> an non-unique repository, same attemp as with unique?
>
>
>
> *Von:* Eli Givoni [via Artifactory] [mailto:[hidden 
> email]<http://user/SendEmail.jtp?type=node&node=5771141&i=0>]
>
> *Gesendet:* Mittwoch, 24. November 2010 16:45
> *An:* Moser, Christian
> *Betreff:* Re: artifactory 2.3.1 in wrong timezone
>
>
>
> Hi Artifactory user,
>
> We can't reproduce your issue,
> By looking at the metadata you sent us, it looks like you are deploying to
> a unique repository in artifactory, When this is the case the timestamp is
> puled out from the unique name
> of the artifact, sent by maven. Therefor the deploy timestamp is taken
> from the machine running the maven process and not from the server, running
> Artifactory.
>
> Can you please double check the deployer machine is time tuned correctly.
> By the way are you in the same timezone as the server?
>
> If everything is in order can you please make another test and see if the
> finding are the same.
>
> Let us know your result so we could farther investigate if necessary.
>
> HTH,
>
> Eli
> The Artifactory team
>
>
>  On Wed, Nov 24, 2010 at 2:33 PM, cmo <[hidden 
> email]<http://user/SendEmail.jtp?type=node&node=5770814&i=0&by-user=t>>
> wrote:
>
> It seems like artifactory sets a wrong timestamp to deployed artifacts.
> Maven 3.0 is used for deployment.
>
>
>
> <?xml version="1.0" encoding="UTF-8"?>
>
> <metadata>
>
>
>
>   <groupId>mnet</groupId>
>
>   <artifactId>mnet-parent</artifactId>
>
>
>
>   <version>10.0.0-SNAPSHOT</version>
>
>   <versioning>
>
>
>
>     <snapshot>
>
>       <timestamp>20101124.120659</timestamp>
>
>
>
>       <buildNumber>1</buildNumber>
>
>     </snapshot>
>
>
>
>     <lastUpdated>20101124120656</lastUpdated>
>
>   </versioning>
>
>
>
> </metadata>
>
>
>
>
>
> Was deployed 1 hour later @ .130659
>
>
>
> The server system clock seems correct set and is in the right timezone. A
> quick lock into the artifactory 2.3.1 system info shows „user.timezone |
> Europe/Berlin“ which is also correct.
>
>
>
> System Properties:
>
> awt.toolkit                                       |
> sun.awt.windows.WToolkit
>
> catalina.base                                     |
> C:\\apache-tomcat-6.0.20
>
> catalina.home                                     |
> C:\\apache-tomcat-6.0.20
>
> catalina.useNaming                                | true
>
> common.loader                                     |
> ${catalina.home}/lib,${catalina.home}/lib/*.jar
>
> derby.storage.pageCacheSize                       | 500
>
> derby.stream.error.file                           |
> c:\\artifactoryHome\\logs\\derby.log
>
> file.encoding                                     | Cp1252
>
> file.encoding.pkg                                 | 
> sun.io<http://sun.io?by-user=t&by-user=t>
>
> file.separator                                    | \\
>
> java.awt.graphicsenv                              |
> sun.awt.Win32GraphicsEnvironment
>
> java.awt.printerjob                               |
> sun.awt.windows.WPrinterJob
>
> java.class.path                                   |
> c:\\java\\jdk6\\lib\\tools.jar;C:\\apache-tomcat-6.0.20\\bin\\bootstrap.jar
>
> java.class.version                                | 50.0
>
> java.endorsed.dirs                                |
> C:\\apache-tomcat-6.0.20\\endorsed
>
> java.ext.dirs                                     |
> c:\\java\\jdk6\\jre\\lib\\ext;C:\\Windows\\Sun\\Java\\lib\\ext
>
> java.home                                         | c:\\java\\jdk6\\jre
>
> java.io.tmpdir                                    |
> C:\\apache-tomcat-6.0.20\\temp
>
> java.library.path                                 |
> c:\\java\\jdk6\\bin;.;C:\\Windows\\Sun\\Java\\bin;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Program
> Files\\ATI Technologies\\ATI.ACE\\Core-Static
>
> java.naming.factory.initial                       |
> org.apache.naming.java.javaURLContextFactory
>
> java.naming.factory.url.pkgs                      | org.apache.naming
>
> java.runtime.name <http://java.runtime.name?by-user=t&by-user=t>
> | Java(TM) SE Runtime Environment
>
> java.runtime.version                              | 1.6.0_12-b04
>
> java.specification.name<http://java.specification.name?by-user=t&by-user=t>
> | Java Platform API Specification
>
> java.specification.vendor                         | Sun Microsystems Inc.
>
> java.specification.version                        | 1.6
>
> java.util.logging.config.file                     |
> C:\\apache-tomcat-6.0.20\\conf\\logging.properties
>
> java.util.logging.manager                         |
> org.apache.juli.ClassLoaderLogManager
>
> java.vendor                                       | Sun Microsystems Inc.
>
> java.vendor.url                                   | http://java.sun.com/
>
> java.vendor.url.bug                               |
> http://java.sun.com/cgi-bin/bugreport.cgi
>
> java.version                                      | 1.6.0_12
>
> java.vm.info <http://java.vm.info?by-user=t&by-user=t>
> | mixed mode
>
> java.vm.name <http://java.vm.name?by-user=t&by-user=t>
> | Java HotSpot(TM) Client VM
>
> java.vm.specification.name<http://java.vm.specification.name?by-user=t&by-user=t>
> | Java Virtual Machine Specification
>
> java.vm.specification.vendor                      | Sun Microsystems Inc.
>
> java.vm.specification.version                     | 1.0
>
> java.vm.vendor                                    | Sun Microsystems Inc.
>
> java.vm.version                                   | 11.2-b01
>
> line.separator                                    | \r\n
>
> org.apache.jackrabbit.core.util.RepositoryLock:C:\artifactoryHome\data|
> org.apache.jackrabbit.core.util.RepositoryLock:C:\\artifactoryHome\\data
>
> os.arch                                           | x86
>
> os.name <http://os.name?by-user=t&by-user=t>
> | Windows Vista
>
> os.version                                        | 6.0
>
> package.access                                    |
> sun.,org.apache.catalina.,org.apache.coyote.,org.apache.tomcat.,org.apache.jasper.,sun.beans.
>
> package.definition                                |
> sun.,java.,org.apache.catalina.,org.apache.coyote.,org.apache.tomcat.,org.apache.jasper.
>
> path.separator                                    | ;
>
> server.loader                                     |
>
> shared.loader                                     |
>
> sun.arch.data.model                               | 32
>
> sun.boot.class.path                               |
> c:\\java\\jdk6\\jre\\lib\\resources.jar;c:\\java\\jdk6\\jre\\lib\\rt.jar;c:\\java\\jdk6\\jre\\lib\\sunrsasign.jar;c:\\java\\jdk6\\jre\\lib\\jsse.jar;c:\\java\\jdk6\\jre\\lib\\jce.jar;c:\\java\\jdk6\\jre\\lib\\charsets.jar;c:\\java\\jdk6\\jre\\classes
>
> sun.boot.library.path                             |
> c:\\java\\jdk6\\jre\\bin
>
> sun.cpu.endian                                    | little
>
> sun.cpu.isalist                                   | pentium_pro+mmx
> pentium_pro pentium+mmx pentium i486 i386 i86
>
> sun.desktop                                       | windows
>
> sun.io.unicode.encoding                           | UnicodeLittle
>
> sun.java.launcher                                 | SUN_STANDARD
>
> sun.jnu.encoding                                  | Cp1252
>
> sun.management.compiler                           | HotSpot Client Compiler
>
> sun.os.patch.level                                | Service Pack 1
>
> tomcat.util.buf.StringCache.byte.enabled          | true
>
> user.country                                      | CH
>
> user.dir                                          |
> C:\\apache-tomcat-6.0.20\\bin
>
> user.home                                         | C:\\Users\\jira-user
>
> user.language                                     | de
>
> user.name <http://user.name?by-user=t&by-user=t>
> | jira-user
>
> user.timezone                                     | Europe/Berlin
>
> user.variant                                      |
>
>
>
> General JVM Info:
>
> Available Processors                              | 4
>
> Heap Memory Usage-Commited                        | 832438272
>
> Heap Memory Usage-Init                            | 0
>
> Heap Memory Usage-Max                             | 832438272
>
> Heap Memory Usage-Used                            | 582751632
>
> Non-Heap Memory Usage-Commited                    | 77430784
>
> Non-Heap Memory Usage-Init                        | 12746752
>
> Non-Heap Memory Usage-Max                         | 100663296
>
> Non-Heap Memory Usage-Used                        | 77316992
>
>
>
> JVM Arguments:
>
> -Xmx800m
>
>
> -Djava.util.logging.config.file=C:\apache-tomcat-6.0.20\conf\logging.properties
>
> -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
>
> -Djava.endorsed.dirs=C:\apache-tomcat-6.0.20\endorsed
>
> -Dcatalina.base=C:\apache-tomcat-6.0.20
>
> -Dcatalina.home=C:\apache-tomcat-6.0.20
>
> -Djava.io.tmpdir=C:\apache-tomcat-6.0.20\temp
>
>
>
>
>
>
>
> Is there another way to set the correct timezone or is it a bug?
>
>
>  ------------------------------
>
> View this message in context: artifactory 2.3.1 in wrong 
> timezone<http://forums.jfrog.org/artifactory-2-3-1-in-wrong-timezone-tp5770187p5770187.html?by-user=t&by-user=t>
> Sent from the Artifactory - Users mailing list 
> archive<http://forums.jfrog.org/Artifactory-Users-f2377369.html?by-user=t&by-user=t>at
>  Nabble.com.
>
>
> ------------------------------------------------------------------------------
> Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
> Tap into the largest installed PC base & get more eyes on your game by
> optimizing for Intel(R) Graphics Technology. Get started today with the
> Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
> http://p.sf.net/sfu/intelisp-dev2dev
> _______________________________________________
> Artifactory-users mailing list
> [hidden email]<http://user/SendEmail.jtp?type=node&node=5770814&i=1&by-user=t>
>
> https://lists.sourceforge.net/lists/listinfo/artifactory-users
>
>
>
>
> ------------------------------------------------------------------------------
>
> Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
> Tap into the largest installed PC base & get more eyes on your game by
> optimizing for Intel(R) Graphics Technology. Get started today with the
> Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
> http://p.sf.net/sfu/intelisp-dev2dev
> _______________________________________________
> Artifactory-users mailing list
> [hidden email]<http://user/SendEmail.jtp?type=node&node=5770814&i=2&by-user=t>
> https://lists.sourceforge.net/lists/listinfo/artifactory-users
>
>  ------------------------------
>
> View message @
> http://forums.jfrog.org/artifactory-2-3-1-in-wrong-timezone-tp5770187p5770814.html<http://forums.jfrog.org/artifactory-2-3-1-in-wrong-timezone-tp5770187p5770814.html?by-user=t>
> To start a new topic under Artifactory - Users, email [hidden 
> email]<http://user/SendEmail.jtp?type=node&node=5771141&i=1>
> To unsubscribe from Artifactory - Users, click 
> here<http://forums.jfrog.org/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=2377369&code=Y21vQG1ldHJvaG0uY29tfDIzNzczNjl8LTI3NDc4ODYwMg==&by-user=t>.
>
>
> ------------------------------
> View this message in context: AW: artifactory 2.3.1 in wrong 
> timezone<http://forums.jfrog.org/artifactory-2-3-1-in-wrong-timezone-tp5770187p5771141.html>
>
> Sent from the Artifactory - Users mailing list 
> archive<http://forums.jfrog.org/Artifactory-Users-f2377369.html>at Nabble.com.
>
>
> ------------------------------------------------------------------------------
> Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
> Tap into the largest installed PC base & get more eyes on your game by
> optimizing for Intel(R) Graphics Technology. Get started today with the
> Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
> http://p.sf.net/sfu/intelisp-dev2dev
> _______________________________________________
> Artifactory-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/artifactory-users
>
>
------------------------------------------------------------------------------
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
_______________________________________________
Artifactory-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/artifactory-users

Reply via email to