Re: test-jar - unknown artefact type
I got the same probleme! Is the test-jar type actually supported ? -tony Ken Helmes wrote: Hello, Has anyone run into this error when trying to use the test-jar type: Embedded error: Unknown artefact type[test-jar] - Maven 2.0.4 - The actual test-jar is created correctly and can be found from the repository. It is when being used that the error comes: dependency groupIdconfig/groupId artifactIdconfig_logic/artifactId version1.28-SNAPSHOT/version typetest-jar/type /dependency Ken Helmes -- View this message in context: http://www.nabble.com/test-jar---unknown-artefact-type-tf2355431s177.html#a7219483 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: VS: Re: test-jar - unknown artefact type
I agree. We also need this. Does the Maven people plan to include this feature sometimes ? -tony Ken Helmes wrote: Thanks. I can't see any good reason for this though. It seems that this would be a pretty common use case - including test jars inside an ear. Ken -Alkuperäinen viesti- Lähettäjä: Tom Huybrechts [mailto:[EMAIL PROTECTED] Lähetetty: 29. syyskuuta 2006 16:16 Vastaanottaja: Maven Users List Aihe: Re: Re: test-jar - unknown artefact type The maven-ear-plugin only handles a limited number of artifact types, and test-jar is not one of them. See https://svn.apache.org/repos/asf/maven/plugins/trunk/maven-ear-plugin/src/ma in/java/org/apache/maven/plugin/ear/EarModuleFactory.java Tom On 9/29/06, Ken Helmes [EMAIL PROTECTED] wrote: Tom, (This comes as a new post since I was unsubscribed. I am subscribed again.) I am working almost exactly from the directions given here: http://maven.apache.org/guides/mini/guide-attached-tests.html module1 - t2_config (ear level) - multilevel build creates a t2_config_logic-1.28-SNAPSHOT-tests.jar including its unit tests. The jar level pom includes this and works. artifactIdmaven-jar-plugin/artifactId executions execution goals goaltest-jar/goal /goals /execution /executions module2 - t2_test (ear level) - multilevel build wants to include t2_config test-jar in its ear. The ear packaging pom tries to include this: dependency groupIdt2.1_0_0.t2_config/groupId artifactIdt2_config_logic/artifactId version1.28-SNAPSHOT/version typetest-jar/type /dependency Putting scopetest/test results in a successful ear build, but the t2_config-logic.-tests.jar is not included in the module2 ear. Regards, Ken Can you give us some more context for the error ? Try giving your test-jar dependency a scopetest/scope Tom On 9/29/06, Ken Helmes [EMAIL PROTECTED] wrote: Hello, Has anyone run into this error when trying to use the test-jar type: Embedded error: Unknown artefact type[test-jar] - Maven 2.0.4 - The actual test-jar is created correctly and can be found from the repository. It is when being used that the error comes: dependency groupIdconfig/groupId artifactIdconfig_logic/artifactId version1.28-SNAPSHOT/version typetest-jar/type /dependency Ken Helmes - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Re%3ARe%3A-test-jar---unknown-artefact-type-tf2356074s177.html#a7219560 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
VS: Re: test-jar - unknown artefact type
Thanks. I can't see any good reason for this though. It seems that this would be a pretty common use case - including test jars inside an ear. Ken -Alkuperäinen viesti- Lähettäjä: Tom Huybrechts [mailto:[EMAIL PROTECTED] Lähetetty: 29. syyskuuta 2006 16:16 Vastaanottaja: Maven Users List Aihe: Re: Re: test-jar - unknown artefact type The maven-ear-plugin only handles a limited number of artifact types, and test-jar is not one of them. See https://svn.apache.org/repos/asf/maven/plugins/trunk/maven-ear-plugin/src/ma in/java/org/apache/maven/plugin/ear/EarModuleFactory.java Tom On 9/29/06, Ken Helmes [EMAIL PROTECTED] wrote: Tom, (This comes as a new post since I was unsubscribed. I am subscribed again.) I am working almost exactly from the directions given here: http://maven.apache.org/guides/mini/guide-attached-tests.html module1 - t2_config (ear level) - multilevel build creates a t2_config_logic-1.28-SNAPSHOT-tests.jar including its unit tests. The jar level pom includes this and works. artifactIdmaven-jar-plugin/artifactId executions execution goals goaltest-jar/goal /goals /execution /executions module2 - t2_test (ear level) - multilevel build wants to include t2_config test-jar in its ear. The ear packaging pom tries to include this: dependency groupIdt2.1_0_0.t2_config/groupId artifactIdt2_config_logic/artifactId version1.28-SNAPSHOT/version typetest-jar/type /dependency Putting scopetest/test results in a successful ear build, but the t2_config-logic.-tests.jar is not included in the module2 ear. Regards, Ken Can you give us some more context for the error ? Try giving your test-jar dependency a scopetest/scope Tom On 9/29/06, Ken Helmes [EMAIL PROTECTED] wrote: Hello, Has anyone run into this error when trying to use the test-jar type: Embedded error: Unknown artefact type[test-jar] - Maven 2.0.4 - The actual test-jar is created correctly and can be found from the repository. It is when being used that the error comes: dependency groupIdconfig/groupId artifactIdconfig_logic/artifactId version1.28-SNAPSHOT/version typetest-jar/type /dependency Ken Helmes - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
test-jar - unknown artefact type
Hello, Has anyone run into this error when trying to use the test-jar type: Embedded error: Unknown artefact type[test-jar] - Maven 2.0.4 - The actual test-jar is created correctly and can be found from the repository. It is when being used that the error comes: dependency groupIdconfig/groupId artifactIdconfig_logic/artifactId version1.28-SNAPSHOT/version typetest-jar/type /dependency Ken Helmes
Re: test-jar - unknown artefact type
Can you give us some more context for the error ? Try giving your test-jar dependency a scopetest/scope Tom On 9/29/06, Ken Helmes [EMAIL PROTECTED] wrote: Hello, Has anyone run into this error when trying to use the test-jar type: Embedded error: Unknown artefact type[test-jar] - Maven 2.0.4 - The actual test-jar is created correctly and can be found from the repository. It is when being used that the error comes: dependency groupIdconfig/groupId artifactIdconfig_logic/artifactId version1.28-SNAPSHOT/version typetest-jar/type /dependency Ken Helmes
Re:Re: test-jar - unknown artefact type
Tom, (This comes as a new post since I was unsubscribed. I am subscribed again.) I am working almost exactly from the directions given here: http://maven.apache.org/guides/mini/guide-attached-tests.html module1 - t2_config (ear level) - multilevel build creates a t2_config_logic-1.28-SNAPSHOT-tests.jar including its unit tests. The jar level pom includes this and works. artifactIdmaven-jar-plugin/artifactId executions execution goals goaltest-jar/goal /goals /execution /executions module2 - t2_test (ear level) - multilevel build wants to include t2_config test-jar in its ear. The ear packaging pom tries to include this: dependency groupIdt2.1_0_0.t2_config/groupId artifactIdt2_config_logic/artifactId version1.28-SNAPSHOT/version typetest-jar/type /dependency Putting scopetest/test results in a successful ear build, but the t2_config-logic.-tests.jar is not included in the module2 ear. Regards, Ken Can you give us some more context for the error ? Try giving your test-jar dependency a scopetest/scope Tom On 9/29/06, Ken Helmes [EMAIL PROTECTED] wrote: Hello, Has anyone run into this error when trying to use the test-jar type: Embedded error: Unknown artefact type[test-jar] - Maven 2.0.4 - The actual test-jar is created correctly and can be found from the repository. It is when being used that the error comes: dependency groupIdconfig/groupId artifactIdconfig_logic/artifactId version1.28-SNAPSHOT/version typetest-jar/type /dependency Ken Helmes
Re: Re: test-jar - unknown artefact type
The maven-ear-plugin only handles a limited number of artifact types, and test-jar is not one of them. See https://svn.apache.org/repos/asf/maven/plugins/trunk/maven-ear-plugin/src/main/java/org/apache/maven/plugin/ear/EarModuleFactory.java Tom On 9/29/06, Ken Helmes [EMAIL PROTECTED] wrote: Tom, (This comes as a new post since I was unsubscribed. I am subscribed again.) I am working almost exactly from the directions given here: http://maven.apache.org/guides/mini/guide-attached-tests.html module1 - t2_config (ear level) - multilevel build creates a t2_config_logic-1.28-SNAPSHOT-tests.jar including its unit tests. The jar level pom includes this and works. artifactIdmaven-jar-plugin/artifactId executions execution goals goaltest-jar/goal /goals /execution /executions module2 - t2_test (ear level) - multilevel build wants to include t2_config test-jar in its ear. The ear packaging pom tries to include this: dependency groupIdt2.1_0_0.t2_config/groupId artifactIdt2_config_logic/artifactId version1.28-SNAPSHOT/version typetest-jar/type /dependency Putting scopetest/test results in a successful ear build, but the t2_config-logic.-tests.jar is not included in the module2 ear. Regards, Ken Can you give us some more context for the error ? Try giving your test-jar dependency a scopetest/scope Tom On 9/29/06, Ken Helmes [EMAIL PROTECTED] wrote: Hello, Has anyone run into this error when trying to use the test-jar type: Embedded error: Unknown artefact type[test-jar] - Maven 2.0.4 - The actual test-jar is created correctly and can be found from the repository. It is when being used that the error comes: dependency groupIdconfig/groupId artifactIdconfig_logic/artifactId version1.28-SNAPSHOT/version typetest-jar/type /dependency Ken Helmes