Hi,
 
I trying to use the assemply:unpack mojo to extract sources from a dependency 
into the source directory. When I add the dependency in the main section of the 
pom it works, but then the unpack mojo also extracts all the other 
dependencies. And when I try to specify the dependency for the assemply plugin 
only, I'm getting a build error.
 
How can this be resolved?
 
  <build>
    
<sourceDirectory>src/main/java/oss_om_spec_model-1.0-SNAPSHOT-sources</sourceDirectory>
        <plugins>
                <plugin>
                        <artifactId>maven-assembly-plugin</artifactId>
                        <configuration>
                                
<workDirectory>${project.build.sourceDirectory}/..</workDirectory>
                                <dependencies>
                                        <dependency>
                                                <groupId>ossj.jsr264</groupId>
                                                
<artifactId>oss_om_spec_model</artifactId>
                                                <version>1.0-SNAPSHOT</version>
                                                <type>jar</type>
                                                <classifier>sources</classifier>
                                                <scope>compile</scope>
                                        </dependency>
                                </dependencies>
                        </configuration>
                        <executions>
                                <execution>
                                    <phase>generate-sources</phase>
                                        <goals>
                                                <goal>unpack</goal>
                                        </goals>
                                </execution>
                        </executions>
                </plugin>
        </plugins>
  </build>

---

[INFO] 
----------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] 
----------------------------------------------------------------------------
[INFO] Error configuring: org.apache.maven.plugins:maven-assembly-plugin. 
Reason: ERROR: Cannot over
ride read-only parameter: dependencies in goal: assembly:unpack

Thanks,
 _         __                _  _
//\ndreas.[|-bbert-[]/arroum(a)[|\|okia.com
           `-        `
   Andreas Ebbert-Karroum
   Software Design Engineer - Nokia Networks Services / Middleware 
   phone: +49-211-94123928, fax: +49-211-9412-3838
   Heltorfer Straße 1, 40472 Düsseldorf, Germany 

----------------------------------------------------------------------
This message is confidential. If you have received this message in error,
please delete it from your system. You should not copy it for any purpose,
or disclose its contents to any other person. Internet communications are
not secure and therefore Nokia GmbH does not accept legal responsibility
for the contents of this message as it has been transmitted over a public
network. Thank you.
Nokia GmbH, Nokia Networks is a German Company. Further information
about the Company is available from its principal offices at
Heltorferstrasse 1, D-40472, Düsseldorf, Germany and from the
website at http://www.nokia.com/
----------------------------------------------------------------------

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to