maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "EJ Ciramella" <ejcirame...@upromise.com>
Subject RE: compile tries to bundle up the ear - should it?
Date Mon, 05 Feb 2007 23:18:34 GMT
Again, I'm sitting at the top most pom level and running mvn compile.
No one here expects to cd around to build the various modules. 

-----Original Message-----
From: Greg Jones [mailto:gregj@gkj.com.au] 
Sent: Monday, February 05, 2007 6:14 PM
To: 'Maven Users List'
Subject: RE: compile tries to bundle up the ear - should it?

BTW, I'ce just tried running 'mvn compile' in an EAR module on one of my
projects and the ear plugin substitutes the ear-generate-application-xml
goal for the usual compile goal as explained in
http://maven.apache.org/guides/introduction/introduction-to-the-lifecycl
e.ht
ml.

So, it is quite safe to run 'mvn compile' in an EAR module but you need
your
dependencies to be available in your repository (local or remote).

-----Original Message-----
From: Greg Jones [mailto:gregj@gkj.com.au] 
Sent: Tuesday, 6 February 2007 10:05 AM
To: 'Maven Users List'
Subject: RE: compile tries to bundle up the ear - should it?

It hasn't tried to build the EAR yet:

> [INFO] Building ltyApp_ear
> [INFO]    task-segment: [compile]

You have specified 'mvn compile' in the EAR project and it is simply
trying
to download dependencies at this stage so it can do the compile.

My suggestion would be to not run the compile phase explicitly,
particularly
in the EAR module, but run 'mvn install' even if you are building
virtually
empty artifacts for the other components. In other words, get the whole
build process working correctly first.

Alternatively, the next best thing to do would be to remove the EAR
module
from your modules list for now until you have everything else to a stage
where the repository has all of the artifacts required to build an EAR.

-----Original Message-----
From: EJ Ciramella [mailto:ejciramella@upromise.com]
Sent: Tuesday, 6 February 2007 9:42 AM
To: Maven Users List
Subject: RE: compile tries to bundle up the ear - should it?

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:gregj@gkj.com.au]
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:ejciramella@upromise.com]
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:ejciramella@upromise.com]
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: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Mime
View raw message