Help coderanch get a
new server
by contributing to the fundraiser

Sam Deshalwa

Greenhorn
+ Follow
since Jan 05, 2009
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Sam Deshalwa

Thanks Akshat.

I am going to follow same directory structure which you explained above but I compare my child pom with your child pom and i came out with question.

How to child pom get the reference of parent pom because you havn't mentioned parent reference in child pom?
Please find below difference between your and my pom. (<relativePath>)


It's your child pom

# <modelVersion>4.0.0</modelVersion>
# <parent>
# <artifactId>secondDemo</artifactId>
# <groupId>com.akki.mvn</groupId>
# <version>1.0</version>
# </parent>
#
# <groupId>com.akki.mvn</groupId>
# <artifactId>jaxb-api</artifactId>
# <version>1.1</version>
# <name>jaxb-api</name>
# <url>http://maven.apache.org</url>;

It's my child pom

<parent>
<groupId>org.apache.axis2</groupId>
<artifactId>axis2-parent</artifactId>
<version>1.2.1</version>
<relativePath>../../parent/pom.xml</relativePath>
</parent>

<modelVersion>4.0.0</modelVersion>
<artifactId>axis2-maven-plugin</artifactId>
<version>1.2.2</version>


Thanks

14 years ago
Thanks for write-up.

I still facing same problem..
Run this commond and i got error

mvn help:effective-pom


[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'help'.
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] The plugin 'org.apache.maven.plugins:maven-help-plugin' does not exist or
no valid version could be found
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: < 1 second
[INFO] Finished at: Thu Oct 01 05:21:40 MDT 2009
[INFO] Final Memory: 1M/2M
[INFO] ------------------------------------------------------------------------


Is it possible to share your pom file which were you created for replicate this problem.

Again thanks.
14 years ago
The <parent><version> is being inherited in project version.When i run mvn install then it pick up parent version (1.2.1)for creating jar in target folder and in local repo it is creating jar with project version(1.2.2).
But i want to crate both with same version(1.2.2).Its lettle bit confusing because both have different version.

<parent>
<groupId>org.apache.axis2</groupId>
<artifactId>axis2-parent</artifactId>
<version>1.2.1</version>
<relativePath>../../parent/pom.xml</relativePath>
</parent>

<modelVersion>4.0.0</modelVersion>
<artifactId>axis2-maven-plugin</artifactId>
<version>1.2.2</version>
14 years ago
thanks for reply Anant but I think it is not HOT deployment

I want to know that any directory name where i keep my war/jar/ear file then whenever websphare serever is started then automatic war/jar/ear file will deploy on websphare from sepecific directory.

For example in tomcat - webapps dir we keep our war/jar file it will automatic deploy on server as like i am seraching any directory name in Websphare from where war/jar/ear file will deploy.
15 years ago
thanks for reply Anant but I think it is not HOT deployment

I want to know that any directory name where i keep my war/jar/ear file then whenever websphare serever is started then automatic war/jar/ear file will deploy on websphare from sepecific directory.

For example in tomcat - webapps dir we keep our war/jar file it will automatic deploy on server as like i am seraching any directory name in Websphare from where war/jar/ear file will deploy.
15 years ago