The parent POM is in a repository and the correct jars are imported into the effective POM,see below, but seem to be unavailable for Project->Build.
I have 10 projects and they all need the same maven dependencies.
My steps are
run->m4e->clean
Project->clean
Project->build
run->m4e->package
When I run->M4E->package it creates a package,console out below, but without the dependent jars. So it seems the syntax is OK with maven.
If I add the dependencies to the child POM everything works
Is this a limitation of MyEclipse?
Thanks
| Code: |
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Batch-RenewalJob1 2
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-enforcer-plugin:1.0:enforce (enforce-versions) @ Batch-RenewalJob1 ---
[INFO]
[INFO] --- maven-resources-plugin:2.4.1:resources (default-resources) @ Batch-RenewalJob1 ---
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] Copying 6 resources
[INFO]
[INFO] --- maven-compiler-plugin:2.0.2:compile (default-compile) @ Batch-RenewalJob1 ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-resources-plugin:2.4.1:testResources (default-testResources) @ Batch-RenewalJob1 ---
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory C:\Documents and Settings\dg03118\My Documents\Trust\Batch-RenewalJob1-ALT\src\test\resources
[INFO]
[INFO] --- maven-compiler-plugin:2.0.2:testCompile (default-testCompile) @ Batch-RenewalJob1 ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-surefire-plugin:2.4.3:test (default-test) @ Batch-RenewalJob1 ---
[INFO] No tests to run.
[INFO]
[INFO] --- maven-jar-plugin:2.2:jar (default-jar) @ Batch-RenewalJob1 ---
[INFO] Building jar: C:\Documents and Settings\dg03118\My Documents\Trust\Batch-RenewalJob1-ALT\target\Batch-RenewalJob1-2.jar
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.423s
[INFO] Finished at: Fri Mar 04 13:52:12 CST 2011
[INFO] Final Memory: 3M/6M
[INFO] ------------------------------------------------------------------------
|
Child pom
| Code: |
<?xml version="1.0" encoding="UTF-8"?>
<project
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd"
xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<parent>
<artifactId>SpringBatch</artifactId>
<groupId>Trust</groupId>
<version>2.1.6</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<groupId>Batch-RenewalJob1-2.0</groupId>
<artifactId>Batch-RenewalJob1</artifactId>
<version>2</version>
<name>Batch-RenewalJob1</name>
<url>http://maven.apache.org</url>
<properties>
<appClass>org.springframework.batch.core.launch.support.CommandLineJobRunner</appClass>
</properties>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>Trust</groupId>
<artifactId>SpringBatch</artifactId>
<version>2.1.6</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
</project> |
EfFective POM
| Code: |
<?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<parent>
<artifactId>SpringBatch</artifactId>
<groupId>Trust</groupId>
<version>2.1.6</version>
</parent>
<groupId>Batch-RenewalJob1-2.0</groupId>
<artifactId>Batch-RenewalJob1</artifactId>
<version>2</version>
<name>Batch-RenewalJob1</name>
<url>http://maven.apache.org</url>
<properties>
<appClass>org.springframework.batch.core.launch.support.CommandLineJobRunner</appClass>
</properties>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework.batch</groupId>
<artifactId>spring-batch-core</artifactId>
<version>2.1.6.RELEASE</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.springframework.batch</groupId>
<artifactId>spring-batch-infrastructure</artifactId>
<version>2.1.6.RELEASE</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.4</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-jdbc</artifactId>
<version>2.5.6</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>c3p0</groupId>
<artifactId>c3p0</artifactId>
<version>0.9.1.2</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>db2jcc</groupId>
<artifactId>db2jcc</artifactId>
<version>1.1</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>db2jcc</groupId>
<artifactId>db2jcc_license_cisuz</artifactId>
<version>1.1</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>Trust</groupId>
<artifactId>TrustCodes</artifactId>
<version>1.1.0</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-orm</artifactId>
<version>2.5.6</version>
<scope>compile</scope>
</dependency>
</dependencies>
</dependencyManagement>
<repositories>
<repository>
<id>dg2219wl50882</id>
<name>dg2219wl50882-releases</name>
<url>http://10.171.22.72:8081/artifactory/libs-release-local</url>
</repository>
<repository>
<snapshots>
<enabled>true</enabled>
</snapshots>
<id>snapshots</id>
<name>libs-snapshot</name>
<url>http://10.171.22.72:8081/artifactory/libs-snapshot-local</url>
</repository>
<repository>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>central</id>
<name>Maven Repository Switchboard</name>
<url>http://repo1.maven.org/maven2</url>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>central</id>
<name>plugins-release</name>
<url>http://10.171.22.72:8081/artifactory/plugins-release-local</url>
</pluginRepository>
<pluginRepository>
<snapshots>
<enabled>true</enabled>
</snapshots>
<id>snapshots</id>
<name>plugins-snapshot</name>
<url>http://10.171.22.72:8081/artifactory/plugins-snapshot-local</url>
</pluginRepository>
</pluginRepositories>
<build>
<sourceDirectory>C:\Documents and Settings\dg03118\My Documents\Trust\Batch-RenewalJob1-ALT\src\main\java</sourceDirectory>
<scriptSourceDirectory>C:\Documents and Settings\dg03118\My Documents\Trust\Batch-RenewalJob1-ALT\src\main\scripts</scriptSourceDirectory>
<testSourceDirectory>C:\Documents and Settings\dg03118\My Documents\Trust\Batch-RenewalJob1-ALT\src\test\java</testSourceDirectory>
<outputDirectory>C:\Documents and Settings\dg03118\My Documents\Trust\Batch-RenewalJob1-ALT\target\classes</outputDirectory>
<testOutputDirectory>C:\Documents and Settings\dg03118\My Documents\Trust\Batch-RenewalJob1-ALT\target\test-classes</testOutputDirectory>
<resources>
<resource>
<directory>C:\Documents and Settings\dg03118\My Documents\Trust\Batch-RenewalJob1-ALT\src\main\resources</directory>
</resource>
</resources>
<testResources>
<testResource>
<directory>C:\Documents and Settings\dg03118\My Documents\Trust\Batch-RenewalJob1-ALT\src\test\resources</directory>
</testResource>
</testResources>
<directory>C:\Documents and Settings\dg03118\My Documents\Trust\Batch-RenewalJob1-ALT\target</directory>
<finalName>Batch-RenewalJob1-2</finalName>
<pluginManagement>
<plugins>
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.3</version>
</plugin>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<version>2.2-beta-4</version>
</plugin>
<plugin>
<artifactId>maven-clean-plugin</artifactId>
<version>2.3</version>
</plugin>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.0.2</version>
</plugin>
<plugin>
<artifactId>maven-dependency-plugin</artifactId>
<version>2.0</version>
</plugin>
<plugin>
<artifactId>maven-deploy-plugin</artifactId>
<version>2.4</version>
</plugin>
<plugin>
<artifactId>maven-ear-plugin</artifactId>
<version>2.3.1</version>
</plugin>
<plugin>
<artifactId>maven-ejb-plugin</artifactId>
<version>2.1</version>
</plugin>
<plugin>
<artifactId>maven-install-plugin</artifactId>
<version>2.3</version>
</plugin>
<plugin>
<artifactId>maven-jar-plugin</artifactId>
<version>2.2</version>
</plugin>
<plugin>
<artifactId>maven-javadoc-plugin</artifactId>
<version>2.5</version>
</plugin>
<plugin>
<artifactId>maven-plugin-plugin</artifactId>
<version>2.5.1</version>
</plugin>
<plugin>
<artifactId>maven-rar-plugin</artifactId>
<version>2.2</version>
</plugin>
<plugin>
<artifactId>maven-release-plugin</artifactId>
<version>2.0-beta-9</version>
</plugin>
<plugin>
<artifactId>maven-resources-plugin</artifactId>
<version>2.4.1</version>
</plugin>
<plugin>
<artifactId>maven-site-plugin</artifactId>
<version>2.0.1</version>
</plugin>
<plugin>
<artifactId>maven-source-plugin</artifactId>
<version>2.0.4</version>
</plugin>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.4.3</version>
</plugin>
<plugin>
<artifactId>maven-war-plugin</artifactId>
<version>2.1-alpha-1</version>
</plugin>
</plugins>
</pluginManagement>
<plugins>
<plugin>
<artifactId>maven-clean-plugin</artifactId>
<version>2.3</version>
<executions>
<execution>
<id>default-clean</id>
<phase>clean</phase>
<goals>
<goal>clean</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-resources-plugin</artifactId>
<version>2.4.1</version>
<executions>
<execution>
<id>default-resources</id>
<phase>process-resources</phase>
<goals>
<goal>resources</goal>
</goals>
</execution>
<execution>
<id>default-testResources</id>
<phase>process-test-resources</phase>
<goals>
<goal>testResources</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-deploy-plugin</artifactId>
<version>2.4</version>
<executions>
<execution>
<id>default-deploy</id>
<phase>deploy</phase>
<goals>
<goal>deploy</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-install-plugin</artifactId>
<version>2.3</version>
<executions>
<execution>
<id>default-install</id>
<phase>install</phase>
<goals>
<goal>install</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-site-plugin</artifactId>
<version>2.0.1</version>
<executions>
<execution>
<id>default-site</id>
<phase>site</phase>
<goals>
<goal>site</goal>
</goals>
</execution>
<execution>
<id>default-deploy</id>
<phase>site-deploy</phase>
<goals>
<goal>deploy</goal>
</goals>
</execution>
</executions>
<configuration>
<outputDirectory>C:\Documents and Settings\dg03118\My Documents\Trust\Batch-RenewalJob1-ALT\target\site</outputDirectory>
<reportPlugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-project-info-reports-plugin</artifactId>
</plugin>
</reportPlugins>
</configuration>
</plugin>
<plugin>
<artifactId>maven-idea-plugin</artifactId>
<version>2.2</version>
<configuration>
<jdkLevel>1.6</jdkLevel>
<downloadSources>true</downloadSources>
<downloadJavadocs>true</downloadJavadocs>
</configuration>
</plugin>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.0.2</version>
<executions>
<execution>
<id>default-compile</id>
<phase>compile</phase>
<goals>
<goal>compile</goal>
</goals>
<configuration>
<source>1.6</source>
<target>1.6</target>
</configuration>
</execution>
<execution>
<id>default-testCompile</id>
<phase>test-compile</phase>
<goals>
<goal>testCompile</goal>
</goals>
<configuration>
<source>1.6</source>
<target>1.6</target>
</configuration>
</execution>
</executions>
<configuration>
<source>1.6</source>
<target>1.6</target>
</configuration>
</plugin>
<plugin>
<artifactId>maven-jar-plugin</artifactId>
<version>2.2</version>
<executions>
<execution>
<id>default-jar</id>
<phase>package</phase>
<goals>
<goal>jar</goal>
</goals>
<configuration>
<archive>
<manifest>
<mainClass>org.springframework.batch.core.launch.support.CommandLineJobRunner</mainClass>
<addClasspath>true</addClasspath>
<classpathPrefix>lib/</classpathPrefix>
</manifest>
</archive>
</configuration>
</execution>
</executions>
<configuration>
<archive>
<manifest>
<mainClass>org.springframework.batch.core.launch.support.CommandLineJobRunner</mainClass>
<addClasspath>true</addClasspath>
<classpathPrefix>lib/</classpathPrefix>
</manifest>
</archive>
</configuration>
</plugin>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.4.3</version>
<executions>
<execution>
<id>default-test</id>
<phase>test</phase>
<goals>
<goal>test</goal>
</goals>
<configuration>
<excludes>
<exclude>**/*.*</exclude>
</excludes>
<useFile>false</useFile>
</configuration>
</execution>
</executions>
<configuration>
<excludes>
<exclude>**/*.*</exclude>
</excludes>
<useFile>false</useFile>
</configuration>
</plugin>
<plugin>
<artifactId>maven-enforcer-plugin</artifactId>
<version>1.0</version>
<executions>
<execution>
<id>enforce-versions</id>
<goals>
<goal>enforce</goal>
</goals>
<configuration>
<rules>
<requirePluginVersions></requirePluginVersions>
<requireMavenVersion>
<version>2.2.0</version>
</requireMavenVersion>
<requireJavaVersion>
<version>1.6</version>
</requireJavaVersion>
</rules>
</configuration>
</execution>
</executions>
<configuration>
<rules>
<requirePluginVersions></requirePluginVersions>
<requireMavenVersion>
<version>2.2.0</version>
</requireMavenVersion>
<requireJavaVersion>
<version>1.6</version>
</requireJavaVersion>
</rules>
</configuration>
</plugin>
</plugins>
</build>
<reporting>
<outputDirectory>C:\Documents and Settings\dg03118\My Documents\Trust\Batch-RenewalJob1-ALT\target\site</outputDirectory>
</reporting>
</project>
|
|