You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by evalentini <ev...@new10.com> on 2006/12/19 00:16:56 UTC

Help: directory-inline does not work in phase "generate-resources"

Hi

This is the main part of my (sub)module - pom.xml
			<plugin>
				<artifactId>maven-assembly-plugin</artifactId>
				<executions>
					<execution>
						<phase>generate-resources</phase>
						<goals><goal>directory-inline</goal></goals>
					</execution>
				</executions>
				<configuration>
				
<descriptors><descriptor>src/main/assemblies/resources_jar.xml</descriptor></descriptors>
					<appendAssemblyId>false</appendAssemblyId>
				</configuration>
			</plugin>

This works fine if executed "stand alone" (see below ouput)

When I executed as a sub-module of a parent pom.xml
then the assembly - directory-inline goal allows other modules to interact.
(I thought this is not the case with directory-inline!!)

Here the output:

------------------------------------------------------------------------------------------------------------
[INFO] Scanning for projects...
[INFO] Reactor build order:
[INFO]   shop
[INFO]   shop-admin-resources
[INFO]   shop-admin
[INFO]
----------------------------------------------------------------------------
[INFO] Building shop
[INFO]    task-segment: [clean, install]
[INFO]
----------------------------------------------------------------------------
[INFO] [clean:clean]
[INFO] Deleting directory
/ext/work/workspace/mws/checkout/shop/current/target
[INFO] Deleting directory
/ext/work/workspace/mws/checkout/shop/current/target/classes
[INFO] Deleting directory
/ext/work/workspace/mws/checkout/shop/current/target/test-classes
[INFO] [site:attach-descriptor]
[INFO] [install:install]
[INFO] Installing /ext/work/workspace/mws/checkout/shop/current/pom.xml to
/home/eva/.m2/repository/com/new10/shop/shop/2.0.2-SNAPSHOT/shop-2.0.2-SNAPSHOT.pom
[INFO]
----------------------------------------------------------------------------
[INFO] Building shop-admin-resources
[INFO]    task-segment: [clean, install]
[INFO]
----------------------------------------------------------------------------
[INFO] [clean:clean]
[INFO] Deleting directory
/ext/work/workspace/mws/checkout/shop/current/shop-admin-resources/target
[INFO] Deleting directory
/ext/work/workspace/mws/checkout/shop/current/shop-admin-resources/target/classes
[INFO] Deleting directory
/ext/work/workspace/mws/checkout/shop/current/shop-admin-resources/target/test-classes
[INFO] snapshot
com.new10.shop.shop-admin-resources:shop-admin-resources:2.0.2-SNAPSHOT:
checking for updates from internal
Downloading:
http://10.1.255.98/maven2/repository/com/new10/shop/shop-admin-resources/2.0.2-SNAPSHOT/shop-admin-resources-2.0.2-SNAPSHOT.jar
[WARNING] Unable to get resource from repository internal
(http://10.1.255.98/maven2/repository)
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Failed to resolve artifact.

Missing:
----------
1) shop.shop-admin:resources:jar:2.0.2-SNAPSHOT

  Try downloading the file manually from the project website.

  Then, install it using the command:
      mvn install:install-file -DgroupId=shop.shop-admin
-DartifactId=resources \
          -Dversion=2.0.2-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file

  Path to dependency:
        1) shop:shop-admin:war:2.0.2-SNAPSHOT
        2) shop.shop-admin:resources:jar:2.0.2-SNAPSHOT

----------
1 required artifact is missing.

for artifact:
  shop:shop-admin:war:2.0.2-SNAPSHOT

from the specified remote repositories:
  central (http://10.1.255.98/maven2/mirror),
  sun (https://maven-repository.dev.java.net/nonav/repository/),
  internal (http://10.1.255.98/maven2/repository)

------------------------------------------------------------------------------------------------------------
The execution of another module (that requieres the produced jar) is
launched before the "generate-resources" 
phase.

Is directory-inline the right goal?
Interrestingly, with the goal "unpack", the phase is not interrupted.


Thanks
 evalentini


PS: When executed as standalone (within the shop-admin-resources directory),
maven outputs this correct log:

Scanning for projects...
[INFO]
----------------------------------------------------------------------------
[INFO] Building shop-admin-resources
[INFO]    task-segment: [clean, install]
[INFO]
----------------------------------------------------------------------------
[INFO] [clean:clean]
[INFO] Deleting directory
/ext/work/workspace/mws/checkout/shop/current/shop-admin-resources/target
[INFO] Deleting directory
/ext/work/workspace/mws/checkout/shop/current/shop-admin-resources/target/classes
[INFO] Deleting directory
/ext/work/workspace/mws/checkout/shop/current/shop-admin-resources/target/test-classes
[INFO] [assembly:directory-inline {execution: collect-make-assembly}]
[INFO] Expanding:
/home/eva/.m2/repository/common-resources/20061211/common-resources-20061211.jar
into
/ext/work/workspace/mws/checkout/shop/current/shop-admin-resources/target/assembly/work/common-resources-20061211.jar
[INFO] Expanding:
/home/eva/.m2/repository/htmlGui-resources/20061211/htmlGui-resources-20061211.jar
into
/ext/work/workspace/mws/checkout/shop/current/shop-admin-resources/target/assembly/work/htmlGui-resources-20061211.jar
[INFO] Expanding:
/home/eva/.m2/repository/mediaLib-resources/20061211/mediaLib-resources-20061211.jar
into
/ext/work/workspace/mws/checkout/shop/current/shop-admin-resources/target/assembly/work/mediaLib-resources-20061211.jar
[INFO] Expanding:
/home/eva/.m2/repository/xmlEditor-resources/20061211/xmlEditor-resources-20061211.jar
into
/ext/work/workspace/mws/checkout/shop/current/shop-admin-resources/target/assembly/work/xmlEditor-resources-20061211.jar
[INFO] Copying 203 files to
/ext/work/workspace/mws/checkout/shop/current/shop-admin-resources/target/resources-2.0.2-SNAPSHOT
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
[INFO] No sources to compile
[INFO] [resources:testResources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:testCompile]
[INFO] Not compiling test sources
[INFO] [surefire:test]
[INFO] Tests are skipped.
[INFO] [jar:jar]
[INFO] Building jar:
/ext/work/workspace/mws/checkout/shop/current/shop-admin-resources/target/shop-admin-resources-2.0.2-SNAPSHOT.jar
[INFO] [install:install]
[INFO] Installing
/ext/work/workspace/mws/checkout/shop/current/shop-admin-resources/target/shop-admin-resources-2.0.2-SNAPSHOT.jar
to
/home/eva/.m2/repository/com/new10/shop/shop-admin-resources/2.0.2-SNAPSHOT/shop-admin-resources-2.0.2-SNAPSHOT.jar
[INFO]
------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 6 seconds
[INFO] Finished at: Mon Dec 18 23:06:41 GMT 2006
[INFO] Final Memory: 7M/13M
[INFO]
------------------------------------------------------------------------


-- 
View this message in context: http://www.nabble.com/Help%3A-directory-inline-does-not-work-in-phase-%22generate-resources%22-tf2843036s177.html#a7938612
Sent from the Maven - Users mailing list archive at Nabble.com.


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