Thanks. I am still relatively new to Maven and incorrectly interpreted "Binds 
by default to the lifecycle phase: package." in the documentation to mean that 
I didn't need to explicitly specify "package" as a goal prior to 
"appassembler:assemble" Once I did that it worked fine.

Dan

On Mar 29, 2011, at 1:41 PM, Dennis Lundberg wrote:

> Hi
> 
> I just double-checked and followed the steps at:
> http://mojo.codehaus.org/appassembler/appassembler-maven-plugin/usage-program.html
> 
> After running
> mvn package appassembler:assemble
> I find my-app-1.0-SNAPSHOT.jar in the
> target\appassembler\repo\com\mycompany\app\my-app\1.0-SNAPSHOT folder.
> 
> Seems to work like it should.
> 
> On 2011-03-28 22:51, Daniel Dormont wrote:
>> This is what is perhaps a simple question about appassembler. I am using the 
>> "assemble" goal and everything is working correctly for the most part: all 
>> my dependencies get put in the repo, and the shell script is created with 
>> the right classpath. But here's the weird part - the JAR file of the project 
>> itself is not included in the repo. 
>> 
>> When I execute a clean, build, then appassembler:assemble, the artifact 
>> target/example-app-1.0-SNAPSHOT.jar is created, but it's not copied to 
>> target/appassembler/repo/com/example which it seems to me, it should be. 
>> What do I need to change to make it do that? Relevant part of POM is below.
>> 
>> Note: if it matters, I'm running all of this from NetBeans 6.9
>> 
>> thanks,
>> Dan
>> 
>> <project xmlns="http://maven.apache.org/POM/4.0.0"; 
>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>>  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
>> http://maven.apache.org/maven-v4_0_0.xsd";>
>>  <modelVersion>4.0.0</modelVersion>
>>  <groupId>com.example</groupId>
>>  <artifactId>example-app</artifactId>
>>  <packaging>jar</packaging>
>>  <version>1.0-SNAPSHOT</version>
>>  <name>example-app</name>
>>  <url>http://maven.apache.org</url>
>>  <build>
>>    <plugins>
>>      <plugin>
>>        <groupId>org.apache.maven.plugins</groupId>
>>        <artifactId>maven-compiler-plugin</artifactId>
>>        <version>2.0.2</version>
>>        <configuration>
>>          <source>1.6</source>
>>          <target>1.6</target>
>>        </configuration>
>>      </plugin>
>>  <plugin>
>>    <groupId>org.codehaus.mojo</groupId>
>>    <artifactId>appassembler-maven-plugin</artifactId>
>>    <version>1.0</version>
>>        <configuration>
>>          <programs>
>>            <program>
>>              <mainClass>com.example.app.App</mainClass>
>>              <name>myShellScript</name>
>>            </program>
>>          </programs>
>>          <platforms>
>>            <platform>unix</platform>
>>          </platforms>
>>        </configuration>
>>  </plugin>
>> 
>>  </plugins>
>>  </build>
>>  <!-- dependencies and such here -->
>> </project>
>> 
>> 
>> 
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe from this list, please visit:
>> 
>>    http://xircles.codehaus.org/manage_email
>> 
>> 
>> 
> 
> 
> -- 
> Dennis Lundberg
> 
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
> 
>    http://xircles.codehaus.org/manage_email
> 
> 

Reply via email to