Maven can't finish her job

View: New views
1 Messages — Rating Filter:   Alert me  

Maven can't finish her job

by Hartmut Kern :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hey list,

I tried to do my best with:

--- schnipp ---
--- schnipp ---

because I was trying to begin some programming / changes to what I need in Magnolia. (I have to say, that I was never good in getting in contact with versioning systems ... )

So I installed Maven 2.10 on my Mac OS X10.5.7 
included in bash:

--- schnipp ---
export PATH=/usr/local/maven/bin:$PATH
export M2_HOME=/usr/local/maven
export M2=$M2_HOME/bin
export JAVA_HOME=/Library/Java/Home/
export PATH=$PATH:$M2
--- schnipp ---

where my new Maven is. (Mac OSX has only 2.0.9 preinstalled)
Maven sayed: You need 2.10 for "Eclipsing":

So I installed it:

mvn -v Apache Maven 2.1.0 (r755702; 2009-03-18 20:10:27+0100)
Java version: 1.5.0_19
Java home: /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home
Default locale: de_DE, platform encoding: MacRoman
OS name: "mac os x" version: "10.5.7" arch: "i386" Family: "unix"
--- schnipp ---

And tried again:

--- schnipp ---
mvn -Declipse.downloadSources=true -Dwtpversion=1.0 eclipse:eclipse
--- schnipp ---

The errror message now is:

What did I wrong? Best Hartmut

--- schnipp ---
 mvn -e -Declipse.downloadSources=true -Dwtpversion=1.0 eclipse:eclipse 
+ Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO] Reactor build order: 
[INFO]   magnolia-project
[INFO]   magnolia-core
[INFO]   magnolia-jaas
[INFO]   magnolia-gui
[INFO]   magnolia-module-exchange-simple
[INFO]   magnolia-module-templating
[INFO]   magnolia-module-admininterface
[INFO]   magnolia-module-mail
[INFO]   magnolia-module-workflow
[INFO]   magnolia-module-cache
[INFO]   CMS Tag Library
[INFO]   CMS Utility Tag Library
[INFO]   magnolia-module-fckeditor
[INFO]   magnolia-module-samples
[INFO]   magnolia-empty-webapp
[INFO] Searching repository for plugin with prefix: 'eclipse'.
[INFO] ------------------------------------------------------------------------
[INFO] Building magnolia-project
[INFO]    task-segment: [eclipse:eclipse]
[INFO] ------------------------------------------------------------------------
[INFO] Preparing eclipse:eclipse
[INFO] [enforcer:enforce {execution: enforce}]
[INFO] [setproperty:set-property {execution: currentDate}]
[INFO] Property magnoliaCurrentDate set to value 21. Juni 2009 (scope: project)
[INFO] Property magnoliaReleaseDate set to value 21. Juni 2009 (scope: project)
[INFO] Property magnoliaNiceVersion set to value 4.1.1 (Snapshot: 21.06.2009 16:42:28) (scope: project)
[INFO] Property magnoliaNiceName set to value Magnolia Project (scope: project)
[INFO] Setting property: classpath.resource.loader.class => 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'.
[INFO] Setting property: velocimacro.messages.on => 'false'.
[INFO] Setting property: resource.loader => 'classpath'.
[INFO] Setting property: resource.manager.logwhenfound => 'false'.
[INFO] [remote-resources:process {execution: default}]
[INFO] [eclipse:eclipse]
[WARNING] Plugin parameter "eclipse.downloadSources" is deprecated, please use "downloadSources"
[INFO] Not running eclipse plugin goal for pom project
[INFO] Adding support for WTP version 2.0.
[INFO] Using Eclipse Workspace: null
[INFO] Adding default classpath container: org.eclipse.jdt.launching.JRE_CONTAINER
[INFO] ------------------------------------------------------------------------
[INFO] Building magnolia-core
[INFO]    task-segment: [eclipse:eclipse]
[INFO] ------------------------------------------------------------------------
[INFO] Preparing eclipse:eclipse
[INFO] [enforcer:enforce {execution: enforce}]
[INFO] [setproperty:set-property {execution: currentDate}]
[INFO] Property magnoliaCurrentDate set to value 21. Juni 2009 (scope: project)
[INFO] Property magnoliaReleaseDate set to value 21. Juni 2009 (scope: project)
[INFO] Property magnoliaNiceVersion set to value 4.1.1 (Snapshot: 21.06.2009 16:42:31) (scope: project)
[INFO] Property magnoliaNiceName set to value Magnolia Core (scope: project)
[INFO] [remote-resources:process {execution: default}]
[INFO] [eclipse:eclipse]
[WARNING] Plugin parameter "eclipse.downloadSources" is deprecated, please use "downloadSources"
[INFO] Adding support for WTP version 2.0.
[INFO] Using Eclipse Workspace: null
[INFO] Adding default classpath container: org.eclipse.jdt.launching.JRE_CONTAINER
[INFO] File /Users/hartmut/Documents/Entwicklung/magnolia00/magnolia-core/.project already exists.
       Additional settings will be preserved, run mvn eclipse:clean if you want old settings to be removed.
[INFO] Wrote Eclipse project for "magnolia-core" to /Users/hartmut/Documents/Entwicklung/magnolia00/magnolia-core.
[INFO] 
[INFO] ------------------------------------------------------------------------
[INFO] Building magnolia-jaas
[INFO]    task-segment: [eclipse:eclipse]
[INFO] ------------------------------------------------------------------------
[INFO] Preparing eclipse:eclipse
[INFO] Unable to find resource 'info.magnolia:magnolia-core:jar:4.1.1-SNAPSHOT' in repository magnolia.snapshots (http://repo.magnolia-cms.com/snapshots)
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to resolve artifact.

Missing:
----------
1) info.magnolia:magnolia-core:jar:4.1.1-SNAPSHOT

  Try downloading the file manually from: 

  Then, install it using the command: 
      mvn install:install-file -DgroupId=info.magnolia -DartifactId=magnolia-core -Dversion=4.1.1-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file

  Alternatively, if you host your own repository you can deploy the file there: 
      mvn deploy:deploy-file -DgroupId=info.magnolia -DartifactId=magnolia-core -Dversion=4.1.1-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

  Path to dependency: 
   1) info.magnolia:magnolia-jaas:jar:4.1.1-SNAPSHOT
   2) info.magnolia:magnolia-core:jar:4.1.1-SNAPSHOT

----------
1 required artifact is missing.

for artifact: 
  info.magnolia:magnolia-jaas:jar:4.1.1-SNAPSHOT

from the specified remote repositories:
  magnolia.snapshots (http://repo.magnolia-cms.com/snapshots),



[INFO] ------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Missing:
----------
1) info.magnolia:magnolia-core:jar:4.1.1-SNAPSHOT

  Try downloading the file manually from: 

  Then, install it using the command: 
      mvn install:install-file -DgroupId=info.magnolia -DartifactId=magnolia-core -Dversion=4.1.1-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file

  Alternatively, if you host your own repository you can deploy the file there: 
      mvn deploy:deploy-file -DgroupId=info.magnolia -DartifactId=magnolia-core -Dversion=4.1.1-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

  Path to dependency: 
   1) info.magnolia:magnolia-jaas:jar:4.1.1-SNAPSHOT
   2) info.magnolia:magnolia-core:jar:4.1.1-SNAPSHOT

----------
1 required artifact is missing.

for artifact: 
  info.magnolia:magnolia-jaas:jar:4.1.1-SNAPSHOT

from the specified remote repositories:
  magnolia.snapshots (http://repo.magnolia-cms.com/snapshots),


at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:695)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:540)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.forkProjectLifecycle(DefaultLifecycleExecutor.java:1168)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.forkLifecycle(DefaultLifecycleExecutor.java:1009)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:627)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:553)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:523)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:371)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:332)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:181)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:356)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:137)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:356)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.artifact.resolver.MultipleArtifactsNotFoundException: Missing:
----------
1) info.magnolia:magnolia-core:jar:4.1.1-SNAPSHOT

  Try downloading the file manually from: 

  Then, install it using the command: 
      mvn install:install-file -DgroupId=info.magnolia -DartifactId=magnolia-core -Dversion=4.1.1-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file

  Alternatively, if you host your own repository you can deploy the file there: 
      mvn deploy:deploy-file -DgroupId=info.magnolia -DartifactId=magnolia-core -Dversion=4.1.1-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

  Path to dependency: 
   1) info.magnolia:magnolia-jaas:jar:4.1.1-SNAPSHOT
   2) info.magnolia:magnolia-core:jar:4.1.1-SNAPSHOT

----------
1 required artifact is missing.

for artifact: 
  info.magnolia:magnolia-jaas:jar:4.1.1-SNAPSHOT

from the specified remote repositories:
  magnolia.snapshots (http://repo.magnolia-cms.com/snapshots),


at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveTransitively(DefaultArtifactResolver.java:360)
at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveTransitively(DefaultArtifactResolver.java:304)
at org.apache.maven.plugin.DefaultPluginManager.resolveTransitiveDependencies(DefaultPluginManager.java:1492)
at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:435)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:678)
... 20 more
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 5 seconds


--- schnipp ---
                                                   -- *--
Hartmut Kern, M.A.
Max-Planck-Institut für Wissenschaftsgeschichte
Information Technology Group
Boltzmannstraße 22
14195 Berlin
tel +49 (0) 30 22667 - 341
fax +49 (0) 30 22667 - 225

                                                   -- *--






----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <user-list-unsubscribe@...>
----------------------------------------------------------------