I have a maven based DropWizard project that builds a jar (including 
dependencies) perfectly from the terminal using "mvn assembly:single".

But when I try to build with Jenkins specifying "mvn assembly:single" as a 
goal, source files from the main source folder i.e. "src/main/java"are 
missing from the jar.

my pom file includes - 

    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <version>3.1</version>
                <configuration>
                    <source>1.7</source>
                    <target>1.7</target>
                </configuration>
            </plugin>
            <plugin>
                <artifactId>maven-assembly-plugin</artifactId>
                <configuration>
                    <archive>
                        <manifest>
                            <addClasspath>true</addClasspath>
                            <mainClass>test.App</mainClass>
                        </manifest>
                    </archive>
                    <descriptorRefs>
                        <descriptorRef>jar-with-dependencies</descriptorRef>
                    </descriptorRefs>
                </configuration>
            </plugin>
        </plugins>
         <resources>
        <resource>
            <directory>src/main/java</directory>
        </resource>
    </resources>
    </build>
 
any ideas?

thanks

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/c33e06b0-f2f3-4a3f-919d-8c2bd4a64656%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to