You can try using "mvn project-info-reports:dependencies" to view who's
pulling that artifact. Maybe from there you could guess where that artifact
is. Or maybe you could exclude it from your dependencies if you're not using
it.
HTH,
Jo Eduardo
tamugrg wrote:
>
> Hi Wayne,
>
> Thanks for the response. I feel we are close now. In pom.xml for
> 'myejbmodule' module, immediately after 'maven-antrun-plugin' section, I
> have added the following section:
>
> <plugin>
> <groupId>org.codehaus.mojo</groupId>
> <artifactId>build-helper-maven-plugin</artifactId>
> <executions>
> <execution>
> <id>attach-artifacts</id>
> <phase>package</phase>
> <goals>
> <goal>attach-artifact</goal>
> </goals>
> <configuration>
> <artifacts>
> <artifact>
>
> <file>${project.build.directory}/mytranslets.jar</file>
> <type>jar</type>
> </artifact>
> </artifacts>
> </configuration>
> </execution>
> </executions>
> </plugin>
>
>
> When I run maven build for just that module, I do not get any errors. Now
> when I tried to add dependency to my 'myearmodule' like
>
> <dependency>
> <groupId>xxxx</groupId>
> <artifactId>mytranslets</artifactId>
> <version>1.0</version>
> </dependency>
>
> Then I get build error:
>
> Missing:
> ----------
> 1) xxx:mytranslets:jar:1.0
>
> Try downloading the file manually from the project website.
>
> Then, install it using the command:
> mvn install:install-file -DgroupId=au.com.auspost.pcms
> -DartifactId=pcms-
> abel-translets -Dversion=1.0 -Dpackaging=jar -Dfile=/path/to/file
>
> Cheers,
>
>
> tamugrg wrote:
>>
>> Hi,
>>
>> My project structure is as follows:
>>
>> myproject - pom.xml
>> - myearmodule
>> -pom.xml
>> - mywebmodule
>> -pom.xml
>> - myejbmodule
>> -pom.xml
>> .........
>>
>> pom.xml of 'myejbmodule'
>> -------------------------------
>> :
>> :
>> <plugin>
>> <artifactId>maven-antrun-plugin</artifactId>
>> <dependencies>
>> ........
>> </dependencies>
>>
>> <executions>
>> <execution>
>> <phase>compile</phase>
>> <configuration>
>> <tasks>
>> <java
>> classname="org.apache.xalan.xsltc.cmdline.Compile"
>> dir="${project.build.directory}">
>> <arg line="-p package1.package2."/>
>> <arg line="-j mytranslets.jar"/>
>> <arg line="-u
>> file:///${basedir}/myfolder/label.xsl"/>
>> </java>
>> </tasks>
>> </configuration>
>> <goals>
>> <goal>run</goal>
>> </goals>
>> </execution>
>> </executions>
>>
>> </plugin>
>>
>> The 'mytranslets.jar' jar file created in 'myejbmodule' gets created in
>> the 'target' folder of 'myejbmodule'
>>
>> I would want to include the jar as part of the myearmodule.ear that gets
>> generated from 'myearmodule'. Any pointers??
>>
>> Cheers,
>>
>
>
--
View this message in context:
http://old.nabble.com/Including-generated-jars-into-ear-file-tp27495491p27499890.html
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]