Re: how to convert unique snaphot into non-unique snaphot on downloading from nexus

2013-10-26 Thread Russell Gold
Hi sahil,

That’s not exactly what I meant. How are your repository tags set up? How is 
your nexus repo configured? Are you certain than Maven is treated snapshots as 
snapshots rather than releases? What commands are you using to upload them? 
Maven should not actually be aware of the time stamps if configured properly, I 
believe. At least not in any way that the user should notice.

Thanks,
Russ

On Oct 25, 2013, at 4:52 PM, sahil_tech sahilaggarwal1...@gmail.com wrote:

 Hi Russell,
 I am using maven version 3 and I have configured the maven jobs in Hudson
 (mvn clean deploy) to deploy the unique snapshots artifacts into a nexus
 hosted repository and for that I have configured distribution management tag
 in project parent pom.xml. 
 I am using maven-war-plugin to collect all artifact dependencies, classes
 and resources of the web application and packaging them into a web
 application archive. But, now while packaging I am getting snapshot
 dependencies with timestamp in WEB-INF/lib of war file. 
 To copy the flex artifacts (swf artifact) into my gui war project, I am
 using org.sonatype.flexmojos:flexmojos-maven-plugin: copy-flex-resources
 during process-resource phase. But, it again copying flex artifacts with
 timestamp.
 
 
 
 
 --
 View this message in context: 
 http://maven.40175.n5.nabble.com/how-to-convert-unique-snaphot-into-non-unique-snaphot-on-downloading-from-nexus-tp5773312p5773845.html
 Sent from the Maven - Users mailing list archive at Nabble.com.
 
 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org
 

-
Author, Getting Started with Apache Maven 
http://www.packtpub.com/getting-started-with-apache-maven/video

Come read my webnovel, Take a Lemon http://www.takealemon.com, 
and listen to the Misfile radio play http://www.fuzzyfacetheater.com/misfile/!









Re: how to convert unique snaphot into non-unique snaphot on downloading from nexus

2013-10-25 Thread sahil_tech
Can somebody please check the issue posted above and provide a fix if
possible. 
I am completely stuck due to this and management now wants me to revert the
mvn deploy to mvn install.



--
View this message in context: 
http://maven.40175.n5.nabble.com/how-to-convert-unique-snaphot-into-non-unique-snaphot-on-downloading-from-nexus-tp5773312p5773827.html
Sent from the Maven - Users mailing list archive at Nabble.com.

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



Re: how to convert unique snaphot into non-unique snaphot on downloading from nexus

2013-10-25 Thread Russell Gold
Can you explain how you are copying the artifacts currently? You say that your 
dependencies are being packaged with a timestamp. How are you doing this? And 
then you say that you are copying the flex artifact with a plugin. What plugin 
is that?

I think that you need to explain a bit more what is going on, here.

- Russ

On Oct 18, 2013, at 10:45 AM, sahil_tech sahilaggarwal1...@gmail.com wrote:

 Hi,
 I am building snapshots artifacts in CI tool Hudson and deploying them into
 nexus using distribution management in my pom.xml and Snapshot is getting
 replaced by timestamp in final artifact name on uploading into nexus because
 non-unique snapshots are no more valid in maven 3, that is fine.
 
 Also, on looking for dependency in nexus repo, it always fetch the latest
 snapshot artifact as I can see the time stamp and build number in debug
 logs.
 
 But, now the problem that I am facing.
 
 1. in WEB-INF/lib of war file.. dependencies are packaging with timestamp.
 2. In my project, I am using plugin to copy flex code into my war file but
 that again copy the flex artifact with timestamp. But, I have hard coded the
 artifact name in my jsp as gui-flex-14.0-SNAPHOT.swc. Due to this I am
 getting blank screen.
 
 So, please let me know is there any way to convert unique snapshot artifacts
 into non-unique on downloading from nexus. 
 
 In simple words, I am proposing that the Maven client download a snapshot
 artifact named A-1.0.0-20110302.160157-17.jar and then rename it to
 A-1.0.0-SNAPSHOT.jar when it stores the file locally.
 
 
 
 
 
 
 
 
 --
 View this message in context: 
 http://maven.40175.n5.nabble.com/how-to-convert-unique-snaphot-into-non-unique-snaphot-on-downloading-from-nexus-tp5773312.html
 Sent from the Maven - Users mailing list archive at Nabble.com.
 
 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org
 

-
Author, Getting Started with Apache Maven 
http://www.packtpub.com/getting-started-with-apache-maven/video

Come read my webnovel, Take a Lemon http://www.takealemon.com, 
and listen to the Misfile radio play http://www.fuzzyfacetheater.com/misfile/!









RE: how to convert unique snaphot into non-unique snaphot on downloading from nexus

2013-10-25 Thread Amir Gheibi
Could you explain what you mean by Unique and non-Unique?

From: sahil_tech [sahilaggarwal1...@gmail.com]
Sent: Friday, October 25, 2013 8:55 AM
To: users@maven.apache.org
Subject: Re: how to convert unique snaphot into non-unique snaphot on 
downloading from nexus

Can somebody please check the issue posted above and provide a fix if
possible.
I am completely stuck due to this and management now wants me to revert the
mvn deploy to mvn install.



--
View this message in context: 
http://maven.40175.n5.nabble.com/how-to-convert-unique-snaphot-into-non-unique-snaphot-on-downloading-from-nexus-tp5773312p5773827.html
Sent from the Maven - Users mailing list archive at Nabble.com.

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

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



Re: how to convert unique snaphot into non-unique snaphot on downloading from nexus

2013-10-25 Thread Adrien Rivard
Actually this is quite surprising. I would expect the timestamp to be not
visible to the end user.
You build/deploy a -SNAPSHOT version , you ask for a -SNAPSHOT version, you
get a -SNAPSHOT in your war. Internally maven/nexus may use real timestamp
but this is not supposed to be visible. Whatever you are using to do this
must not do it correctly.




On Fri, Oct 18, 2013 at 4:45 PM, sahil_tech sahilaggarwal1...@gmail.comwrote:

 Hi,
 I am building snapshots artifacts in CI tool Hudson and deploying them into
 nexus using distribution management in my pom.xml and Snapshot is getting
 replaced by timestamp in final artifact name on uploading into nexus
 because
 non-unique snapshots are no more valid in maven 3, that is fine.

 Also, on looking for dependency in nexus repo, it always fetch the latest
 snapshot artifact as I can see the time stamp and build number in debug
 logs.

 But, now the problem that I am facing.

 1. in WEB-INF/lib of war file.. dependencies are packaging with timestamp.
 2. In my project, I am using plugin to copy flex code into my war file but
 that again copy the flex artifact with timestamp. But, I have hard coded
 the
 artifact name in my jsp as gui-flex-14.0-SNAPHOT.swc. Due to this I am
 getting blank screen.

 So, please let me know is there any way to convert unique snapshot
 artifacts
 into non-unique on downloading from nexus.

 In simple words, I am proposing that the Maven client download a snapshot
 artifact named A-1.0.0-20110302.160157-17.jar and then rename it to
 A-1.0.0-SNAPSHOT.jar when it stores the file locally.








 --
 View this message in context:
 http://maven.40175.n5.nabble.com/how-to-convert-unique-snaphot-into-non-unique-snaphot-on-downloading-from-nexus-tp5773312.html
 Sent from the Maven - Users mailing list archive at Nabble.com.

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




-- 
Adrien Rivard


Re: how to convert unique snaphot into non-unique snaphot on downloading from nexus

2013-10-25 Thread sahil_tech
Hi Russell,
I am using maven version 3 and I have configured the maven jobs in Hudson
(mvn clean deploy) to deploy the unique snapshots artifacts into a nexus
hosted repository and for that I have configured distribution management tag
in project parent pom.xml. 
I am using maven-war-plugin to collect all artifact dependencies, classes
and resources of the web application and packaging them into a web
application archive. But, now while packaging I am getting snapshot
dependencies with timestamp in WEB-INF/lib of war file. 
To copy the flex artifacts (swf artifact) into my gui war project, I am
using org.sonatype.flexmojos:flexmojos-maven-plugin: copy-flex-resources
during process-resource phase. But, it again copying flex artifacts with
timestamp.




--
View this message in context: 
http://maven.40175.n5.nabble.com/how-to-convert-unique-snaphot-into-non-unique-snaphot-on-downloading-from-nexus-tp5773312p5773845.html
Sent from the Maven - Users mailing list archive at Nabble.com.

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



Re: how to convert unique snaphot into non-unique snaphot on downloading from nexus

2013-10-25 Thread sahil_tech
Hi Amir,

Non-unique snapshot artifacts - without timestamp.
unique snapshot artifact - with timestamp. Maven 3 only support unique
snapshot. In maven 2, we set the uniqueversionfalse/uniqueversion to
deploy the non-unique snapshot artifacts.




--
View this message in context: 
http://maven.40175.n5.nabble.com/how-to-convert-unique-snaphot-into-non-unique-snaphot-on-downloading-from-nexus-tp5773312p5773846.html
Sent from the Maven - Users mailing list archive at Nabble.com.

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



RE: how to convert unique snaphot into non-unique snaphot on downloading from nexus

2013-10-25 Thread sahil_tech
Hi Adrein,

Maven is downloading snapshot dependencies with timestamp into my local
repository. I have timestamp versions of snapshot dependency in my local
repository and the files are getting copied with their standard names.




--
View this message in context: 
http://maven.40175.n5.nabble.com/how-to-convert-unique-snaphot-into-non-unique-snaphot-on-downloading-from-nexus-tp5773312p5773854.html
Sent from the Maven - Users mailing list archive at Nabble.com.

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



how to convert unique snaphot into non-unique snaphot on downloading from nexus

2013-10-18 Thread sahil_tech
Hi,
I am building snapshots artifacts in CI tool Hudson and deploying them into
nexus using distribution management in my pom.xml and Snapshot is getting
replaced by timestamp in final artifact name on uploading into nexus because
non-unique snapshots are no more valid in maven 3, that is fine.

Also, on looking for dependency in nexus repo, it always fetch the latest
snapshot artifact as I can see the time stamp and build number in debug
logs.

But, now the problem that I am facing.

1. in WEB-INF/lib of war file.. dependencies are packaging with timestamp.
2. In my project, I am using plugin to copy flex code into my war file but
that again copy the flex artifact with timestamp. But, I have hard coded the
artifact name in my jsp as gui-flex-14.0-SNAPHOT.swc. Due to this I am
getting blank screen.

So, please let me know is there any way to convert unique snapshot artifacts
into non-unique on downloading from nexus. 

In simple words, I am proposing that the Maven client download a snapshot
artifact named A-1.0.0-20110302.160157-17.jar and then rename it to
A-1.0.0-SNAPSHOT.jar when it stores the file locally.


  

  



--
View this message in context: 
http://maven.40175.n5.nabble.com/how-to-convert-unique-snaphot-into-non-unique-snaphot-on-downloading-from-nexus-tp5773312.html
Sent from the Maven - Users mailing list archive at Nabble.com.

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