Dear All,

I want to inlude one small dependency library together with my JAR file. 
There is an assembly plugin for this and it works fine. But now my primary 
project is coded in Java 7 syntax. Netbeans IDE adds a special settings 
(source/target) for maven-compiler-plugin in my POM file. I don't know if 
this is the reason, but when this project is built using assembly:single, 
there is only the content of external libraries in my file, not my Java 7 
classes of the primary project. Is it necessary to switch something else on?


Thanks, Jan

        <plugins>
            <plugin>
                <artifactId>maven-assembly-plugin</artifactId>
                <version>2.4</version>
                <configuration>
                    <archive>
                        <manifest>
                            <mainClass>... my main class ...</mainClass>
                        </manifest>
                    </archive>
                    <descriptorRefs>
                        <descriptorRef>jar-with-dependencies</descriptorRef>
                    </descriptorRefs>
                </configuration>
            </plugin>     

            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <version>2.4</version>
                <configuration>
                    <source>1.7</source>
                    <target>1.7</target>
                </configuration>
            </plugin>   

Reply via email to