Add a common module for methods to be used by my client / server in Maven -
i wanted create "common" module in order store common methods in client , server use. created module, , added following sub-modules pom
s:
<dependency> <groupid>com.christopher.kade</groupid> <artifactid>common</artifactid> <version>1.0-snapshot</version> </dependency>
additionally, don't want common
module generate .jar
file, want other modules access content, here pom
:
<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/xsd/maven-4.0.0.xsd"> <parent> <artifactid>jcoinche</artifactid> <groupid>com.christopher.kade</groupid> <version>1.0-snapshot</version> </parent> <modelversion>4.0.0</modelversion> <artifactid>common</artifactid> <packaging>jar</packaging> <version>1.0-snapshot</version> <name>common</name> <url>http://maven.apache.org</url> <properties> <project.build.sourceencoding>utf-8</project.build.sourceencoding> </properties> <dependencies> <dependency> <groupid>junit</groupid> <artifactid>junit</artifactid> <version>3.8.1</version> <scope>test</scope> </dependency> </dependencies> </project>
what should change in order make build work? far builds 3 .jar
s , can't access common methods in client or server module.
Comments
Post a Comment