Hi, I have four tests just now. [1]I added following artifact to dependency <dependency> <groupId>asm</groupId> <artifactId>asm</artifactId> <version>1.5.3</version> </dependency> then run "mvn package", asm-1.5.3.jar was in WEB-INF/lib
[2]I added following scripts to pom.xml <dependency> <groupId>javax.transaction</groupId> <artifactId>jta</artifactId> <version>15</version> </dependency> obviously, there isn't jta-15.jar in real world. Then run "mvn package", build was sucessful too, none of error is thrown!!! [3]I just use following <dependency> <groupId>javax.transaction</groupId> <artifactId>jta</artifactId> <version>1.0.1B</version> </dependency> run "mvn eclipse:eclipse", jta-1.0.1B.jar was in .classpath. It means that Maven can find the artifact. [4]I just use following <dependency> <groupId>javax.transaction</groupId> <artifactId>jta</artifactId> <version>15</version> </dependency> run "mvn eclipse:eclipse", Maven tried to download jta-15.pom, off course found nothing. It means that Maven knows jta-15 isn't existent. The four test above are very strange! How to explain the matter? a cup of Java, cheers! Sha Jiang jiangshachina wrote: > > Hi, > I'm sorry that I didin't represent myself clearly. > I have installed jta by manual, and jta-1.0.1B.jar is in my local > repository now. > If the jar file isn't existent, my build would be failed. > > a cup of Java, cheers! > Sha Jiang > > > Bengt-Erik Fröberg-2 wrote: >> >> Hi >> >> Check out this, it should be the reason jta isn't added.... you have to >> install it manually! >> >> http://maven.apache.org/guides/mini/guide-coping-with-sun-jars.html >> >> Greetings, >> >> >> 2006/11/21, jiangshachina <[EMAIL PROTECTED]>: >>> >>> >>> Hi guys, >>> I have a Web application project. >>> I added javax.transaction:jta:jta-1.0.1B.jar to dependency, >>> but in fact my project doesn't need the jar. >>> Namely, I don't need it on compile-time, test-time or runtime. >>> >>> I run "mvn package", and the build was sucessful. >>> I checked WEB-INF/lib directory, but don't find jta-1.0.1B.jar. >>> >>> I always think that Maven would add any jar file in dependencies. >>> But the case means that I'm wrong. >>> I don't believe one case, please show me clearly. >>> Maven can identify any useless jar and doesn't add it to war file? >>> >>> a cup of Java, cheers! >>> Sha Jiang >>> -- >>> View this message in context: >>> http://www.nabble.com/Don%27t-add-dependency--tf2677027s177.html#a7466108 >>> Sent from the Maven - Users mailing list archive at Nabble.com. >>> >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: [EMAIL PROTECTED] >>> For additional commands, e-mail: [EMAIL PROTECTED] >>> >>> >> >> >> -- >> ======================= >> "Utan tvivel är man inte riktigt klok." (Tage Danielsson) >> >> > > -- View this message in context: http://www.nabble.com/Don%27t-add-dependency--tf2677027s177.html#a7467925 Sent from the Maven - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]