Wait - even if I'm simply doing a compile?  Why should it start trying
to build an ear?

I tried a "mvn compile" that results in all kinds of failures cause it
tries to build up an ear (and there's no war/ejbs to include).

The ear file building is linked to the compile lifecycle phase?

 

-----Original Message-----
From: Greg Jones [mailto:[EMAIL PROTECTED] 
Sent: Monday, February 05, 2007 4:40 PM
To: 'Maven Users List'
Subject: RE: compile tries to bundle up the ear - should it?

The modules need to be downloaded since they are dependencies at compile
time (the default), even in an EAR package. Modules will never be picked
up
from their target directories (part of the design of Maven). You need to
run
'mvn install' on the other modules to ensure they are in your local
repository at least before running a build in the EAR module.

Hope this helps.

-----Original Message-----
From: EJ Ciramella [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, 6 February 2007 8:19 AM
To: Maven Users List
Subject: RE: compile tries to bundle up the ear - should it?

Still haven't seen any response - this has us wedged, can anyone shed
any
light on this for me? 

-----Original Message-----
From: EJ Ciramella [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 31, 2007 6:23 PM
To: Maven Users List
Subject: compile tries to bundle up the ear - should it?

I'm running just compile but one module that has an ear artifact is
trying
to bundle up the ear file (which subsequently fails because the war and
ejbs
don't exist).  
 
Is this supposed to happen or is this something I've misconfigured:

[INFO]
------------------------------------------------------------------------
----

[INFO] Building ltyApp_ear

[INFO]    task-segment: [compile]

[INFO]
------------------------------------------------------------------------
----

Downloading:
file:\\build.corp.upromise.com/maven2/lty/upErrorEJB/1.0-SNAPSHOT/upErro
rEJB-1.0-SNAPSHOT.jar

[WARNING] Unable to get resource from repository central
(file:\\build.corp.upromise.com/maven2)

Downloading:
file:\\build.corp.upromise.com/maven2/lty/salesscriptEJB/1.0-SNAPSHOT/sa
lesscriptEJB-1.0-SNAPSHOT.jar

[WARNING] Unable to get resource from repository central
(file:\\build.corp.upromise.com/maven2)

Downloading:
file:\\build.corp.upromise.com/maven2/lty/transferEJB/1.0-SNAPSHOT/trans
ferEJB-1.0-SNAPSHOT.jar

[WARNING] Unable to get resource from repository central
(file:\\build.corp.upromise.com/maven2)

Downloading:
file:\\build.corp.upromise.com/maven2/lty/transactionEJB/1.0-SNAPSHOT/tr
ansactionEJB-1.0-SNAPSHOT.jar

[WARNING] Unable to get resource from repository central
(file:\\build.corp.upromise.com/maven2)

Downloading:
file:\\build.corp.upromise.com/maven2/lty/CSREJB/1.0-SNAPSHOT/CSREJB-1.0
-SNAPSHOT.jar

[WARNING] Unable to get resource from repository central
(file:\\build.corp.upromise.com/maven2)

Downloading:
file:\\build.corp.upromise.com/maven2/lty/upAdminEJB/1.0-SNAPSHOT/upAdmi
nEJB-1.0-SNAPSHOT.jar

[WARNING] Unable to get resource from repository central
(file:\\build.corp.upromise.com/maven2)

Downloading:
file:\\build.corp.upromise.com/maven2/lty/inboundenrollmentEJB/1.0-SNAPS
HOT/inboundenrollmentEJB-1.0-SNAPSHOT.jar

[WARNING] Unable to get resource from repository central
(file:\\build.corp.upromise.com/maven2)

Downloading:
file:\\build.corp.upromise.com/maven2/lty/authserverEJB/1.0-SNAPSHOT/aut
hserverEJB-1.0-SNAPSHOT.jar

[WARNING] Unable to get resource from repository central
(file:\\build.corp.upromise.com/maven2)

Downloading:
file:\\build.corp.upromise.com/maven2/lty/communityEJB/1.0-SNAPSHOT/comm
unityEJB-1.0-SNAPSHOT.jar

[WARNING] Unable to get resource from repository central
(file:\\build.corp.upromise.com/maven2)

Downloading:
file:\\build.corp.upromise.com/maven2/lty/accountGuestEJB/1.0-SNAPSHOT/a
ccountGuestEJB-1.0-SNAPSHOT.jar

[WARNING] Unable to get resource from repository central
(file:\\build.corp.upromise.com/maven2)

Downloading:
file:\\build.corp.upromise.com/maven2/lty/testcellEJB/1.0-SNAPSHOT/testc
ellEJB-1.0-SNAPSHOT.jar

[WARNING] Unable to get resource from repository central
(file:\\build.corp.upromise.com/maven2)

Downloading:
file:\\build.corp.upromise.com/maven2/lty/enrollmentEJB/1.0-SNAPSHOT/enr
ollmentEJB-1.0-SNAPSHOT.jar

[WARNING] Unable to get resource from repository central
(file:\\build.corp.upromise.com/maven2)

Downloading:
file:\\build.corp.upromise.com/maven2/lty/partnerEJB/1.0-SNAPSHOT/partne
rEJB-1.0-SNAPSHOT.jar

[WARNING] Unable to get resource from repository central
(file:\\build.corp.upromise.com/maven2)

Downloading:
file:\\build.corp.upromise.com/maven2/lty/groceryEJB/1.0-SNAPSHOT/grocer
yEJB-1.0-SNAPSHOT.jar

[WARNING] Unable to get resource from repository central
(file:\\build.corp.upromise.com/maven2)

Downloading:
file:\\build.corp.upromise.com/maven2/lty/messageEJB/1.0-SNAPSHOT/messag
eEJB-1.0-SNAPSHOT.jar

[WARNING] Unable to get resource from repository central
(file:\\build.corp.upromise.com/maven2)

Downloading:
file:\\build.corp.upromise.com/maven2/lty/memberProfileEJB/1.0-SNAPSHOT/
memberProfileEJB-1.0-SNAPSHOT.jar

[WARNING] Unable to get resource from repository central
(file:\\build.corp.upromise.com/maven2)

Downloading:
file:\\build.corp.upromise.com/maven2/lty/ltyWebApp/1.0-SNAPSHOT/ltyWebA
pp-1.0-SNAPSHOT.war

[WARNING] Unable to get resource from repository central
(file:\\build.corp.upromise.com/maven2)

Downloading:
file:\\build.corp.upromise.com/maven2/lty/withdrawalEJB/1.0-SNAPSHOT/wit
hdrawalEJB-1.0-SNAPSHOT.jar

[WARNING] Unable to get resource from repository central
(file:\\build.corp.upromise.com/maven2)

[INFO]
------------------------------------------------------------------------

[ERROR] BUILD ERROR

[INFO]
------------------------------------------------------------------------

[INFO] Failed to resolve artifact.

 

 

 

 

<project xmlns="http://maven.apache.org/POM/4.0.0";

            xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";

            xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd";>

            <modelVersion>4.0.0</modelVersion>

            <parent>

                        <groupId>lty</groupId>

                        <artifactId>ltyApp</artifactId>

                        <version>1.0-SNAPSHOT</version>

            </parent>

            <artifactId>EAR</artifactId>

            <packaging>ear</packaging>

            <name>ltyApp_ear</name>

            <url>http://www.upromise.com</url>

            <version>1.0-SNAPSHOT</version>

            <dependencies>

 

                        <dependency>

                                    <groupId>lty</groupId>

                                    <artifactId>oldSource</artifactId>

                                    <version>1.0-SNAPSHOT</version>

                                    <type>jar</type>

 

                        </dependency>

                        <dependency>

                                    <groupId>lty</groupId>

 
<artifactId>accountGuestEJB</artifactId>

                                    <version>1.0-SNAPSHOT</version>

                                    <type>ejb</type>

                        </dependency>

                        <dependency>

                                    <groupId>lty</groupId>

 
<artifactId>authserverEJB</artifactId>

                                    <version>1.0-SNAPSHOT</version>

                                    <type>ejb</type>

                        </dependency>

                        <dependency>

                                    <groupId>lty</groupId>

 
<artifactId>communityEJB</artifactId>

                                    <version>1.0-SNAPSHOT</version>

                                    <type>ejb</type>

                        </dependency>

                        <dependency>

                                    <groupId>lty</groupId>

                                    <artifactId>CSREJB</artifactId>

                                    <version>1.0-SNAPSHOT</version>

                                    <type>ejb</type>

                        </dependency>

                        <dependency>

                                    <groupId>lty</groupId>

 
<artifactId>enrollmentEJB</artifactId>

                                    <version>1.0-SNAPSHOT</version>

                                    <type>ejb</type>

                        </dependency>

                        <dependency>

                                    <groupId>lty</groupId>

                                    <artifactId>groceryEJB</artifactId>

                                    <version>1.0-SNAPSHOT</version>

                                    <type>ejb</type>

                        </dependency>

                        <dependency>

                                    <groupId>lty</groupId>

 
<artifactId>inboundenrollmentEJB</artifactId>

                                    <version>1.0-SNAPSHOT</version>

                                    <type>ejb</type>

                        </dependency>

                        <dependency>

                                    <groupId>lty</groupId>

 
<artifactId>memberProfileEJB</artifactId>

                                    <version>1.0-SNAPSHOT</version>

                                    <type>ejb</type>

                        </dependency>

                        <dependency>

                                    <groupId>lty</groupId>

                                    <artifactId>messageEJB</artifactId>

                                    <version>1.0-SNAPSHOT</version>

                                    <type>ejb</type>

                        </dependency>

                        <dependency>

                                    <groupId>lty</groupId>

                                    <artifactId>partnerEJB</artifactId>

                                    <version>1.0-SNAPSHOT</version>

                                    <type>ejb</type>

                        </dependency>

                        <dependency>

                                    <groupId>lty</groupId>

 
<artifactId>salesscriptEJB</artifactId>

                                    <version>1.0-SNAPSHOT</version>

                                    <type>ejb</type>

                        </dependency>

                        <dependency>

                                    <groupId>lty</groupId>

                                    <artifactId>testcellEJB</artifactId>

                                    <version>1.0-SNAPSHOT</version>

                                    <type>ejb</type>

                        </dependency>

                        <dependency>

                                    <groupId>lty</groupId>

 
<artifactId>transactionEJB</artifactId>

                                    <version>1.0-SNAPSHOT</version>

                                    <type>ejb</type>

                        </dependency>

                        <dependency>

                                    <groupId>lty</groupId>

                                    <artifactId>transferEJB</artifactId>

                                    <version>1.0-SNAPSHOT</version>

                                    <type>ejb</type>

                        </dependency>

                        <dependency>

                                    <groupId>lty</groupId>

                                    <artifactId>upAdminEJB</artifactId>

                                    <version>1.0-SNAPSHOT</version>

                                    <type>ejb</type>

                        </dependency>

                        <dependency>

                                    <groupId>lty</groupId>

                                    <artifactId>upErrorEJB</artifactId>

                                    <version>1.0-SNAPSHOT</version>

                                    <type>ejb</type>

                        </dependency>

                        <dependency>

                                    <groupId>lty</groupId>

 
<artifactId>withdrawalEJB</artifactId>

                                    <version>1.0-SNAPSHOT</version>

                                    <type>ejb</type>

                        </dependency>

                        <dependency>

                                    <groupId>lty</groupId>

                                    <artifactId>ltyWebApp</artifactId>

                                    <version>1.0-SNAPSHOT</version>

                                    <type>war</type>

                                    <!--scope>system</scope>

                                    <systemPath>

 
${work.dir}/frontoffice/ltyApp/ltyWebApp/target

                                    </systemPath-->

                        </dependency>

            </dependencies>

            <build>

 

                        <finalName>UPIntermediate.ear</finalName>

                        <resources>

                                    <resource>

 
<directory>../ltyWebApp/target/uprweb.war</directory>

                                                <targetPath>

                                                /uprweb.war

                                                </targetPath>

                                    </resource>

                        </resources>

                        <plugins>

 

                                    <plugin>

 

 
<groupId>org.apache.maven.plugins</groupId>

 
<artifactId>maven-ear-plugin</artifactId>

 

                                                <dependencies>

 

                                                            <dependency>

 

 
<groupId>org.apache.maven</groupId>

 
<artifactId>maven-project</artifactId>

 
<version>2.0</version>

 
</dependency>

 
<!--dependency>

 
<groupId>org.apache.maven</groupId>

 
<artifactId>maven-archiver</artifactId>

 
<version>2.2</version>

 
</dependency-->

                                                            <dependency>

 
<groupId>org.apache.maven</groupId>

 
<artifactId>maven-plugin-api</artifactId>

 
<version>2.0</version>

 
</dependency>

                                                            <dependency>

 
<groupId>org.codehaus.plexus</groupId>

 
<artifactId>plexus-utils</artifactId>

 
<version>1.0.4</version>

 
</dependency>

                                                </dependencies>

                                                <configuration>

 
<displayName>ltyApp_UPIntermediate_EAR</displayName>

 
<description>This is Upromsie EAR file</description>

 
<version>1.0-SNAPSHOT</version>

                                                            <modules>

 
<ejbModule>

 
<groupId>lty</groupId>

 
<artifactId>accountGuestEJB</artifactId>

 
</ejbModule>

 
<ejbModule>

 
<groupId>lty</groupId>

 
<artifactId>authserverEJB</artifactId>

 
</ejbModule>

 
<ejbModule>

 
<groupId>lty</groupId>

 
<artifactId>communityEJB</artifactId>

 
</ejbModule>

 
<ejbModule>

 
<groupId>lty</groupId>

 
<artifactId>CSREJB</artifactId>

 
</ejbModule>

 
<ejbModule>

 
<groupId>lty</groupId>

 
<artifactId>enrollmentEJB</artifactId>

 
</ejbModule>

 
<ejbModule>

 
<groupId>lty</groupId>

 
<artifactId>groceryEJB</artifactId>

 
</ejbModule>

 
<ejbModule>

 
<groupId>lty</groupId>

 
<artifactId>

 
inboundenrollmentEJB

 
</artifactId>

 
</ejbModule>

 
<ejbModule>

 
<groupId>lty</groupId>

 
<artifactId>memberProfileEJB</artifactId>

 
</ejbModule>

 
<ejbModule>

 
<groupId>lty</groupId>

 
<artifactId>messageEJB</artifactId>

 
</ejbModule>

 
<ejbModule>

 
<groupId>lty</groupId>

 
<artifactId>partnerEJB</artifactId>

 
</ejbModule>

 
<ejbModule>

 
<groupId>lty</groupId>

 
<artifactId>salesscriptEJB</artifactId>

 
</ejbModule>

 
<ejbModule>

 
<groupId>lty</groupId>

 
<artifactId>testcellEJB</artifactId>

 
</ejbModule>

 
<ejbModule>

 
<groupId>lty</groupId>

 
<artifactId>transactionEJB</artifactId>

 
</ejbModule>

 
<ejbModule>

 
<groupId>lty</groupId>

 
<artifactId>transferEJB</artifactId>

 
</ejbModule>

 
<ejbModule>

 
<groupId>lty</groupId>

 
<artifactId>upAdminEJB</artifactId>

 
</ejbModule>

 
<ejbModule>

 
<groupId>lty</groupId>

 
<artifactId>upErrorEJB</artifactId>

 
</ejbModule>

 
<ejbModule>

 
<groupId>lty</groupId>

 
<artifactId>withdrawalEJB</artifactId>

 
</ejbModule>

 
<!-- javaModule>

 
<groupId>lty</groupId>

 
<artifactId>oldSource</artifactId>

 
<bundleDir>ltyAppClasses</bundleDir>

 
</javaModule-->

 
<webModule>

 
<groupId>lty</groupId>

 
<artifactId>ltyWebApp</artifactId>

 
<contextRoot>/</contextRoot>

 
</webModule>

                                                            </modules>

                                                </configuration>

                                    </plugin>

                                    <plugin>

 
<artifactId>maven-antrun-plugin</artifactId>

                                                <executions>

                                                            <execution>

 
<id>assembler</id>

 
<phase>package</phase>

 
<configuration>

 
<tasks>

 
<ant antfile="build.xml" target="create.application.xml">


 
</ant>

 
</tasks>

 
</configuration>

 
<goals>

 
<goal>run</goal>

 
</goals>

                                                            </execution>

                                                </executions>
                                    </plugin>

                        </plugins>
            </build>
</project>
 

---------------------------------------------------------------------
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]

---------------------------------------------------------------------
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]

Reply via email to