Re: Help me to understand this unpack-dependencies?

2012-07-04 Thread hujirong
Thank you for the help, here is the result:

C:\Sandbox\MDM\WESB>mvn dependency:tree
[INFO] Scanning for projects...
[INFO]
[INFO]

[INFO] Building WESB Deployment R2-0.0.1-SNAPSHOT
[INFO]

[INFO]
[INFO] --- maven-dependency-plugin:2.4:tree (default-cli) @ MDM-WESB ---
[INFO] com.nbfg.mdm.environments:MDM-WESB:pom:R2-0.0.1-SNAPSHOT
[INFO] \- com.nbfg.fw.wsadmin:dpllib:zip:1.0.0-SNAPSHOT:compile
[INFO]

[INFO] BUILD SUCCESS
[INFO]

[INFO] Total time: 0.823s
[INFO] Finished at: Wed Jul 04 11:19:09 EDT 2012
[INFO] Final Memory: 12M/512M
[INFO]

C:\Sandbox\MDM\WESB>

--
View this message in context: 
http://maven.40175.n5.nabble.com/Help-me-to-understand-this-unpack-dependencies-tp5712889p5712989.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: Help me to understand this unpack-dependencies?

2012-07-04 Thread Jörg Schaible
Hi Jirong,

hujirong wrote:

> I found CDIPubSubMgmtMed-0.0.1-SNAPSHOT-scripts.zip in Nexus in this
> folder:
> local:8080/nexus/content/groups/mdm-
public/com/nbfg/max/wesb/CDIPubSubMgmtMed/0.0.1-SNAPSHOT/
> 
> So I guess because the project is depending on the following:
> 
>   
>  com.nbfg.max.wesb
> CDIPubSubMgmtMed
> 0.0.1-SNAPSHOT
> ear
>   App
> 
> 
> The classifier makes it look for *scripts.zip in that folder.

Well, no.

> However, the
> Maven doc doesn't tell exactly how it works:
> http://maven.apache.org/plugins/maven-dependency-plugin/unpack-
dependencies-mojo.html#classifier

It works on the declared (or inherited) dependencies. You can implement a 
Mojo to look for artifacts of a different classifier, but I'd be really 
surprised if the assembly plugin does something like that. I'd bet that the 
script artifact is part of your dependency tree.

- Jörg


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



Re: Help me to understand this unpack-dependencies?

2012-07-03 Thread hujirong

Wayne Fay wrote
> 
> Deploy has a particular meaning in the world of Maven, which means to
> "push the resulting build file into a Maven repo."
> 
> Maven doesn't really have a specific answer for how users should
> propagate their build artifacts to various environment-specific
> servers. This is seen as outside of Maven's core responsibility which
> is mostly to "build stuff." You may find the Cargo plugin to be
> helpful, or other plugins.
> 
> Wayne
> 
> 
Quoted from: 
http://maven.40175.n5.nabble.com/Help-me-to-understand-this-unpack-dependencies-tp5712889p5712897.html

I found this interesting article, almost answered all my questions. We can
use this unpack to download the deployment unit, extract it if this is run
from the server to be deployed. This can be done by run the build from a
build agent installed on this server. Then I just need to add another step
to run the deployment script been extracted from the zip.

http://www.sonatype.com/people/2008/04/how-to-share-resources-across-projects-in-maven/

--
View this message in context: 
http://maven.40175.n5.nabble.com/Help-me-to-understand-this-unpack-dependencies-tp5712889p5712927.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: Help me to understand this unpack-dependencies?

2012-07-03 Thread hujirong
I found CDIPubSubMgmtMed-0.0.1-SNAPSHOT-scripts.zip in Nexus in this folder:
local:8080/nexus/content/groups/mdm-public/com/nbfg/max/wesb/CDIPubSubMgmtMed/0.0.1-SNAPSHOT/

So I guess because the project is depending on the following:

  
com.nbfg.max.wesb
CDIPubSubMgmtMed
0.0.1-SNAPSHOT
ear
App


The classifier makes it look for *scripts.zip in that folder. However, the
Maven doc doesn't tell exactly how it works:
http://maven.apache.org/plugins/maven-dependency-plugin/unpack-dependencies-mojo.html#classifier

Thanks guys.
Jirong

--
View this message in context: 
http://maven.40175.n5.nabble.com/Help-me-to-understand-this-unpack-dependencies-tp5712889p5712925.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: Help me to understand this unpack-dependencies?

2012-07-03 Thread Jörg Schaible
Hi Jirong,

hujirong wrote:

> The project is depends on CDIPubSubMgmtMed-0.0.1-SNAPSHOT.zip, what does
> this scripts exactly do? I thought unpack will
> only download CDIPubSubMgmtMed-0.0.1-SNAPSHOT.zip and unpack to
> outputDirectory.

Right. However, you seem to inherit this dependency (with this classifier) 
from a parent. Please check with "mvn dependency:tree".

> Who created this
> CDIPubSubMgmtMed-0.0.1-SNAPSHOT-scripts.zip?

How should *we* know? This artifact is not in a public repository.

- Jörg


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



Re: Help me to understand this unpack-dependencies?

2012-07-03 Thread Wayne Fay
> The project is depends on CDIPubSubMgmtMed-0.0.1-SNAPSHOT.zip, what does this
> scripts exactly do? I thought unpack will only

The use of classifier is documented on the Maven site. I'm sure you
can find it and/or Google for more info.

> Who created this CDIPubSubMgmtMed-0.0.1-SNAPSHOT-scripts.zip?

This is a GREAT question for YOUR people, ideally you can ask who ever
set this project up in the first place. How do you expect a random
person on the Internet to have full knowledge about your project, the
various modules, the code, etc and be able to answer these kinds of
questions?

Wayne

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



Re: Help me to understand this unpack-dependencies?

2012-07-03 Thread hujirong
The project is depends on CDIPubSubMgmtMed-0.0.1-SNAPSHOT.zip, what does this
scripts exactly do? I thought unpack will only
download CDIPubSubMgmtMed-0.0.1-SNAPSHOT.zip and unpack to outputDirectory.
Who created this CDIPubSubMgmtMed-0.0.1-SNAPSHOT-scripts.zip?

Thanks
Jirong

--
View this message in context: 
http://maven.40175.n5.nabble.com/Help-me-to-understand-this-unpack-dependencies-tp5712889p5712904.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: Help me to understand this unpack-dependencies?

2012-07-03 Thread Wayne Fay
> 1. Where does this file comes from:
> CDIPubSubMgmtMed-0.0.1-SNAPSHOT-scripts.zip? Why it's unpacking this file?

This is why:
>   scripts
>   zip


> 3. Currently a "mvn deploy" to upload the final zip file onto Nexus. If I
> want to upload the zip into each environment, how can I do that?

Deploy has a particular meaning in the world of Maven, which means to
"push the resulting build file into a Maven repo."

Maven doesn't really have a specific answer for how users should
propagate their build artifacts to various environment-specific
servers. This is seen as outside of Maven's core responsibility which
is mostly to "build stuff." You may find the Cargo plugin to be
helpful, or other plugins.

Wayne

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