Me neither, but because maven resisted to resolve the plugin dependency maven-filtering-1.0-SNAPSHOT
2011/2/8 Dennis Lundberg <[email protected]> > On 2011-02-07 22:41, Stevo Slavić wrote: > > Doesn't work for me with > > > https://repository.apache.org/content/groups/snapshots/org/apache/maven/plugins/maven-assembly-plugin/2.2.1-SNAPSHOT/maven-assembly-plugin-2.2.1-20110203.204308-1.jar > > - classpath still nowhere to be seen. Checking out > > maven-assembly-plugin trunk (r1068108), installing it, and making use > > of it didn't help as well. > > OK, thanks for testing. > > > > > Regards, > > Stevo. > > > > On Mon, Feb 7, 2011 at 8:28 PM, Dennis Lundberg <[email protected]> > wrote: > >> On 2011-02-07 00:27, Kai Hackemesser wrote: > >>> Hi there, > >>> > >>> We try to migrate to Maven 3.0 here but one assembly causes us > headache. > >>> > >>> In the project we try to build a runnable jar that depends on libraries > that > >>> are assembled into a lib folder. Under Maven 2(.2.1) we have no problem > with > >>> that, the runnable jar works as designed. The same project build under > Maven > >>> 3.0.2 currently builds the project without complaints, but in our > resulting > >>> jar's MANIFEST.MF file the Class-Path entry is missing completely. > >>> > >>> Is this a known bug, is there a workaround known if so? Or do I need to > >>> modify something in the assembly for this? > >> > >> Can you please try with the latest 2.2.1-SNAPSHOT version of the > >> Assembly Plugin? > >> > >>> here's our plugin configuration: > >>> <plugin> > >>> <artifactId>maven-assembly-plugin</artifactId> > >>> <version>2.2</version> > >>> <executions> > >>> <execution> > >>> <id>deploy-assembly</id> > >>> <phase>package</phase> > >>> <goals> > >>> <goal>single</goal> > >>> </goals> > >>> <configuration> > >>> <attach>false</attach> > >>> <descriptors> > >>> > >>> <descriptor>src/main/assembly/executable-assembly.xml</descriptor> > >>> </descriptors> > >>> <archive> > >>> <manifest> > >>> > >>> <addDefaultImplementationEntries>true</addDefaultImplementationEntries> > >>> > <mainClass>com.energyintellect.ecg.Application</mainClass> > >>> *<addClasspath>true</addClasspath>* > >>> <addExtensions>false</addExtensions> > >>> </manifest> > >>> </archive> > >>> <finalName>eig-${project.version}</finalName> > >>> </configuration> > >>> </execution> > >>> </plugin> > >>> > >>> and the assembly descriptor: > >>> > >>> <assembly xmlns="http://maven.apache.org/xsd/assembly-1.1.0" > xmlns:xsi=" > >>> http://www.w3.org/2001/XMLSchema-instance" > >>> xsi:schemaLocation="http://maven.apache.org/xsd/assembly-1.1.0 > >>> http://maven.apache.org/xsd/assembly-1.1.0-SNAPSHOT.xsd"> > >>> <id>bin</id> > >>> <formats> > >>> <format>jar</format> > >>> </formats> > >>> <includeBaseDirectory>false</includeBaseDirectory> > >>> <dependencySets> > >>> <dependencySet> > >>> <useProjectArtifact>false</useProjectArtifact> > >>> <unpack>true</unpack> > >>> <scope>runtime</scope> > >>> <includes> > >>> <include>com.[...]</include> > >>> <include>com.[...]</include> > >>> <include>com.[...]</include> > >>> <include>com.[...]</include> > >>> <include>com.smardec:license4j</include> > >>> <include>net.wimpi:modbus</include> > >>> </includes> > >>> </dependencySet> > >>> </dependencySets> > >>> <fileSets> > >>> <fileSet> > >>> <directory>target/classes</directory> > >>> <outputDirectory></outputDirectory> > >>> </fileSet> > >>> </fileSets> > >>> </assembly> > >>> > >>> Cheers, > >>> Kai > >>> > >> > >> > >> -- > >> Dennis Lundberg > >> > >> --------------------------------------------------------------------- > >> To unsubscribe, e-mail: [email protected] > >> For additional commands, e-mail: [email protected] > >> > >> > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [email protected] > > For additional commands, e-mail: [email protected] > > > > > > > -- > Dennis Lundberg > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > >
