Somehow, "mvn clean" is working now, but I'm still getting error in several other commands say "mvn eclipse:eclipse", "mvn install" and "mvn package" :
[INFO] [ear:generate-application-xml] [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Failed to initialize ear modules Embedded error: Unknown artifact type[test-jar] [INFO] ------------------------------------------------------------------------ [INFO] For more information, run Maven with the -e switch [INFO] ------------------------------------------------------------------------ [INFO] Total time: 8 seconds [INFO] Finished at: Fri Jun 13 11:42:04 IST 2008 [INFO] Final Memory: 8M/17M [INFO] ------------------------------------------------------------------------ Regards, Mukta Jindal -----Original Message----- From: JINDAL, Mukta, IDC Sent: 13 June 2008 10:50 To: 'Maven Users List' Subject: RE: Embedded error: Unknown artefact type[test-jar] C:\sandbox\rbsfm\netpositioner\ear>mvn help:effective-pom [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'help'. [INFO] artifact org.apache.maven.plugins:maven-help-plugin: checking for updates from central Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-help-p lugin/2.0.2/maven-help-plugin-2.0.2.pom 3K downloaded Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-help-p lugin/2.0.2/maven-help-plugin-2.0.2.jar 23K downloaded [INFO] ------------------------------------------------------------------------ [INFO] Building Net Positioner: Enterprise Application [INFO] task-segment: [help:effective-pom] (aggregator-style) [INFO] ------------------------------------------------------------------------ [INFO] [help:effective-pom] [INFO] ******************************************************************************** **** Effective POM for project 'com.rbsfm.netpositioner:ear:ear:4.0-SNAPSHOT' ******************************************************************************** **** <?xml version="1.0"?><project> <parent> <artifactId>netpositioner</artifactId> <groupId>com.rbsfm.netpositioner</groupId> <version>4.0-SNAPSHOT</version> </parent> <modelVersion>4.0.0</modelVersion> <groupId>com.rbsfm.netpositioner</groupId> <artifactId>ear</artifactId> <packaging>ear</packaging> <name>Net Positioner: Enterprise Application</name> <version>4.0-SNAPSHOT</version> <description>Net Positioner EAR</description> <url>http://www.netpositioner.com/ear</url> <build> <sourceDirectory>C:\sandbox\rbsfm\netpositioner\ear\src\main\java</sourceDir ectory> <scriptSourceDirectory>src/main/scripts</scriptSourceDirectory> <testSourceDirectory>C:\sandbox\rbsfm\netpositioner\ear\src\test\java</testS ourceDirectory> <outputDirectory>C:\sandbox\rbsfm\netpositioner\ear\target\classes</outputDi rectory> <testOutputDirectory>C:\sandbox\rbsfm\netpositioner\ear\target\test-classes< /testOutputDirectory> <resources> <resource> <directory>C:\sandbox\rbsfm\netpositioner\ear\src\main\resources</direct ory> </resource> </resources> <testResources> <testResource> <directory>C:\sandbox\rbsfm\netpositioner\ear\src\test\resources</direct ory> </testResource> </testResources> <directory>C:\sandbox\rbsfm\netpositioner\ear\target</directory> <finalName>ear-4.0-SNAPSHOT</finalName> <plugins> <plugin> <artifactId>maven-compiler-plugin</artifactId> <configuration> <source>1.5</source> <target>1.5</target> </configuration> </plugin> <plugin> <artifactId>maven-surefire-plugin</artifactId> <version>2.4.1</version> </plugin> <plugin> <artifactId>maven-ear-plugin</artifactId> <configuration> <displayName>Net Positioner</displayName> <description>Net Positioner</description> <version>1.4</version> <modules> <jarModule> <groupId>com.rbsfm.netpositioner</groupId> <artifactId>position-persistor</artifactId> </jarModule> <jarModule> <groupId>com.rbsfm.netpositioner</groupId> <artifactId>position-updator</artifactId> </jarModule> </modules> <ear-source-excludes>**/log4j*, **/commons-logging*</ear-sourc e-excludes> </configuration> </plugin> <plugin> <artifactId>maven-help-plugin</artifactId> <version>2.0.2</version> </plugin> </plugins> </build> <repositories> <repository> <id>digital-sales-maven2</id> <name>Digital Sales Technology Maven 2 Repository</name> <url>http://digital-sales-tech/maven2</url> </repository> <repository> <id>digisales</id> <name>digisales</name> <url>http://fx-trading.fm.rbsgrp.net/maven2/</url> </repository> <repository> <id>java.net</id> <url>http://download.java.net/maven/2</url> </repository> <repository> <id>java.net legacy</id> <url>http://download.java.net/maven/1</url> <layout>legacy</layout> </repository> <repository> <snapshots> <enabled>false</enabled> </snapshots> <id>central</id> <name>Maven Repository Switchboard</name> <url>http://repo1.maven.org/maven2</url> </repository> </repositories> <pluginRepositories> <pluginRepository> <releases> <updatePolicy>never</updatePolicy> </releases> <snapshots> <enabled>false</enabled> </snapshots> <id>central</id> <name>Maven Plugin Repository</name> <url>http://repo1.maven.org/maven2</url> </pluginRepository> </pluginRepositories> <dependencies> <dependency> <groupId>org.slf4j</groupId> <artifactId>slf4j-simple</artifactId> <version>1.4.3</version> <scope>test</scope> </dependency> <dependency> <groupId>com.rbsfm.netpositioner</groupId> <artifactId>position-updator</artifactId> <version>4.0-SNAPSHOT</version> </dependency> <dependency> <groupId>org.slf4j</groupId> <artifactId>jcl104-over-slf4j</artifactId> <version>1.4.3</version> </dependency> <dependency> <groupId>org.slf4j</groupId> <artifactId>slf4j-api</artifactId> <version>1.4.3</version> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-test</artifactId> <version>2.5.1</version> <scope>test</scope> <exclusions> <exclusion> <artifactId>commons-logging</artifactId> <groupId>commons-logging</groupId> </exclusion> </exclusions> </dependency> <dependency> <groupId>javax.annotation</groupId> <artifactId>jsr250-api</artifactId> <version>1.0</version> </dependency> <dependency> <groupId>com.rbsfm.netpositioner</groupId> <artifactId>position-persistor</artifactId> <version>4.0-SNAPSHOT</version> </dependency> <dependency> <groupId>backport-util-concurrent</groupId> <artifactId>backport-util-concurrent</artifactId> <version>3.0</version> </dependency> </dependencies> <reporting> <outputDirectory>target/site</outputDirectory> </reporting> <dependencyManagement> <dependencies> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-core</artifactId> <version>2.5.1</version> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-context</artifactId> <version>2.5.1</version> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-context-support</artifactId> <version>2.5.1</version> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-jdbc</artifactId> <version>2.5.1</version> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-aop</artifactId> <version>2.5.1</version> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-test</artifactId> <version>2.5.1</version> </dependency> <dependency> <groupId>xerces</groupId> <artifactId>xerces</artifactId> <version>1.2.3</version> </dependency> </dependencies> </dependencyManagement> <distributionManagement> <repository> <id>digital-sales-repository</id> <name>Digital Sales Technology Maven 2 Repository</name> <url>scp://[EMAIL PROTECTED]/opt/digisales/apache/htdocs/m aven2/</url> </repository> <snapshotRepository> <id>digital-sales-repository</id> <name>Digital Sales Technology Maven 2 Snapshot Repository</name> <url>scp://[EMAIL PROTECTED]/opt/digisales/apache/htdocs/m aven2/</url> </snapshotRepository> </distributionManagement> </project> ******************************************************************************** **** [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESSFUL [INFO] ------------------------------------------------------------------------ [INFO] Total time: 6 seconds [INFO] Finished at: Fri Jun 13 10:48:03 IST 2008 [INFO] Final Memory: 2M/5M [INFO] ------------------------------------------------------------------------ Regards, Mukta Jindal -----Original Message----- From: Tim Kettler [mailto:[EMAIL PROTECTED] Sent: 13 June 2008 10:42 To: Maven Users List Subject: Re: Embedded error: Unknown artefact type[test-jar] Hi, please show us the output of 'mvn help:effective-pom' for the ear subproject in question. -Tim JINDAL, Mukta, IDC schrieb: > Please help.. I didn't get any clues till now... > > My application structure is as follows: > > main-project > | > |---project1 > | | > | |---pom.xml > | > |---project2 > | | > | |---pom.xml > | > |---ear > | | > | |---pom.xml > | > |---pom.xml > > > I'm getting this error while doing even "mvn clean" on main-project since I > have added the sub-project "ear". > > > Regards, > Mukta Jindal > > -----Original Message----- > From: JINDAL, Mukta, IDC > Sent: 12 June 2008 16:41 > To: 'Maven Users List' > Subject: Embedded error: Unknown artefact type[test-jar] > > Hi All, > > I'm getting following error while trying to do "mvn clean package" to get an > ear : > > [INFO] [ear:generate-application-xml] > [INFO] > ---------------------------------------------------------------------- > -- > [ERROR] BUILD ERROR > [INFO] > ---------------------------------------------------------------------- > -- [INFO] Failed to initialize ear modules > > Embedded error: Unknown artifact type[test-jar] [INFO] > ---------------------------------------------------------------------- > -- [INFO] For more information, run Maven with the -e switch [INFO] > ---------------------------------------------------------------------- > -- > [INFO] Total time: 17 seconds > [INFO] Finished at: Thu Jun 12 16:27:49 IST 2008 [INFO] Final Memory: > 15M/27M [INFO] > ---------------------------------------------------------------------- > -- > > > I'm not using "test-jar" in any of the POMs. Please help.. > > > Regards, > Mukta Jindal > RBS India Development Centre (P) Ltd > DLF Cyber Greens, Phase III > Sector 25-A, Gurgaon - 122002 > O +91 124 672 4170 | M +91 999 908 0608 > > P Please don't print this e-mail unless you really need to. > > > ********************************************************************** > ************* The Royal Bank of Scotland plc. Registered in Scotland > No 90312. Registered Office: 36 St Andrew Square, Edinburgh EH2 2YB. > Authorised and regulated by the Financial Services Authority > > This e-mail message is confidential and for use by the addressee only. If the > message is received by anyone other than the addressee, please return the > message to the sender by replying to it and then delete the message from your > computer. Internet e-mails are not necessarily secure. The Royal Bank of > Scotland plc does not accept responsibility for changes made to this message > after it was sent. > > Whilst all reasonable care has been taken to avoid the transmission of > viruses, it is the responsibility of the recipient to ensure that the onward > transmission, opening or use of this message and any attachments will not > adversely affect its systems or data. No responsibility is accepted by The > Royal Bank of Scotland plc in this regard and the recipient should carry out > such virus and other checks as it considers appropriate. > Visit our websites at: > www.rbs.com > www.rbs.com/gbm > www.rbsgc.com > ********************************************************************** > ************* > > ______________________________________________________________________ > This email has been scanned by the MessageLabs Email Security System. > For more information please visit http://www.messagelabs.com/email > ______________________________________________________________________ > > ______________________________________________________________________ > This email has been scanned by the MessageLabs Email Security System. > For more information please visit http://www.messagelabs.com/email > ______________________________________________________________________ > > --------------------------------------------------------------------- > 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] ______________________________________________________________________ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email ______________________________________________________________________ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ______________________________________________________________________ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email ______________________________________________________________________ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
