Artifactory in wrong time?

View: New views
2 Messages — Rating Filter:   Alert me  

Artifactory in wrong time?

by Joonas Reynders :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

When I deploy a maven artifact to artifactory it takes many hours before the artifact is recognized by maven to exist there. Steps to reproduce:

1) deploy to artifactory with "maven deploy" a custom maven plugin
2) try to build a project that uses this plugin -> fail with plugin not found (The artifact .pom gets downloaded but not the .jar)
3) wait for three hours, try again -> success

The problem probably has something to do with the fact that the timestamp in the artifact .pom is incorrect: it is in GMT time although the machine that runs artifactory is in EETS (GMT+3) time:

<?xml version="1.0" encoding="UTF-8"?><metadata>
  <groupId>my.plugin</groupId>
  <artifactId>my-plugin</artifactId>
  <version>0.1.2-SNAPSHOT</version>
  <versioning>
    <snapshot>
      <buildNumber>1</buildNumber>
    </snapshot>
    <lastUpdated>20080530060650</lastUpdated>
  </versioning>
</metadata>

The deploy was done at 090650, not 06....

So my question is: where does this timestamp come from? The timezone on the machine running artifactory  is correct. The log entries in artifactory logs are incorrect, i.e. in GMT time

Cheers,
Joonas

Re: Artifactory in wrong time?

by Yoav Landman :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Looks like the JVM running Artifactory doesn't read the host timezone properly (this can happen for various reasons). Try forcing it by manually specifying "-Duser.timezone=America/New_York" (or what your real timezone is).

HTH,

Yoav

On Fri, May 30, 2008 at 10:26 AM, Joonas Reynders <joonas.reynders@...> wrote:

When I deploy a maven artifact to artifactory it takes many hours before the
artifact is recognized by maven to exist there. Steps to reproduce:

1) deploy to artifactory with "maven deploy" a custom maven plugin
2) try to build a project that uses this plugin -> fail with plugin not
found (The artifact .pom gets downloaded but not the .jar)
3) wait for three hours, try again -> success

The problem probably has something to do with the fact that the timestamp in
the artifact .pom is incorrect: it is in GMT time although the machine that
runs artifactory is in EETS (GMT+3) time:

<?xml version="1.0" encoding="UTF-8"?><metadata>
 <groupId>my.plugin</groupId>
 <artifactId>my-plugin</artifactId>
 <version>0.1.2-SNAPSHOT</version>
 <versioning>
   <snapshot>
     <buildNumber>1</buildNumber>
   </snapshot>
   <lastUpdated>20080530060650</lastUpdated>
 </versioning>
</metadata>

The deploy was done at 090650, not 06....

So my question is: where does this timestamp come from? The timezone on the
machine running artifactory  is correct. The log entries in artifactory logs
are incorrect, i.e. in GMT time

Cheers,
Joonas
--
View this message in context: http://www.nabble.com/Artifactory-in-wrong-time--tp17553139p17553139.html
Sent from the Artifactory-Users mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Artifactory-users mailing list
Artifactory-users@...
https://lists.sourceforge.net/lists/listinfo/artifactory-users


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Artifactory-users mailing list
Artifactory-users@...
https://lists.sourceforge.net/lists/listinfo/artifactory-users
LightInTheBox - Buy quality products at wholesale price