*Here is the part of the POM:*

~~~~~~~~~~~~~~~~~~~~``
    <plugins>
      
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-dependency-plugin</artifactId>
        <version>2.4</version>
        <executions>
          <execution>
            <id>unpack-scripts</id>
            <phase>generate-sources</phase>
            <goals>
              <goal>unpack-dependencies</goal>
            </goals>
            <configuration>
             
<outputDirectory>${project.build.directory}/appscripts</outputDirectory>
              <excludeTransitive>true</excludeTransitive>
              <classifier>scripts</classifier>
              <type>zip</type>
             
<failOnMissingClassifierArtifact>false</failOnMissingClassifierArtifact>
            </configuration>
          </execution>
        </executions>
      </plugin>

      
      <plugin>
        <artifactId>maven-assembly-plugin</artifactId>
        <configuration>
          <descriptors>
           
<descriptor>src/main/resources/assemblies/deployment-assembly.xml</descriptor>
          </descriptors>
        </configuration>
        <executions>
          <execution>
            <id>make</id>
            <phase>package</phase>
            <goals>
              <goal>single</goal>
            </goals>
          </execution>
        </executions>
        <dependencies>
          <dependency>
            <groupId>com.nbfg.fw.maven</groupId>
            <artifactId>assemblies</artifactId>
            <version>0.0.1-SNAPSHOT</version>
          </dependency>
        </dependencies>
      </plugin>

    </plugins>
  </build>

  
  <dependencies>

    <dependency>
      <groupId>com.nbfg.fw.wsadmin</groupId>
      <artifactId>dpllib</artifactId>
      <version>1.0.0-SNAPSHOT</version>
      <type>zip</type>
    </dependency>

  </dependencies>

  
  <profiles>
       <profile>
      <id>DEV</id>
      <activation>
        <activeByDefault>false</activeByDefault>
      </activation>
      <properties>
        <classifier>DEV</classifier>
      </properties>
      <dependencies>
        <dependency>
                <groupId>com.nbfg.max.wesb</groupId>
                        <artifactId>CDIPubSubMgmtMed</artifactId>
                        <version>0.0.1-SNAPSHOT</version>
                        <type>ear</type>
                <classifier>App</classifier>
        </dependency>
      </dependencies>      
    </profile>

~~~~~~~~~~~~~~~~~~~~~~~~

*This is the command and output:*

C:\Sandbox\MDM\WESB>mvn package -P DEV
[INFO] Scanning for projects...
[INFO]
[INFO]
------------------------------------------------------------------------
[INFO] Building WESB Deployment R2-0.0.1-SNAPSHOT
[INFO]
------------------------------------------------------------------------
[INFO]
[INFO] --- maven-dependency-plugin:2.4:unpack-dependencies (unpack-scripts)
@ MDM-WESB ---
> isMarkerOlder:
[INFO] Unpacking
C:\Users\Administrator\.m2\repository\com\nbfg\max\wesb\CDIPubSubMgmtMed\0.0.1-SNAPSHOT\CDIPubSubMgmtMed-0.0.1-SNAPSHOT-scripts.zip
to C:\Sandbox\MDM\WESB\target\appscripts with includes "" and excludes ""
[INFO]
[INFO] --- maven-assembly-plugin:2.2-beta-5:single (make) @ MDM-WESB ---
[INFO] Reading assembly descriptor:
src/main/resources/assemblies/deployment-assembly.xml
[INFO] No files selected for line-ending conversion or filtering. Skipping:
C:\Sandbox\MDM\WESB\src\main\resources\commo
n
[WARNING] Cannot include project artifact:
com.nbfg.mdm.environments:MDM-WESB:pom:R2-0.0.1-SNAPSHOT; it doesn't have
anassociated file or directory.
[WARNING] Cannot include project artifact:
com.nbfg.mdm.environments:MDM-WESB:pom:R2-0.0.1-SNAPSHOT; it doesn't have
anassociated file or directory.
[INFO] scripts/sh already added, skipping
[INFO] Building zip:
C:\Sandbox\MDM\WESB\target\MDM-WESB-R2-0.0.1-SNAPSHOT-DEV.zip
[INFO] scripts/sh already added, skipping
[INFO]
------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 1.679s
[INFO] Finished at: Tue Jul 03 16:30:13 EDT 2012
[INFO] Final Memory: 15M/512M
[INFO]
------------------------------------------------------------------------
C:\Sandbox\MDM\WESB>

~~~~~~~~~~

*Questions:*

1. Where does this file comes from:
CDIPubSubMgmtMed-0.0.1-SNAPSHOT-scripts.zip? Why it's unpacking this file?

2. What does these two [WARNING] mean, and how to fix them?

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?

Thanks
Jirong

--
View this message in context: 
http://maven.40175.n5.nabble.com/Help-me-to-understand-this-unpack-dependencies-tp5712889.html
Sent from the Maven - Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to