If I run the install command with -e flag then I dont get this error please tell me why I get error without -e flag ?
fachhoch wrote: > > I created a maven project which has three sub projects one for ear , one > for > war and one for jar.War has dependency to jar and ear has dependency to > war. When I try to install project i get this error > > Reason: Failed to copy file for artifact[active project artifact: > artifact = gov.audit:audit.jar:jar:1:compile; > project: MavenProject: gov.audit:audit.jar:1 @ > E:\dev\eclipse\Audit\Audit.gov\audit.jar\pom.xml] > > > I tried in other way first build jar , it works fine then when I build war > I > get this error > > The following mojo encountered an error while executing: > Group-Id: org.apache.maven.plugins > Artifact-Id: maven-war-plugin > Version: 2.1-alpha-1 > Mojo: war > brought in via: packaging: war > > While building project: > Group-Id: gov.audit > Artifact-Id: audit.war > Version: 1 > From file: E:\dev\eclipse\Audit\Audit.gov\audit.war\pom.xml > Reason: Failed to copy file for > artifact[gov.audit:audit.jar:jar:1:compile] > > also pom file for my war project > > <?xml version="1.0" encoding="UTF-8"?><project> > <parent> > <artifactId>Audit.gov</artifactId> > <groupId>gov.audit</groupId> > <version>1</version> > </parent> > <modelVersion>4.0.0</modelVersion> > <groupId>gov.audit</groupId> > <artifactId>audit.war</artifactId> > <packaging>war</packaging> > <name>audit.war Maven Webapp</name> > <version>1</version> > <url>http://maven.apache.org</url> > <build> > <finalName>audit</finalName> > </build> > <dependencies> > <dependency> > <groupId>gov.audit</groupId> > <artifactId>audit.jar</artifactId> > <version>1</version> > </dependency> > </dependencies> > </project> > > please tell me if i specified correctly dependency for my sub project ? > > -- View this message in context: http://www.nabble.com/subproject-dependency-tp23484464p23549820.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]
