Hmm, I don't know what you mean. I don't set any xpath explicitly. But I can attach the complete pom.
On 05/14/13 10:48, Stephen Connolly wrote:
Well without seeing your parent tree's xpath:/project/dependencies and your project's xpath:/project/dependencies we cannot say anything as what you have provided there should *never* end up on the transitive dependency tree, so you are looking at the wrong part of the pom. On 14 May 2013 09:39, Sven Bauhan <[email protected]> wrote:Ok, perhaps you can tell me what I did wrong. I included the javadoc plugin by: <plugin> <groupId>org.apache.maven.**plugins</groupId> <artifactId>maven-javadoc-**plugin</artifactId> <version>2.9</version> <configuration> <author>false</author> <linksource>true</linksource> <docfilessubdirs>true</**docfilessubdirs> <sourceFileExcludes> <exclude>*Adapter*.java</**exclude> <exclude>*ObjectFactory.java</**exclude> <exclude>*ContextComponent.**java</exclude> <exclude>*Configuration.java</**exclude> <exclude>*SendController.java<**/exclude> </sourceFileExcludes> <sourcepath>${basedir}/src/**main/java/de/dfs/msg/atsm;${** basedir}/target/generated-**sources/xjc/de/dfs/msg/atsm</**sourcepath> </configuration> <executions> <execution> <id>attach-javadocs</id> <goals> <goal>jar</goal> </goals> </execution> </executions> </plugin> I did not define an explicit dependency to javadoc, but in "mvn dependency:tree" I can see it. Thanks, Sven On 05/14/13 10:18, Stephen Connolly wrote:I think you are doing it wrong if you are adding <dependency> for plugins. The xpath:/project/dependencies are about specifying the classpath dependencies during different scopes. The xpath:/project/build/plugins/**plugin entries are about specifying what build tools to use when building the artifact... such build tools are not passed to dependent projects. I am 99.99999999999% certain that you have made a mistake adding maven-javadoc-plugin as a dependency On 14 May 2013 09:09, Sven Bauhan <[email protected]> wrote: Hi, I have another question:I have two projects, one java library and a swing application using this library. For the library I use the apache maven-javadoc-plugin to create an API documentation, cause this library shall be used by various applications. The swing application has a dependency to this library and so it also gets an inherited dependency to the javadoc plugin. With this also log4j is inherited as dependency, but with an old version. In the application also log4j is used, but the latest version. So we have a version conflict. We could solve this yet by excluding the javadoc plugin in the dependency description: <dependency> <groupId>de.dfs.msg.atsm</****groupId> <artifactId>atsm-camel</****artifactId> <version>0.1-SNAPSHOT</****version> <exclusions> <exclusion> <artifactId>maven-javadoc-****plugin</artifactId> <groupId>org.apache.maven.****plugins</groupId> </exclusion> </exclusions> </dependency> But this is not a good way to do, cause this has to be done by all applications using the library. Is there a way to define the dependency in the library pom not to be inherited? I saw there is a scope definition for dependencies, but I did not understand this concept yet. Would this be a solution? Thanks, Sven ------------------------------****----------------------------** --**--------- To unsubscribe, e-mail: users-unsubscribe@maven.**apac**he.org<http://apache.org> <users-unsubscribe@**maven.apache.org<[email protected]> For additional commands, e-mail: [email protected]------------------------------**------------------------------**--------- To unsubscribe, e-mail: users-unsubscribe@maven.**apache.org<[email protected]> For additional commands, e-mail: [email protected]
<?xml version="1.0" encoding="UTF-8"?> <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>de.dfs.msg.atsm</groupId> <artifactId>atsm-camel</artifactId> <packaging>jar</packaging> <version>0.1-SNAPSHOT</version> <name>ATS-M in Camel</name> <url>http://www.dfs.de</url> <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> </properties> <pluginRepositories> </pluginRepositories> <dependencies> <dependency> <groupId>org.apache.camel</groupId> <artifactId>camel-core</artifactId> <version>2.10.4</version> </dependency> <!-- logging --> <dependency> <groupId>org.slf4j</groupId> <artifactId>slf4j-api</artifactId> <version>1.6.6</version> </dependency> <dependency> <groupId>org.slf4j</groupId> <artifactId>slf4j-log4j12</artifactId> <version>1.6.6</version> <scope>runtime</scope> </dependency> <!-- testing --> <dependency> <groupId>org.apache.camel</groupId> <artifactId>camel-test</artifactId> <version>2.10.4</version> <scope>test</scope> </dependency> <dependency> <groupId>org.apache.camel</groupId> <artifactId>camel-jaxb</artifactId> <version>2.10.4</version> </dependency> <dependency> <groupId>org.apache.camel</groupId> <artifactId>camel-context</artifactId> <version>2.10.4</version> </dependency> <dependency> <groupId>commons-io</groupId> <artifactId>commons-io</artifactId> <version>1.4</version> </dependency> <!--<dependency> <groupId>org.apache.camel</groupId> <artifactId>camel-base64</artifactId> <version>2.11.0</version> </dependency>--> <dependency> <groupId>commons-beanutils</groupId> <artifactId>commons-beanutils</artifactId> <version>1.7.0</version> </dependency> <dependency> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-javadoc-plugin</artifactId> <version>2.9</version> </dependency> <dependency> <groupId>javax.xml.bind</groupId> <artifactId>jaxb-api</artifactId> <version>2.1</version> </dependency> <dependency> <groupId>de.sven-jacobs</groupId> <artifactId>loremipsum</artifactId> <version>1.0</version> <scope>test</scope> </dependency> <dependency> <groupId>com.google.guava</groupId> <artifactId>guava</artifactId> <version>14.0.1</version> <scope>test</scope> </dependency> <dependency> <artifactId>commons-codec</artifactId> <groupId>commons-codec</groupId> <type>jar</type> <version>1.2</version> </dependency> </dependencies> <build> <defaultGoal>install</defaultGoal> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>2.5.1</version> <configuration> <source>1.6</source> <target>1.6</target> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-resources-plugin</artifactId> <version>2.4.3</version> <configuration> <encoding>UTF-8</encoding> </configuration> </plugin> <plugin> <groupId>org.jvnet.jaxb2.maven2</groupId> <artifactId>maven-jaxb2-plugin</artifactId> <version>0.8.3</version> <configuration> <generatePackage>de.dfs.msg.atsm</generatePackage> </configuration> <executions> <execution> <goals> <goal>generate</goal> </goals> </execution> </executions> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-javadoc-plugin</artifactId> <version>2.9</version> <configuration> <author>false</author> <linksource>true</linksource> <docfilessubdirs>true</docfilessubdirs> <sourceFileExcludes> <exclude>*Adapter*.java</exclude> <exclude>*ObjectFactory.java</exclude> <exclude>*ContextComponent.java</exclude> <exclude>*Configuration.java</exclude> <exclude>*SendController.java</exclude> </sourceFileExcludes> <sourcepath>${basedir}/src/main/java/de/dfs/msg/atsm;${basedir}/target/generated-sources/xjc/de/dfs/msg/atsm</sourcepath> </configuration> <executions> <execution> <id>attach-javadocs</id> <goals> <goal>jar</goal> </goals> </execution> </executions> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-source-plugin</artifactId> <version>2.2.1</version> <executions> <execution> <id>attach-sources</id> <goals> <goal>jar</goal> </goals> </execution> </executions> </plugin> <!-- allows the route to be ran via 'mvn camel:run' --> <plugin> <groupId>org.apache.camel</groupId> <artifactId>camel-maven-plugin</artifactId> <version>2.10.4</version> </plugin> <!-- Allows the example to be run via 'mvn compile exec:java' --> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>exec-maven-plugin</artifactId> <version>1.2.1</version> <configuration> <mainClass>de.dfs.atciss.MainApp</mainClass> <includePluginDependencies>false</includePluginDependencies> </configuration> </plugin> </plugins> </build> </project>
--------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
