another issue is your project version is a non-snapshot version... you should really only build release versions in conjunction with the maven release plugin, or else you really really need to know exactly what you are doing (ie your release workflow being different from the release plugin, so you replicate what it does but for your workflow)

I know the above is not related to your question... but you will have other issues with your build if you insist on developing with non- snapshot versions of your projects

Sent from my [rhymes with tryPod] ;-)

On 28 Dec 2009, at 11:42, eyal edri <[email protected]> wrote:

i have a m2 project which i can install using the cli interface, but fails
using the m2eclipse plugin...

anyone has an idea?

here are the outputs:

command line:

[ey...@eyale-f8-32 IncreasePriority]$ mvn install
[INFO] Scanning for projects...
[INFO]
--- ---------------------------------------------------------------------
[INFO] Building IncreasePriority
[INFO]    task-segment: [install]
[INFO]
--- ---------------------------------------------------------------------
[INFO] [resources:resources {execution: default-resources}]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 2 resources
[INFO] [compiler:compile {execution: default-compile}]
[INFO] Nothing to compile - all classes are up to date
[INFO] [resources:testResources {execution: default-testResources}]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 0 resource
[INFO] [compiler:testCompile {execution: default-testCompile}]
[INFO] Nothing to compile - all classes are up to date
[INFO] [surefire:test {execution: default-test}]
[INFO] Surefire report directory:
/home/eyale/starteam/Work/websec/Main/Projects/IncreasePriority/ target/surefire-reports

-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running com.company.url.unknowns.IncreasePriorityTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.06 sec

Results :

Tests run: 1, Failures: 0, Errors: 0, Skipped: 0

[INFO] [jar:jar {execution: default-jar}]
[INFO] [dependency:copy-dependencies {execution: copy-dependencies}]
[INFO] DbUtil-0.0.4.jar already exists in destination.
[INFO] sqljdbc-2.0.jar already exists in destination.
[INFO] activation-1.1.jar already exists in destination.
[INFO] mail-1.4.1.jar already exists in destination.
[INFO] junit-3.8.1.jar already exists in destination.
[INFO] log4j-1.2.14.jar already exists in destination.
[INFO] [install:install {execution: default-install}]
[INFO] Installing /usr/local/ct-urlf-increase-priority/ IncreasePriority.jar
to
/home/eyale/.m2/repository/com/company/url/unknowns/IncreasePriority/ 0.0.2/IncreasePriority-0.0.2.jar
[INFO] [resources:copy-resources {execution: copy-conf}]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO] [resources:copy-resources {execution: copy-cron}]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO]
--- ---------------------------------------------------------------------
*[INFO] BUILD SUCCESSFUL*
[INFO]
--- ---------------------------------------------------------------------
[INFO] Total time: 10 seconds
[INFO] Finished at: Mon Dec 28 13:37:58 IST 2009
[INFO] Final Memory: 18M/74M
[INFO]
--- ---------------------------------------------------------------------
[ey...@eyale-f8-32 IncreasePriority]$


from eclipse:

[INFO] Scanning for projects...
[INFO]
--- ---------------------------------------------------------------------
[INFO] Building IncreasePriority
[INFO]
[INFO] Id: com.company.url.unknowns:IncreasePriority:jar:0.0.2
[INFO] task-segment: [install]
[INFO]
--- ---------------------------------------------------------------------
[INFO] [resources:resources]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 2 resources
[INFO] [compiler:compile]
[INFO] Compiling 1 source file to
/home/eyale/starteam/Work/websec/Main/Projects/IncreasePriority/ target/classes
[INFO] [resources:testResources]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 0 resource
[INFO] [compiler:testCompile]
[INFO] Compiling 1 source file to
/home/eyale/starteam/Work/websec/Main/Projects/IncreasePriority/ target/test-classes
[INFO] [surefire:test]
[INFO] Surefire report directory:
/home/eyale/starteam/Work/websec/Main/Projects/IncreasePriority/ target/surefire-reports

-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running com.company.url.unknowns.IncreasePriorityTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.064 sec

Results :

Tests run: 1, Failures: 0, Errors: 0, Skipped: 0

[INFO] [jar:jar]
[INFO] Building jar:
/usr/local/ct-urlf-increase-priority/IncreasePriority.jar
[INFO] [dependency:copy-dependencies]
[INFO] Copying classes to /usr/lib/ctch/java/classes
[ERROR]

The following mojo encountered an error while executing:
Group-Id: org.apache.maven.plugins
Artifact-Id: maven-dependency-plugin
Version: 2.0
Mojo: copy-dependencies
brought in via: POM

While building project:
Group-Id: com.company.url.unknowns
Artifact-Id: IncreasePriority
Version: 0.0.2
From file:
/home/eyale/starteam/Work/websec/Main/Projects/IncreasePriority/ pom.xml
Reason: Error copying artifact from
/home/eyale/starteam/Work/websec/Main/Projects/DbUtil/target/classes to
/usr/lib/ctch/java/classes



[INFO]
--- ---------------------------------------------------------------------
[INFO] For more information, run with the -e flag
[INFO]
--- ---------------------------------------------------------------------
*[INFO] BUILD FAILED*
[INFO]
--- ---------------------------------------------------------------------
[INFO] Total time: 12 seconds
[INFO] Finished at: Mon Dec 28 13:37:30 IST 2009
[INFO] Final Memory: 10M/79M
[INFO]
--- ---------------------------------------------------------------------


the POM:

<?xml version="1.0" encoding="utf-8"?>
<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>
 <groupId>com.company.url.unknowns</groupId>
 <artifactId>IncreasePriority</artifactId>
 <packaging>jar</packaging>
 <version>0.0.2</version>
 <name>IncreasePriority</name>
 <parent>
   <groupId>com.company.maven.pom</groupId>
   <artifactId>WebSecParent</artifactId>
   <version>0.0.1</version>
 </parent>
 <build>
   <plugins>
     <plugin>
       <groupId>org.apache.maven.plugins</groupId>
       <artifactId>maven-dependency-plugin</artifactId>
       <executions>
         <execution>
           <id>copy-dependencies</id>
           <phase>package</phase>
           <goals>
             <goal>copy-dependencies</goal>
           </goals>
           <configuration>
             <outputDirectory>/usr/lib/ctch/java</outputDirectory>
             <overWriteReleases>false</overWriteReleases>
             <overWriteSnapshots>false</overWriteSnapshots>
             <overWriteIfNewer>true</overWriteIfNewer>
           </configuration>
         </execution>
       </executions>
     </plugin>
     <plugin>
         <groupId>org.apache.maven.plugins</groupId>
       <artifactId>maven-resources-plugin</artifactId>
       <executions>
         <execution>
           <id>copy-conf</id>
           <phase>install</phase>
           <goals>
             <goal>copy-resources</goal>
           </goals>
           <configuration>

<outputDirectory>/etc/ct-urlf-increase-priority/</outputDirectory>
             <resources>
               <resource>
                 <directory>src/main/resources</directory>
                 <filtering>true</filtering>
                 <includes>
                   <include>**/*.properties</include>
                 </includes>
               </resource>
             </resources>
           </configuration>
         </execution>
         <execution>
           <id>copy-cron</id>
           <phase>install</phase>
           <goals>
             <goal>copy-resources</goal>
           </goals>
           <configuration>
             <outputDirectory>/etc/cron.d/</outputDirectory>
             <resources>
               <resource>
                 <directory>src/main/resources</directory>
                 <filtering>true</filtering>
                 <includes>
                   <include>**/*.cron</include>
                 </includes>
               </resource>
             </resources>
           </configuration>
         </execution>
       </executions>
     </plugin>
     <plugin>
       <groupId>org.apache.maven.plugins</groupId>
       <artifactId>maven-jar-plugin</artifactId>
       <configuration>

<outputDirectory>/usr/local/ct-urlf-increase-priority</ outputDirectory>
         <archive>
           <manifest>

<mainClass>com.company.url.unknowns.IncreasePriority</mainClass>
             <addClasspath>true</addClasspath>
             <classpathPrefix>/usr/lib/ctch/java</classpathPrefix>
           </manifest>
         </archive>
       </configuration>
     </plugin>
   </plugins>
 </build>
 <dependencies>
   <dependency>
     <groupId>javax.mail</groupId>
     <artifactId>mail</artifactId>
     <version>1.4.1</version>
   </dependency>
   <dependency>
     <groupId>com.company.sql</groupId>
     <artifactId>DbUtil</artifactId>
     <version>0.0.4</version>
   </dependency>
 </dependencies>
</project>



--
Eyal Edri

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to