You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Clement Denis (JIRA)" <ji...@codehaus.org> on 2009/03/22 21:35:13 UTC

[jira] Created: (MNG-4101) Cannot build an ear submodule with an ejb dependency with a classifier

Cannot build an ear submodule with an ejb dependency with a classifier
----------------------------------------------------------------------

                 Key: MNG-4101
                 URL: http://jira.codehaus.org/browse/MNG-4101
             Project: Maven 2
          Issue Type: Bug
    Affects Versions: 2.1.0
         Environment: Linux 64 bits, Sun JDK 1.6
            Reporter: Clement Denis


I have an ear artifact with a dependant ejb module that has a classifier (i use the shade plugin to generate my ejb artifact).

This is my dependency :
<dependency>
	<groupId>com.test.core</groupId>
	<artifactId>core</artifactId>
	<classifier>shaded</classifier>
	<type>ejb</type>
	<version>1.0.0-SNAPSHOT</version>
	<scope>runtime</scope>
</dependency>

There is my ear plugin configuration :
<plugin>
	<artifactId>maven-ear-plugin</artifactId>
	<configuration>
		<version>5</version>
		<generateApplicationXml>true</generateApplicationXml>
		<displayName>${parent.artifactId}</displayName>
		<defaultLibBundleDir>lib</defaultLibBundleDir>
		<modules>
			<webModule>
				<groupId>com.test.core</groupId>
				<artifactId>webapp</artifactId>
				<contextRoot>/test</contextRoot>
			</webModule>
			<ejbModule>
				<groupId>com.test.core</groupId>
				<artifactId>core</artifactId>
				<classifier>shaded</classifier>
			</ejbModule>
		</modules>
	</configuration>
</plugin>

When i build the ear directly (clean package on the ear module), the build works fine.

But when i build the root module (the ear module is a submodule), i get the following error :
"Artifact[ejb:com.test.core:core:shaded] is not a dependency of the project."

If i remove the classifier, the build from the root module is ok.

This is a regression for 2.1.0 (it worked with 2.0.10 and 2.1.0-M1).


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Closed: (MSHADE-46) Attached artifact has different type than main artifact

Posted by "Benjamin Bentmann (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MSHADE-46?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Benjamin Bentmann closed MSHADE-46.
-----------------------------------

         Assignee: Benjamin Bentmann
       Resolution: Fixed
    Fix Version/s: 1.3

Fixed in [r757350|http://svn.eu.apache.org/viewvc?view=rev&revision=757350], snapshot deployed.

> Attached artifact has different type than main artifact
> -------------------------------------------------------
>
>                 Key: MSHADE-46
>                 URL: http://jira.codehaus.org/browse/MSHADE-46
>             Project: Maven 2.x Shade Plugin
>          Issue Type: Bug
>    Affects Versions: 1.2
>         Environment: Linux 64 bits, Sun JDK 1.6
>            Reporter: Clement Denis
>            Assignee: Benjamin Bentmann
>             Fix For: 1.3
>
>         Attachments: build-2.0.10.log, build-2.1.0.log
>
>
> I have an ear artifact with a dependant ejb module that has a classifier (i use the shade plugin to generate my ejb artifact).
> This is my dependency :
> {code:xml}
> <dependency>
> 	<groupId>com.test.core</groupId>
> 	<artifactId>core</artifactId>
> 	<classifier>shaded</classifier>
> 	<type>ejb</type>
> 	<version>1.0.0-SNAPSHOT</version>
> 	<scope>runtime</scope>
> </dependency>
> {code}
> There is my ear plugin configuration :
> {code:xml}
> <plugin>
> 	<artifactId>maven-ear-plugin</artifactId>
> 	<configuration>
> 		<version>5</version>
> 		<generateApplicationXml>true</generateApplicationXml>
> 		<displayName>${parent.artifactId}</displayName>
> 		<defaultLibBundleDir>lib</defaultLibBundleDir>
> 		<modules>
> 			<webModule>
> 				<groupId>com.test.core</groupId>
> 				<artifactId>webapp</artifactId>
> 				<contextRoot>/test</contextRoot>
> 			</webModule>
> 			<ejbModule>
> 				<groupId>com.test.core</groupId>
> 				<artifactId>core</artifactId>
> 				<classifier>shaded</classifier>
> 			</ejbModule>
> 		</modules>
> 	</configuration>
> </plugin>
> {code}
> When i build the ear directly (clean package on the ear module), the build works fine.
> But when i build the root module (the ear module is a submodule), i get the following error :
> "Artifact[ejb:com.test.core:core:shaded] is not a dependency of the project."
> If i remove the classifier, the build from the root module is ok.
> This is a regression for 2.1.0 (it worked with 2.0.10 and 2.1.0-M1).

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (MNG-4101) Cannot build an ear submodule with an ejb dependency with a classifier

Posted by "Benjamin Bentmann (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-4101?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=170589#action_170589 ] 

Benjamin Bentmann commented on MNG-4101:
----------------------------------------

I think I found it: The Shade Plugin always attaches the shaded artifact as an aritfact of type "jar", regardless whether the original artifact is of type "ejb", "war" or whatever. In previous Maven versions, this type mismatch enforces resolution of the artifact from the repository. Due to MNG-4056, Maven 2.1.0 will now resolve the artifact from the reactor, presenting a "jar" type artifact for the EJB module.

> Cannot build an ear submodule with an ejb dependency with a classifier
> ----------------------------------------------------------------------
>
>                 Key: MNG-4101
>                 URL: http://jira.codehaus.org/browse/MNG-4101
>             Project: Maven 2
>          Issue Type: Bug
>    Affects Versions: 2.1.0
>         Environment: Linux 64 bits, Sun JDK 1.6
>            Reporter: Clement Denis
>
> I have an ear artifact with a dependant ejb module that has a classifier (i use the shade plugin to generate my ejb artifact).
> This is my dependency :
> {code:xml}
> <dependency>
> 	<groupId>com.test.core</groupId>
> 	<artifactId>core</artifactId>
> 	<classifier>shaded</classifier>
> 	<type>ejb</type>
> 	<version>1.0.0-SNAPSHOT</version>
> 	<scope>runtime</scope>
> </dependency>
> {code}
> There is my ear plugin configuration :
> {code:xml}
> <plugin>
> 	<artifactId>maven-ear-plugin</artifactId>
> 	<configuration>
> 		<version>5</version>
> 		<generateApplicationXml>true</generateApplicationXml>
> 		<displayName>${parent.artifactId}</displayName>
> 		<defaultLibBundleDir>lib</defaultLibBundleDir>
> 		<modules>
> 			<webModule>
> 				<groupId>com.test.core</groupId>
> 				<artifactId>webapp</artifactId>
> 				<contextRoot>/test</contextRoot>
> 			</webModule>
> 			<ejbModule>
> 				<groupId>com.test.core</groupId>
> 				<artifactId>core</artifactId>
> 				<classifier>shaded</classifier>
> 			</ejbModule>
> 		</modules>
> 	</configuration>
> </plugin>
> {code}
> When i build the ear directly (clean package on the ear module), the build works fine.
> But when i build the root module (the ear module is a submodule), i get the following error :
> "Artifact[ejb:com.test.core:core:shaded] is not a dependency of the project."
> If i remove the classifier, the build from the root module is ok.
> This is a regression for 2.1.0 (it worked with 2.0.10 and 2.1.0-M1).

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (MNG-4101) Cannot build an ear submodule with an ejb dependency with a classifier

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-4101?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=170614#action_170614 ] 

Brett Porter commented on MNG-4101:
-----------------------------------

Benjamin, would this be considered a bug in the shade plugin then? That's what I understood from your comment.

> Cannot build an ear submodule with an ejb dependency with a classifier
> ----------------------------------------------------------------------
>
>                 Key: MNG-4101
>                 URL: http://jira.codehaus.org/browse/MNG-4101
>             Project: Maven 2
>          Issue Type: Bug
>    Affects Versions: 2.1.0
>         Environment: Linux 64 bits, Sun JDK 1.6
>            Reporter: Clement Denis
>         Attachments: build-2.0.10.log, build-2.1.0.log
>
>
> I have an ear artifact with a dependant ejb module that has a classifier (i use the shade plugin to generate my ejb artifact).
> This is my dependency :
> {code:xml}
> <dependency>
> 	<groupId>com.test.core</groupId>
> 	<artifactId>core</artifactId>
> 	<classifier>shaded</classifier>
> 	<type>ejb</type>
> 	<version>1.0.0-SNAPSHOT</version>
> 	<scope>runtime</scope>
> </dependency>
> {code}
> There is my ear plugin configuration :
> {code:xml}
> <plugin>
> 	<artifactId>maven-ear-plugin</artifactId>
> 	<configuration>
> 		<version>5</version>
> 		<generateApplicationXml>true</generateApplicationXml>
> 		<displayName>${parent.artifactId}</displayName>
> 		<defaultLibBundleDir>lib</defaultLibBundleDir>
> 		<modules>
> 			<webModule>
> 				<groupId>com.test.core</groupId>
> 				<artifactId>webapp</artifactId>
> 				<contextRoot>/test</contextRoot>
> 			</webModule>
> 			<ejbModule>
> 				<groupId>com.test.core</groupId>
> 				<artifactId>core</artifactId>
> 				<classifier>shaded</classifier>
> 			</ejbModule>
> 		</modules>
> 	</configuration>
> </plugin>
> {code}
> When i build the ear directly (clean package on the ear module), the build works fine.
> But when i build the root module (the ear module is a submodule), i get the following error :
> "Artifact[ejb:com.test.core:core:shaded] is not a dependency of the project."
> If i remove the classifier, the build from the root module is ok.
> This is a regression for 2.1.0 (it worked with 2.0.10 and 2.1.0-M1).

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Moved: (MSHADE-46) Cannot build an ear submodule with an ejb dependency with a classifier

Posted by "Benjamin Bentmann (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MSHADE-46?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Benjamin Bentmann moved MNG-4101 to MSHADE-46:
----------------------------------------------

    Affects Version/s:     (was: 2.1.0)
                       1.2
           Complexity:   (was: Intermediate)
                  Key: MSHADE-46  (was: MNG-4101)
              Project: Maven 2.x Shade Plugin  (was: Maven 2)

> Cannot build an ear submodule with an ejb dependency with a classifier
> ----------------------------------------------------------------------
>
>                 Key: MSHADE-46
>                 URL: http://jira.codehaus.org/browse/MSHADE-46
>             Project: Maven 2.x Shade Plugin
>          Issue Type: Bug
>    Affects Versions: 1.2
>         Environment: Linux 64 bits, Sun JDK 1.6
>            Reporter: Clement Denis
>         Attachments: build-2.0.10.log, build-2.1.0.log
>
>
> I have an ear artifact with a dependant ejb module that has a classifier (i use the shade plugin to generate my ejb artifact).
> This is my dependency :
> {code:xml}
> <dependency>
> 	<groupId>com.test.core</groupId>
> 	<artifactId>core</artifactId>
> 	<classifier>shaded</classifier>
> 	<type>ejb</type>
> 	<version>1.0.0-SNAPSHOT</version>
> 	<scope>runtime</scope>
> </dependency>
> {code}
> There is my ear plugin configuration :
> {code:xml}
> <plugin>
> 	<artifactId>maven-ear-plugin</artifactId>
> 	<configuration>
> 		<version>5</version>
> 		<generateApplicationXml>true</generateApplicationXml>
> 		<displayName>${parent.artifactId}</displayName>
> 		<defaultLibBundleDir>lib</defaultLibBundleDir>
> 		<modules>
> 			<webModule>
> 				<groupId>com.test.core</groupId>
> 				<artifactId>webapp</artifactId>
> 				<contextRoot>/test</contextRoot>
> 			</webModule>
> 			<ejbModule>
> 				<groupId>com.test.core</groupId>
> 				<artifactId>core</artifactId>
> 				<classifier>shaded</classifier>
> 			</ejbModule>
> 		</modules>
> 	</configuration>
> </plugin>
> {code}
> When i build the ear directly (clean package on the ear module), the build works fine.
> But when i build the root module (the ear module is a submodule), i get the following error :
> "Artifact[ejb:com.test.core:core:shaded] is not a dependency of the project."
> If i remove the classifier, the build from the root module is ok.
> This is a regression for 2.1.0 (it worked with 2.0.10 and 2.1.0-M1).

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (MNG-4101) Cannot build an ear submodule with an ejb dependency with a classifier

Posted by "Clement Denis (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-4101?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Clement Denis updated MNG-4101:
-------------------------------

    Attachment: build-2.1.0.log
                build-2.0.10.log

Build logs for 2.0.10 (ok) and 2.1.0 (not ok). Lanuched with commond line 'mvn -o -X -e -DskipTests clean install'.

> Cannot build an ear submodule with an ejb dependency with a classifier
> ----------------------------------------------------------------------
>
>                 Key: MNG-4101
>                 URL: http://jira.codehaus.org/browse/MNG-4101
>             Project: Maven 2
>          Issue Type: Bug
>    Affects Versions: 2.1.0
>         Environment: Linux 64 bits, Sun JDK 1.6
>            Reporter: Clement Denis
>         Attachments: build-2.0.10.log, build-2.1.0.log
>
>
> I have an ear artifact with a dependant ejb module that has a classifier (i use the shade plugin to generate my ejb artifact).
> This is my dependency :
> {code:xml}
> <dependency>
> 	<groupId>com.test.core</groupId>
> 	<artifactId>core</artifactId>
> 	<classifier>shaded</classifier>
> 	<type>ejb</type>
> 	<version>1.0.0-SNAPSHOT</version>
> 	<scope>runtime</scope>
> </dependency>
> {code}
> There is my ear plugin configuration :
> {code:xml}
> <plugin>
> 	<artifactId>maven-ear-plugin</artifactId>
> 	<configuration>
> 		<version>5</version>
> 		<generateApplicationXml>true</generateApplicationXml>
> 		<displayName>${parent.artifactId}</displayName>
> 		<defaultLibBundleDir>lib</defaultLibBundleDir>
> 		<modules>
> 			<webModule>
> 				<groupId>com.test.core</groupId>
> 				<artifactId>webapp</artifactId>
> 				<contextRoot>/test</contextRoot>
> 			</webModule>
> 			<ejbModule>
> 				<groupId>com.test.core</groupId>
> 				<artifactId>core</artifactId>
> 				<classifier>shaded</classifier>
> 			</ejbModule>
> 		</modules>
> 	</configuration>
> </plugin>
> {code}
> When i build the ear directly (clean package on the ear module), the build works fine.
> But when i build the root module (the ear module is a submodule), i get the following error :
> "Artifact[ejb:com.test.core:core:shaded] is not a dependency of the project."
> If i remove the classifier, the build from the root module is ok.
> This is a regression for 2.1.0 (it worked with 2.0.10 and 2.1.0-M1).

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (MNG-4101) Cannot build an ear submodule with an ejb dependency with a classifier

Posted by "Benjamin Bentmann (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-4101?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=170580#action_170580 ] 

Benjamin Bentmann commented on MNG-4101:
----------------------------------------

Can you also provide the POM configuration for the Shade Plugin used to produce the EJB artifact? A debug log of the failing would also help to understand this issue.

> Cannot build an ear submodule with an ejb dependency with a classifier
> ----------------------------------------------------------------------
>
>                 Key: MNG-4101
>                 URL: http://jira.codehaus.org/browse/MNG-4101
>             Project: Maven 2
>          Issue Type: Bug
>    Affects Versions: 2.1.0
>         Environment: Linux 64 bits, Sun JDK 1.6
>            Reporter: Clement Denis
>
> I have an ear artifact with a dependant ejb module that has a classifier (i use the shade plugin to generate my ejb artifact).
> This is my dependency :
> {code:xml}
> <dependency>
> 	<groupId>com.test.core</groupId>
> 	<artifactId>core</artifactId>
> 	<classifier>shaded</classifier>
> 	<type>ejb</type>
> 	<version>1.0.0-SNAPSHOT</version>
> 	<scope>runtime</scope>
> </dependency>
> {code}
> There is my ear plugin configuration :
> {code:xml}
> <plugin>
> 	<artifactId>maven-ear-plugin</artifactId>
> 	<configuration>
> 		<version>5</version>
> 		<generateApplicationXml>true</generateApplicationXml>
> 		<displayName>${parent.artifactId}</displayName>
> 		<defaultLibBundleDir>lib</defaultLibBundleDir>
> 		<modules>
> 			<webModule>
> 				<groupId>com.test.core</groupId>
> 				<artifactId>webapp</artifactId>
> 				<contextRoot>/test</contextRoot>
> 			</webModule>
> 			<ejbModule>
> 				<groupId>com.test.core</groupId>
> 				<artifactId>core</artifactId>
> 				<classifier>shaded</classifier>
> 			</ejbModule>
> 		</modules>
> 	</configuration>
> </plugin>
> {code}
> When i build the ear directly (clean package on the ear module), the build works fine.
> But when i build the root module (the ear module is a submodule), i get the following error :
> "Artifact[ejb:com.test.core:core:shaded] is not a dependency of the project."
> If i remove the classifier, the build from the root module is ok.
> This is a regression for 2.1.0 (it worked with 2.0.10 and 2.1.0-M1).

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Issue Comment Edited: (MNG-4101) Cannot build an ear submodule with an ejb dependency with a classifier

Posted by "Clement Denis (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-4101?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=170596#action_170596 ] 

Clement Denis edited comment on MNG-4101 at 3/22/09 6:50 PM:
-------------------------------------------------------------

Build logs for 2.0.10 (ok) and 2.1.0 (not ok). Launched with command line 'mvn -o -X -e -DskipTests clean install'.

      was (Author: clement.denis):
    Build logs for 2.0.10 (ok) and 2.1.0 (not ok). Lanuched with commond line 'mvn -o -X -e -DskipTests clean install'.
  
> Cannot build an ear submodule with an ejb dependency with a classifier
> ----------------------------------------------------------------------
>
>                 Key: MNG-4101
>                 URL: http://jira.codehaus.org/browse/MNG-4101
>             Project: Maven 2
>          Issue Type: Bug
>    Affects Versions: 2.1.0
>         Environment: Linux 64 bits, Sun JDK 1.6
>            Reporter: Clement Denis
>         Attachments: build-2.0.10.log, build-2.1.0.log
>
>
> I have an ear artifact with a dependant ejb module that has a classifier (i use the shade plugin to generate my ejb artifact).
> This is my dependency :
> {code:xml}
> <dependency>
> 	<groupId>com.test.core</groupId>
> 	<artifactId>core</artifactId>
> 	<classifier>shaded</classifier>
> 	<type>ejb</type>
> 	<version>1.0.0-SNAPSHOT</version>
> 	<scope>runtime</scope>
> </dependency>
> {code}
> There is my ear plugin configuration :
> {code:xml}
> <plugin>
> 	<artifactId>maven-ear-plugin</artifactId>
> 	<configuration>
> 		<version>5</version>
> 		<generateApplicationXml>true</generateApplicationXml>
> 		<displayName>${parent.artifactId}</displayName>
> 		<defaultLibBundleDir>lib</defaultLibBundleDir>
> 		<modules>
> 			<webModule>
> 				<groupId>com.test.core</groupId>
> 				<artifactId>webapp</artifactId>
> 				<contextRoot>/test</contextRoot>
> 			</webModule>
> 			<ejbModule>
> 				<groupId>com.test.core</groupId>
> 				<artifactId>core</artifactId>
> 				<classifier>shaded</classifier>
> 			</ejbModule>
> 		</modules>
> 	</configuration>
> </plugin>
> {code}
> When i build the ear directly (clean package on the ear module), the build works fine.
> But when i build the root module (the ear module is a submodule), i get the following error :
> "Artifact[ejb:com.test.core:core:shaded] is not a dependency of the project."
> If i remove the classifier, the build from the root module is ok.
> This is a regression for 2.1.0 (it worked with 2.0.10 and 2.1.0-M1).

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (MSHADE-46) Attached artifact has different type than main artifact

Posted by "Benjamin Bentmann (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MSHADE-46?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Benjamin Bentmann updated MSHADE-46:
------------------------------------

    Summary: Attached artifact has different type than main artifact  (was: Cannot build an ear submodule with an ejb dependency with a classifier)

> Attached artifact has different type than main artifact
> -------------------------------------------------------
>
>                 Key: MSHADE-46
>                 URL: http://jira.codehaus.org/browse/MSHADE-46
>             Project: Maven 2.x Shade Plugin
>          Issue Type: Bug
>    Affects Versions: 1.2
>         Environment: Linux 64 bits, Sun JDK 1.6
>            Reporter: Clement Denis
>         Attachments: build-2.0.10.log, build-2.1.0.log
>
>
> I have an ear artifact with a dependant ejb module that has a classifier (i use the shade plugin to generate my ejb artifact).
> This is my dependency :
> {code:xml}
> <dependency>
> 	<groupId>com.test.core</groupId>
> 	<artifactId>core</artifactId>
> 	<classifier>shaded</classifier>
> 	<type>ejb</type>
> 	<version>1.0.0-SNAPSHOT</version>
> 	<scope>runtime</scope>
> </dependency>
> {code}
> There is my ear plugin configuration :
> {code:xml}
> <plugin>
> 	<artifactId>maven-ear-plugin</artifactId>
> 	<configuration>
> 		<version>5</version>
> 		<generateApplicationXml>true</generateApplicationXml>
> 		<displayName>${parent.artifactId}</displayName>
> 		<defaultLibBundleDir>lib</defaultLibBundleDir>
> 		<modules>
> 			<webModule>
> 				<groupId>com.test.core</groupId>
> 				<artifactId>webapp</artifactId>
> 				<contextRoot>/test</contextRoot>
> 			</webModule>
> 			<ejbModule>
> 				<groupId>com.test.core</groupId>
> 				<artifactId>core</artifactId>
> 				<classifier>shaded</classifier>
> 			</ejbModule>
> 		</modules>
> 	</configuration>
> </plugin>
> {code}
> When i build the ear directly (clean package on the ear module), the build works fine.
> But when i build the root module (the ear module is a submodule), i get the following error :
> "Artifact[ejb:com.test.core:core:shaded] is not a dependency of the project."
> If i remove the classifier, the build from the root module is ok.
> This is a regression for 2.1.0 (it worked with 2.0.10 and 2.1.0-M1).

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (MNG-4101) Cannot build an ear submodule with an ejb dependency with a classifier

Posted by "Clement Denis (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-4101?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=170597#action_170597 ] 

Clement Denis commented on MNG-4101:
------------------------------------

You're probably right Benjamin, but why is this working when I build the artifact directly (not as a submodule of a parent artifact) ?

In that case, the debug log shows that the artifact type is correctly resolved as ejb.

By the way, is there a workaround, or should I wait for 2.1.1 ?



> Cannot build an ear submodule with an ejb dependency with a classifier
> ----------------------------------------------------------------------
>
>                 Key: MNG-4101
>                 URL: http://jira.codehaus.org/browse/MNG-4101
>             Project: Maven 2
>          Issue Type: Bug
>    Affects Versions: 2.1.0
>         Environment: Linux 64 bits, Sun JDK 1.6
>            Reporter: Clement Denis
>         Attachments: build-2.0.10.log, build-2.1.0.log
>
>
> I have an ear artifact with a dependant ejb module that has a classifier (i use the shade plugin to generate my ejb artifact).
> This is my dependency :
> {code:xml}
> <dependency>
> 	<groupId>com.test.core</groupId>
> 	<artifactId>core</artifactId>
> 	<classifier>shaded</classifier>
> 	<type>ejb</type>
> 	<version>1.0.0-SNAPSHOT</version>
> 	<scope>runtime</scope>
> </dependency>
> {code}
> There is my ear plugin configuration :
> {code:xml}
> <plugin>
> 	<artifactId>maven-ear-plugin</artifactId>
> 	<configuration>
> 		<version>5</version>
> 		<generateApplicationXml>true</generateApplicationXml>
> 		<displayName>${parent.artifactId}</displayName>
> 		<defaultLibBundleDir>lib</defaultLibBundleDir>
> 		<modules>
> 			<webModule>
> 				<groupId>com.test.core</groupId>
> 				<artifactId>webapp</artifactId>
> 				<contextRoot>/test</contextRoot>
> 			</webModule>
> 			<ejbModule>
> 				<groupId>com.test.core</groupId>
> 				<artifactId>core</artifactId>
> 				<classifier>shaded</classifier>
> 			</ejbModule>
> 		</modules>
> 	</configuration>
> </plugin>
> {code}
> When i build the ear directly (clean package on the ear module), the build works fine.
> But when i build the root module (the ear module is a submodule), i get the following error :
> "Artifact[ejb:com.test.core:core:shaded] is not a dependency of the project."
> If i remove the classifier, the build from the root module is ok.
> This is a regression for 2.1.0 (it worked with 2.0.10 and 2.1.0-M1).

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (MNG-4101) Cannot build an ear submodule with an ejb dependency with a classifier

Posted by "Benjamin Bentmann (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-4101?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Benjamin Bentmann updated MNG-4101:
-----------------------------------

    Description: 
I have an ear artifact with a dependant ejb module that has a classifier (i use the shade plugin to generate my ejb artifact).

This is my dependency :
{code:xml}
<dependency>
	<groupId>com.test.core</groupId>
	<artifactId>core</artifactId>
	<classifier>shaded</classifier>
	<type>ejb</type>
	<version>1.0.0-SNAPSHOT</version>
	<scope>runtime</scope>
</dependency>
{code}
There is my ear plugin configuration :
{code:xml}
<plugin>
	<artifactId>maven-ear-plugin</artifactId>
	<configuration>
		<version>5</version>
		<generateApplicationXml>true</generateApplicationXml>
		<displayName>${parent.artifactId}</displayName>
		<defaultLibBundleDir>lib</defaultLibBundleDir>
		<modules>
			<webModule>
				<groupId>com.test.core</groupId>
				<artifactId>webapp</artifactId>
				<contextRoot>/test</contextRoot>
			</webModule>
			<ejbModule>
				<groupId>com.test.core</groupId>
				<artifactId>core</artifactId>
				<classifier>shaded</classifier>
			</ejbModule>
		</modules>
	</configuration>
</plugin>
{code}
When i build the ear directly (clean package on the ear module), the build works fine.

But when i build the root module (the ear module is a submodule), i get the following error :
"Artifact[ejb:com.test.core:core:shaded] is not a dependency of the project."

If i remove the classifier, the build from the root module is ok.

This is a regression for 2.1.0 (it worked with 2.0.10 and 2.1.0-M1).


  was:
I have an ear artifact with a dependant ejb module that has a classifier (i use the shade plugin to generate my ejb artifact).

This is my dependency :
<dependency>
	<groupId>com.test.core</groupId>
	<artifactId>core</artifactId>
	<classifier>shaded</classifier>
	<type>ejb</type>
	<version>1.0.0-SNAPSHOT</version>
	<scope>runtime</scope>
</dependency>

There is my ear plugin configuration :
<plugin>
	<artifactId>maven-ear-plugin</artifactId>
	<configuration>
		<version>5</version>
		<generateApplicationXml>true</generateApplicationXml>
		<displayName>${parent.artifactId}</displayName>
		<defaultLibBundleDir>lib</defaultLibBundleDir>
		<modules>
			<webModule>
				<groupId>com.test.core</groupId>
				<artifactId>webapp</artifactId>
				<contextRoot>/test</contextRoot>
			</webModule>
			<ejbModule>
				<groupId>com.test.core</groupId>
				<artifactId>core</artifactId>
				<classifier>shaded</classifier>
			</ejbModule>
		</modules>
	</configuration>
</plugin>

When i build the ear directly (clean package on the ear module), the build works fine.

But when i build the root module (the ear module is a submodule), i get the following error :
"Artifact[ejb:com.test.core:core:shaded] is not a dependency of the project."

If i remove the classifier, the build from the root module is ok.

This is a regression for 2.1.0 (it worked with 2.0.10 and 2.1.0-M1).



> Cannot build an ear submodule with an ejb dependency with a classifier
> ----------------------------------------------------------------------
>
>                 Key: MNG-4101
>                 URL: http://jira.codehaus.org/browse/MNG-4101
>             Project: Maven 2
>          Issue Type: Bug
>    Affects Versions: 2.1.0
>         Environment: Linux 64 bits, Sun JDK 1.6
>            Reporter: Clement Denis
>
> I have an ear artifact with a dependant ejb module that has a classifier (i use the shade plugin to generate my ejb artifact).
> This is my dependency :
> {code:xml}
> <dependency>
> 	<groupId>com.test.core</groupId>
> 	<artifactId>core</artifactId>
> 	<classifier>shaded</classifier>
> 	<type>ejb</type>
> 	<version>1.0.0-SNAPSHOT</version>
> 	<scope>runtime</scope>
> </dependency>
> {code}
> There is my ear plugin configuration :
> {code:xml}
> <plugin>
> 	<artifactId>maven-ear-plugin</artifactId>
> 	<configuration>
> 		<version>5</version>
> 		<generateApplicationXml>true</generateApplicationXml>
> 		<displayName>${parent.artifactId}</displayName>
> 		<defaultLibBundleDir>lib</defaultLibBundleDir>
> 		<modules>
> 			<webModule>
> 				<groupId>com.test.core</groupId>
> 				<artifactId>webapp</artifactId>
> 				<contextRoot>/test</contextRoot>
> 			</webModule>
> 			<ejbModule>
> 				<groupId>com.test.core</groupId>
> 				<artifactId>core</artifactId>
> 				<classifier>shaded</classifier>
> 			</ejbModule>
> 		</modules>
> 	</configuration>
> </plugin>
> {code}
> When i build the ear directly (clean package on the ear module), the build works fine.
> But when i build the root module (the ear module is a submodule), i get the following error :
> "Artifact[ejb:com.test.core:core:shaded] is not a dependency of the project."
> If i remove the classifier, the build from the root module is ok.
> This is a regression for 2.1.0 (it worked with 2.0.10 and 2.1.0-M1).

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Issue Comment Edited: (MNG-4101) Cannot build an ear submodule with an ejb dependency with a classifier

Posted by "Clement Denis (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-4101?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=170597#action_170597 ] 

Clement Denis edited comment on MNG-4101 at 3/22/09 7:11 PM:
-------------------------------------------------------------

Okay, so  that's why this is working when I build the artifact directly (type is retreived from repo, not from reactor ...).

By the way, is there a workaround for this problem ? Does it depend on the shade plugin ?



      was (Author: clement.denis):
    You're probably right Benjamin, but why is this working when I build the artifact directly (not as a submodule of a parent artifact) ?

In that case, the debug log shows that the artifact type is correctly resolved as ejb.

By the way, is there a workaround, or should I wait for 2.1.1 ?


  
> Cannot build an ear submodule with an ejb dependency with a classifier
> ----------------------------------------------------------------------
>
>                 Key: MNG-4101
>                 URL: http://jira.codehaus.org/browse/MNG-4101
>             Project: Maven 2
>          Issue Type: Bug
>    Affects Versions: 2.1.0
>         Environment: Linux 64 bits, Sun JDK 1.6
>            Reporter: Clement Denis
>         Attachments: build-2.0.10.log, build-2.1.0.log
>
>
> I have an ear artifact with a dependant ejb module that has a classifier (i use the shade plugin to generate my ejb artifact).
> This is my dependency :
> {code:xml}
> <dependency>
> 	<groupId>com.test.core</groupId>
> 	<artifactId>core</artifactId>
> 	<classifier>shaded</classifier>
> 	<type>ejb</type>
> 	<version>1.0.0-SNAPSHOT</version>
> 	<scope>runtime</scope>
> </dependency>
> {code}
> There is my ear plugin configuration :
> {code:xml}
> <plugin>
> 	<artifactId>maven-ear-plugin</artifactId>
> 	<configuration>
> 		<version>5</version>
> 		<generateApplicationXml>true</generateApplicationXml>
> 		<displayName>${parent.artifactId}</displayName>
> 		<defaultLibBundleDir>lib</defaultLibBundleDir>
> 		<modules>
> 			<webModule>
> 				<groupId>com.test.core</groupId>
> 				<artifactId>webapp</artifactId>
> 				<contextRoot>/test</contextRoot>
> 			</webModule>
> 			<ejbModule>
> 				<groupId>com.test.core</groupId>
> 				<artifactId>core</artifactId>
> 				<classifier>shaded</classifier>
> 			</ejbModule>
> 		</modules>
> 	</configuration>
> </plugin>
> {code}
> When i build the ear directly (clean package on the ear module), the build works fine.
> But when i build the root module (the ear module is a submodule), i get the following error :
> "Artifact[ejb:com.test.core:core:shaded] is not a dependency of the project."
> If i remove the classifier, the build from the root module is ok.
> This is a regression for 2.1.0 (it worked with 2.0.10 and 2.1.0-M1).

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (MNG-4101) Cannot build an ear submodule with an ejb dependency with a classifier

Posted by "Clement Denis (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-4101?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=170595#action_170595 ] 

Clement Denis commented on MNG-4101:
------------------------------------

I have attached the debug logs ('mvn -o -X -e -DskipTests clean install') for both 2.0.10 (build ok) and 2.1.0 (build failing).

Actually the problem is at the line 6392 of build-2.1.0.log (corresponds to line 6354 of build-2.0.10.log) : the artifact type is resolved as jar, but its declared as <type>ejb</type> in the pom.

2.0.10 : [DEBUG]   com.test.core:core:ejb:shaded:1.0.0-SNAPSHOT:runtime (selected for runtime)
2.1.0 : [DEBUG]   com.test.core:core:jar:shaded:1.0.0-SNAPSHOT:runtime (selected for runtime)

This is the configuration for the shade plugin.

{code:xml} 
<plugin>
	<artifactId>maven-shade-plugin</artifactId>
	<executions>
		<execution>
			<phase>package</phase>
			<goals>
				<goal>shade</goal>
			</goals>
			<configuration>
				<shadedArtifactAttached>true</shadedArtifactAttached>
				<artifactSet>
					<includes>
						<include>com.test.core:utils</include>
						<include>com.test.core:entities</include>
						<include>com.test.core:users</include>
						<include>com.test.core:controllers</include>
					</includes>
				</artifactSet>
				<transformers>
					<transformer
						implementation="org.apache.maven.plugins.shade.resource.ComponentsXmlResourceTransformer" />
				</transformers>
			</configuration>
		</execution>
	</executions>
</plugin>
{code}

> Cannot build an ear submodule with an ejb dependency with a classifier
> ----------------------------------------------------------------------
>
>                 Key: MNG-4101
>                 URL: http://jira.codehaus.org/browse/MNG-4101
>             Project: Maven 2
>          Issue Type: Bug
>    Affects Versions: 2.1.0
>         Environment: Linux 64 bits, Sun JDK 1.6
>            Reporter: Clement Denis
>
> I have an ear artifact with a dependant ejb module that has a classifier (i use the shade plugin to generate my ejb artifact).
> This is my dependency :
> {code:xml}
> <dependency>
> 	<groupId>com.test.core</groupId>
> 	<artifactId>core</artifactId>
> 	<classifier>shaded</classifier>
> 	<type>ejb</type>
> 	<version>1.0.0-SNAPSHOT</version>
> 	<scope>runtime</scope>
> </dependency>
> {code}
> There is my ear plugin configuration :
> {code:xml}
> <plugin>
> 	<artifactId>maven-ear-plugin</artifactId>
> 	<configuration>
> 		<version>5</version>
> 		<generateApplicationXml>true</generateApplicationXml>
> 		<displayName>${parent.artifactId}</displayName>
> 		<defaultLibBundleDir>lib</defaultLibBundleDir>
> 		<modules>
> 			<webModule>
> 				<groupId>com.test.core</groupId>
> 				<artifactId>webapp</artifactId>
> 				<contextRoot>/test</contextRoot>
> 			</webModule>
> 			<ejbModule>
> 				<groupId>com.test.core</groupId>
> 				<artifactId>core</artifactId>
> 				<classifier>shaded</classifier>
> 			</ejbModule>
> 		</modules>
> 	</configuration>
> </plugin>
> {code}
> When i build the ear directly (clean package on the ear module), the build works fine.
> But when i build the root module (the ear module is a submodule), i get the following error :
> "Artifact[ejb:com.test.core:core:shaded] is not a dependency of the project."
> If i remove the classifier, the build from the root module is ok.
> This is a regression for 2.1.0 (it worked with 2.0.10 and 2.1.0-M1).

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira